fix battery script
This commit is contained in:
parent
9362539bb5
commit
33e8251917
2 changed files with 2 additions and 2 deletions
|
@ -23,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"
|
||||||
if [ $sent_notification = false ]; then
|
if [ $sent_notification = false ]; then
|
||||||
dunstify -u critical "Battery low" "Please charge battery"
|
sudo -u sako DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus dunstify -u critical "Battery low" "Please charge battery"
|
||||||
sent_notification=true
|
sent_notification=true
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
|
@ -13,4 +13,4 @@ scrollback_lines 2000
|
||||||
enable_audio_bell no
|
enable_audio_bell no
|
||||||
|
|
||||||
# maxmium productivity probably
|
# maxmium productivity probably
|
||||||
window_padding_width 10
|
window_padding_width 15
|
||||||
|
|
Loading…
Reference in a new issue