summaryrefslogtreecommitdiff
path: root/i3blocks-battery.sh
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2020-05-18 20:56:13 -0400
committerAdam T. Carpenter <atc@53hor.net>2020-05-18 20:56:13 -0400
commit0ce7301d8799ba91a0d57ab208e2d80d20935a83 (patch)
treee509a730a429ffdbb418dbb53b42557d40541f8e /i3blocks-battery.sh
parent6e14535ef56fd91b05eb170f71f7989d7435d8c3 (diff)
downloadscripts-0ce7301d8799ba91a0d57ab208e2d80d20935a83.tar.xz
scripts-0ce7301d8799ba91a0d57ab208e2d80d20935a83.zip
temp fixes for blocks utf+8 errors, added dict.sh, updated porter
Diffstat (limited to 'i3blocks-battery.sh')
-rwxr-xr-xi3blocks-battery.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/i3blocks-battery.sh b/i3blocks-battery.sh
index af2d37f..c37c7a2 100755
--- a/i3blocks-battery.sh
+++ b/i3blocks-battery.sh
@@ -9,7 +9,7 @@ level=$(apm -l)
[ $status -eq 0 ] && printf "%s" $icon_high
[ $status -eq 1 ] && printf "%s" $icon_low
-[ $status -eq 2 ] && printf "%s" $icon_crit
+[ $status -eq 2 ] && printf "%s" $icon_crit && notify-send "Battery critically low"
[ $status -eq 3 ] && printf "%s" $icon_charging
-printf " %s%%\n" $level
+printf "%s%%\n" $level