From 916b481d86e36ea8f3b151b1b5cc508cbc128466 Mon Sep 17 00:00:00 2001 From: Shubham Saini Date: Wed, 3 Jun 2020 20:15:32 +0530 Subject: updates --- bin/.local/bin/bat_check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/.local/bin/bat_check.sh b/bin/.local/bin/bat_check.sh index 453d129..547b976 100755 --- a/bin/.local/bin/bat_check.sh +++ b/bin/.local/bin/bat_check.sh @@ -3,7 +3,7 @@ while true do battery_level=$(cat /sys/class/power_supply/BAT0/capacity) state=$(cat /sys/class/power_supply/BAT0/status) - if [ $battery_level -ge 95 ] && [ $state == "Charging" ]; then + if [ $battery_level -ge 90 ] && [ $state == "Charging" ]; then notify-send 'Pull the plug!' $battery_level% elif [ $battery_level -le 30 -a $battery_level -ge 20 ] && [ $state == "Discharging" ]; then notify-send 'Plug me!' $battery_level% -- cgit v1.2.3