aboutsummaryrefslogtreecommitdiff
path: root/bin/batt
diff options
context:
space:
mode:
Diffstat (limited to 'bin/batt')
-rwxr-xr-xbin/batt30
1 files changed, 0 insertions, 30 deletions
diff --git a/bin/batt b/bin/batt
deleted file mode 100755
index 16e945c..0000000
--- a/bin/batt
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-
-batt() {
- batt="$(cat /sys/class/power_supply/BAT0/capacity)"
- state="$(cat /sys/class/power_supply/BAT0/status)"
-
- icon=" "
-
- [ "$batt" -le 7 ] && icon=" "
-
-<<<<<<< HEAD
- [ "$batt" -le 10 ] && icon=" "
-=======
- [ "$batt" -le 10 ] && icon=" " && [ "$notif" -eq 0 ] && notify-send -u critical 'Bateria descarregando' 'Bateria atingiu 10%' && notif=1
->>>>>>> 32b9d69 (-c)
-
- [ "$batt" -le 20 ] && [ "$batt" -ge 10 ] && icon=" "
-
- [ "$batt" -le 50 ] && icon=" "
-
- [ "$batt" -ge 90 ] && icon=" "
-
- [ "$state" = "Charging" ] && icon=" "
-
- [ "$state" = "Full" ] && icon=""
-
- printf "%s %d%%" "$icon" "$batt"
-}
-
-batt