Add scripts for battery
This commit is contained in:
parent
4ffb9015fd
commit
42b470c5b1
1 changed files with 4 additions and 0 deletions
4
home/vylpes/.scripts/dwmblocks/battery.sh
Normal file
4
home/vylpes/.scripts/dwmblocks/battery.sh
Normal file
|
@ -0,0 +1,4 @@
|
|||
if [ -d /sys/class/power_supply/BAT0 ]
|
||||
then
|
||||
echo $(acpi -V | grep 'Battery 0' | head -n 1 | cut -f2 -d, | sed 's/ //')
|
||||
fi
|
Loading…
Reference in a new issue