still didnt work
This commit is contained in:
parent
33e8251917
commit
e609da7e94
1 changed files with 3 additions and 1 deletions
|
@ -23,7 +23,9 @@ 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
|
||||||
sudo -u sako DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus 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
|
||||||
|
|
Loading…
Reference in a new issue