low battery notification 25%

This commit is contained in:
2016-06-12 18:51:22 -06:00
parent a83a7d8361
commit da9000de7a
+2 -2
View File
@@ -55,9 +55,9 @@ dte(){
bat(){ bat(){
on1="$(</sys/class/power_supply/ADP1/online)" on1="$(</sys/class/power_supply/ADP1/online)"
charge="$(</sys/class/power_supply/BAT1/capacity)" charge="$(</sys/class/power_supply/BAT1/capacity)"
if [[ $on1 -eq "0" && $charge -lt "20" ]] if [[ $on1 -eq "0" && $charge -lt "25" ]]
then then
#below 20% #below 25%
echo -ne "${color_urgent}${glyph_pow} ${charge}%${color_normal}" echo -ne "${color_urgent}${glyph_pow} ${charge}%${color_normal}"
#send pushbullet to phone #send pushbullet to phone
if [[ ! -f /run/user/1050/batpush ]] if [[ ! -f /run/user/1050/batpush ]]