diff options
Diffstat (limited to 'x/battery.pl')
-rwxr-xr-x | x/battery.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/x/battery.pl b/x/battery.pl index b98707a..10a3673 100755 --- a/x/battery.pl +++ b/x/battery.pl @@ -22,13 +22,13 @@ while (1) { if (int($battery_level) <= int($CRITICAL_LEVEL)) { $CRITICAL = 'def'; $sent = 'def'; - system "notify-send -i \"battery-empty\" -t 0 -u critical \"BATTERY CRITICAL\" \"Battery level is ${battery_level}%\n\nCharge the system NOW.\"" + system "notify-send -i \"battery-empty-symbolic\" -t 0 -u critical \"BATTERY CRITICAL\" \"Battery level is ${battery_level}%\n\nCharge the system NOW.\"" } } if (!$LOW && !$sent) { if (int($battery_level) <= int($LOW_LEVEL)) { $LOW = 'def'; $sent = 'def'; - system "notify-send -i \"battery-caution\" -t 0 -u normal \"BATTERY LOW\" \"Battery level is ${battery_level}%\n\nCharge the system soon.\"" + system "notify-send -i \"battery-caution-symbolic\" -t 0 -u normal \"BATTERY LOW\" \"Battery level is ${battery_level}%\n\nCharge the system soon.\"" } } if (int($battery_level) <= int($DEAD_LEVEL)) { system "notify-send -t 0 -u critical \"SHUTTING DOWN\" \"Battery level is too low. The system will shutdown in 2 minutes to prevent corruption.\n\nCharge the system NOW to cancel the shutdown.\""; @@ -40,7 +40,7 @@ while (1) { $CRITICAL = undef; $LOW = undef; system "doas shutdown -c"; - system "notify-send -t 3000 -i \"battery-good-charging\" \"System is now charging\""; + system "notify-send -t 3000 -i \"battery-good-charging-symbolic\" \"System is now charging\""; } } |