add my own script and config

This commit is contained in:
lucy 2026-06-29 23:32:15 +02:00
commit e365e295f3
4 changed files with 32 additions and 13 deletions

14
bat.sh Executable file
View file

@ -0,0 +1,14 @@
status=$(cat /sys/class/power_supply/BAT0/status)
level=$(cat /sys/class/power_supply/BAT0/capacity)
case $status in
Full)
echo $level%o
;;
Charging)
echo $level%+
;;
Discharging)
echo $level%-
;;
esac