aboutsummaryrefslogtreecommitdiff
path: root/bin/check_batt
diff options
context:
space:
mode:
Diffstat (limited to 'bin/check_batt')
-rwxr-xr-xbin/check_batt16
1 files changed, 0 insertions, 16 deletions
diff --git a/bin/check_batt b/bin/check_batt
deleted file mode 100755
index 37518e9..0000000
--- a/bin/check_batt
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-batt="$(cat /sys/class/power_supply/BAT0/capacity)"
-state="$(cat /sys/class/power_supply/BAT0/status)"
-
-icon=" "
-urg="normal"
-
-[ "$batt" -le 7 ] && icon=" " && msg="bateria crítica!" && urg="critical"
-
-[ "$batt" -gt 7 ] && [ "$batt" -le 10 ] && icon=" " && msg="bateria baixa"
-
-[ "$batt" -le 20 ] && [ "$batt" -ge 10 ] && icon=" " && msg="bateria descarregando"
-
-# only send a notificaton if not charging
-[ "$state" != "Charging" ] && [ "$state" != "Full" ] && notify-send "$icon $batt%" "$msg" -u "$urg"