switch to notify-send for this instead because dunstify wont work as root i think

This commit is contained in:
Sakooooo 2023-08-05 00:08:13 +03:00
parent 6ad6067710
commit f4139933fc
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -25,7 +25,7 @@ battery() {
if [ [$sent_notification = false] ]; then if [ [$sent_notification = false] ]; then
sudo -u sako \ sudo -u sako \
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus \ DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus \
dunstify -u critical "Battery low" "Please charge battery" notify-send -u critical "Battery low" "Please charge battery"
sent_notification=true sent_notification=true
fi fi
else else