Disable urgency when charging.

This commit is contained in:
2016-01-02 14:44:55 +01:00
parent f75cbc83ee
commit 8ba3d850d3

View File

@@ -74,15 +74,16 @@ if (( has_battery )) ; then
[[ -f "$_PATH_WARN_2" ]] && rm "$_PATH_WARN_2" [[ -f "$_PATH_WARN_2" ]] && rm "$_PATH_WARN_2"
fi fi
urgent=0
if threshold2 ; then if threshold2 ; then
color="#FF0000" # red color="#FF0000" # red
urgent=1 if discharging ; then
urgent=1
fi
elif threshold1 ; then elif threshold1 ; then
color="#FFFF00" # yellow color="#FFFF00" # yellow
urgent=0
else else
color="#FFFFFF" # white color="#FFFFFF" # white
urgent=0
fi fi
printf '%s\n' "${status} ${percent}%" printf '%s\n' "${status} ${percent}%"