many changes i made in the last weeks
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
# Settings
|
||||
battery_percent_MODULUS=5 # How many percent difference are required for another update
|
||||
INTERVAL=20 # The interval at which to check the battery percentage
|
||||
ALERT_SCRIPT="sudo /home/mia/Scripts/keyboard_alert.sh"
|
||||
#ALERT_SCRIPT="sudo /home/mia/Scripts/keyboard_alert.sh"
|
||||
|
||||
# Battery Levels
|
||||
BAT_RECOMMENDED_UPPER_LIMIT=80
|
||||
@@ -53,7 +53,7 @@ do
|
||||
if [[ $(cat /sys/bus/acpi/drivers/battery/*/power_supply/BAT?/status) = "Charging" ]]; then
|
||||
if [[ $battery_percent -ge $BAT_RECOMMENDED_UPPER_LIMIT ]]; then
|
||||
notify-send "Im full!" -u low
|
||||
$ALERT_SCRIPT
|
||||
#$ALERT_SCRIPT
|
||||
fi
|
||||
|
||||
# Is battery discharging?
|
||||
@@ -63,13 +63,13 @@ do
|
||||
countdown
|
||||
elif [[ $battery_percent -le $BAT_VERY_LOW ]]; then
|
||||
notify-send "I beg you, I'm about to die!" -u critical &&
|
||||
$ALERT_SCRIPT 5
|
||||
#$ALERT_SCRIPT 5
|
||||
elif [[ $battery_percent -le $BAT_LOW ]]; then
|
||||
notify-send "Can you please plug me in aleady? I'm dying!" -u normal &&
|
||||
$ALERT_SCRIPT 2
|
||||
#$ALERT_SCRIPT 2
|
||||
elif [[ $battery_percent -le $BAT_SLIGHTLY_LOW ]]; then
|
||||
notify-send "I'd need a recharge about now pwp" -u normal &&
|
||||
$ALERT_SCRIPT 1
|
||||
#$ALERT_SCRIPT 1
|
||||
elif [[ $battery_percent -le $BAT_RECOMMENDED_LOWER_LIMIT ]]; then
|
||||
notify-send "Please plug me in pwp" -u low
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user