aboutsummaryrefslogtreecommitdiff
path: root/local/bin/battery-low-check
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-08-19 12:42:52 +0200
committerCharles Cabergs <me@cacharle.xyz>2021-08-19 12:42:52 +0200
commit7d9345c9564370bdb32cbb06d24b238986572ea6 (patch)
treee9690847f8dca5dccfb759dd53b5b7895eb87872 /local/bin/battery-low-check
parentf064922a74100af86def550d4ef6a50ab4e80203 (diff)
downloaddotfiles-7d9345c9564370bdb32cbb06d24b238986572ea6.tar.gz
dotfiles-7d9345c9564370bdb32cbb06d24b238986572ea6.tar.bz2
dotfiles-7d9345c9564370bdb32cbb06d24b238986572ea6.zip
Added battery-low-notify script and crontab to run it every 10min
Diffstat (limited to 'local/bin/battery-low-check')
-rwxr-xr-xlocal/bin/battery-low-check5
1 files changed, 0 insertions, 5 deletions
diff --git a/local/bin/battery-low-check b/local/bin/battery-low-check
deleted file mode 100755
index dbbdc6b..0000000
--- a/local/bin/battery-low-check
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-capacity=$(cat /sys/class/power_supply/BAT0/capacity)
-
-[ "$capacity" -lt 10 ] && notify-send -u critical "Battery low $capacity%"