fix bar
This commit is contained in:
parent
f38af2d8aa
commit
c2de0fbd30
|
@ -15,8 +15,6 @@ cpu() {
|
||||||
printf "^c$white^ ^b$grey^ $cpu_val"
|
printf "^c$white^ ^b$grey^ $cpu_val"
|
||||||
}
|
}
|
||||||
|
|
||||||
alias notify-send="sudo -u sako DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus notify-send"
|
|
||||||
|
|
||||||
battery() {
|
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)"
|
||||||
|
@ -25,7 +23,7 @@ battery() {
|
||||||
Discharging) if (( $get_capacity <= 20)); then
|
Discharging) if (( $get_capacity <= 20)); then
|
||||||
printf "^c$lightred^ $get_capacity"
|
printf "^c$lightred^ $get_capacity"
|
||||||
else
|
else
|
||||||
printf "^c$blue^ $get_capacity"
|
printf "^c$white^ $get_capacity"
|
||||||
fi ;;
|
fi ;;
|
||||||
esac
|
esac
|
||||||
#printf "^c$blue^ $get_capacity"
|
#printf "^c$blue^ $get_capacity"
|
||||||
|
@ -36,7 +34,7 @@ audio() {
|
||||||
if [ $get_vol = 'muted' ]; then
|
if [ $get_vol = 'muted' ]; then
|
||||||
printf "^c$white^ Muted"
|
printf "^c$white^ Muted"
|
||||||
else
|
else
|
||||||
printf "^c$blue^ $get_vol"
|
printf "^c$white^ $get_vol"
|
||||||
fi
|
fi
|
||||||
#printf "^c$blue^ $get_vol"
|
#printf "^c$blue^ $get_vol"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue