add icons to lowbat script - dotfiles - 🍚 personal arsenal of "rice"
HTML git clone https://git.drkhsh.at/dotfiles.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit 856f30229dff277755bb29758c8d52aad32150ed
DIR parent f210888981a110a0242b75ae70e58835c5f402cb
HTML Author: drkhsh <me@drkhsh.at>
Date: Tue, 13 May 2025 02:10:21 +0200
add icons to lowbat script
Diffstat:
M bin/.local/bin/lowbat | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
DIR diff --git a/bin/.local/bin/lowbat b/bin/.local/bin/lowbat
@@ -8,11 +8,11 @@ acpi -b | grep "Battery 0" | awk -F'[,:%]' '{print $2, $3}' | {
if [ "$status" = Discharging -a "$capacity" -lt 25 ]; then
logger "low battery level"
- notify-send "low battery level."
+ notify-send -i notification-battery-low "low battery level."
fi
if [ "$status" = Discharging -a "$capacity" -lt 20 ]; then
logger "critical battery threshold"
- notify-send "critical battery level, suspending."
+ notify-send -i notification-battery-empty "critical battery level, suspending."
pkill -SIGUSR1 widle
sleep 2
sudo s2ram