add my own script and config
This commit is contained in:
parent
469e684143
commit
e365e295f3
4 changed files with 32 additions and 13 deletions
14
bat.sh
Executable file
14
bat.sh
Executable 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
|
||||
Loading…
Reference in a new issue