aboutsummaryrefslogtreecommitdiff
path: root/shlowbat
diff options
context:
space:
mode:
authorTimmy Keller <tjk@tjkeller.xyz>2024-09-09 21:08:07 -0500
committerTimmy Keller <tjk@tjkeller.xyz>2024-09-09 21:08:07 -0500
commit40c551385f20cc95a1b6571c4b1946cbed226f85 (patch)
treebd561084f82a817346bab048a403dd6304a925cf /shlowbat
parent8e929bd44420ed9a3bc0b6a030cebbdfcafebf4d (diff)
downloadlowbat-40c551385f20cc95a1b6571c4b1946cbed226f85.tar.xz
lowbat-40c551385f20cc95a1b6571c4b1946cbed226f85.zip
update makefile to build & install, include manpage, make notification persistent and change urgency
Diffstat (limited to 'shlowbat')
-rwxr-xr-xshlowbat4
1 files changed, 2 insertions, 2 deletions
diff --git a/shlowbat b/shlowbat
index a02ce56..a4fb9d7 100755
--- a/shlowbat
+++ b/shlowbat
@@ -13,9 +13,9 @@ while true; do
if is_discharging; then
if [ $capacity -le 5 ] && [ $warning_level -lt 2 ]; then
- notify_send "Critical Low Battery Warning" "${capacity}% remains"
+ notify-send -u critical -w "Critical Low Battery Warning" "${capacity}% remains"
elif [ $capacity -le 20 ] && [ $warning_level -lt 1 ]; then
- notify_send "Low Battery Warning" "${capacity}% remains"
+ notify-send -u normal -w "Low Battery Warning" "${capacity}% remains"
fi
else
warning_level=0