dwmblocks/blocks/battery.sh
2020-12-27 20:58:23 +05:30

5 lines
116 B
Bash
Executable file

#!/bin/sh
ICON="\x0c\x0b"
read -r capacity </sys/class/power_supply/BAT0/capacity
printf "$ICON%s%%" "$capacity"