::P
This commit is contained in:
parent
8b78ad2fe7
commit
f2b47a50a5
1 changed files with 5 additions and 5 deletions
|
@ -6,21 +6,21 @@ battery() {
|
||||||
get_capacity="$(cat /sys/class/power_supply/BAT1/capacity)"
|
get_capacity="$(cat /sys/class/power_supply/BAT1/capacity)"
|
||||||
get_status="$(cat /sys/class/power_supply/BAT1/status)"
|
get_status="$(cat /sys/class/power_supply/BAT1/status)"
|
||||||
case "$get_status" in
|
case "$get_status" in
|
||||||
Charging) printf "^c$blue^ $get_capacity" ;;
|
Charging) printf " $get_capacity" ;;
|
||||||
Discharging) printf "^b$blue $get_capacity" ;;
|
Discharging) printf " $get_capacity" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
audio() {
|
audio() {
|
||||||
get_vol=$(pamixer --get-volume-human)
|
get_vol=$(pamixer --get-volume-human)
|
||||||
if [ $get_vol = 'muted' ]; then
|
if [ $get_vol = 'muted' ]; then
|
||||||
printf "^b$blue^ Muted"
|
printf " Muted"
|
||||||
else
|
else
|
||||||
printf "^b$blue^ $get_vol"
|
printf " $get_vol"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
xsetroot -name "$(battery)"
|
xsetroot -name " $(audio) $(battery) "
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue