8 lines
123 B
Bash
Executable file
8 lines
123 B
Bash
Executable file
#!/bin/sh
|
|
|
|
bat="$(cat /sys/class/power_supply/BAT1/capacity)%"
|
|
t="$(date '+%d/%m %T')"
|
|
|
|
xsetroot -name "$t $bat"
|
|
|
|
sleep 5s
|