feat: add tmux conf
This commit is contained in:
parent
e24e1ce1a0
commit
fe7fe845e5
6
scripts/battery.sh
Executable file
6
scripts/battery.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
percent=$(cat /sys/class/power_supply/BAT0/capacity)
|
||||
charging=$(cat /sys/class/power_supply/BAT0/status | grep "^C")
|
||||
[ -z "$charging" ] && status=" " || status="*"
|
||||
echo $percent"% [$status]"
|
Loading…
Reference in a new issue