Move to gnu stow

This commit is contained in:
agryphus 2024-02-25 23:58:49 -05:00
parent cd08a447a8
commit 9ea93f8144
120 changed files with 994 additions and 53 deletions

View file

@ -0,0 +1,22 @@
#!/bin/sh
battery=/sys/class/power_supply/BAT0
capacity=$(cat $battery/capacity)
bstatus=$(cat $battery/status)
if [ "$bstatus" = "Charging" ]; then
symbol=󰂄
elif [ $capacity -gt 80 ]; then
symbol=
elif [ $capacity -gt 60 ]; then
symbol=
elif [ $capacity -gt 40 ]; then
symbol=
elif [ $capacity -gt 20 ]; then
symbol=
else
symbol=
fi
echo "${symbol} ${capacity}%"