Changed dot-config to .config
This commit is contained in:
parent
9ea93f8144
commit
0ab0f24015
118 changed files with 29 additions and 980 deletions
22
misc/.local/bin/block_battery
Executable file
22
misc/.local/bin/block_battery
Executable 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}%"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue