linux-utils/dwmstatus

9 lines
123 B
Text
Raw Normal View History

2017-06-15 19:48:22 +00:00
#!/bin/sh
bat="$(cat /sys/class/power_supply/BAT1/capacity)%"
t="$(date '+%d/%m %T')"
xsetroot -name "$t $bat"
sleep 5s