Less spam in peripheral-waybar
This commit is contained in:
parent
ea29d6f7ac
commit
a1de7af016
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ mouse_waybar () {
|
|||
CURR_DATE=$( date +%s )
|
||||
DIFF=$(( CURR_DATE - UPG_DATE ))
|
||||
if (( DIFF > 32 )); then
|
||||
BATTERY_LEVEL=$(rivalcfg --battery-level)
|
||||
BATTERY_LEVEL=$(rivalcfg --battery-level 2> /dev/null)
|
||||
echo $CURR_DATE > $LAST_UPDATE_FILE
|
||||
echo $BATTERY_LEVEL > $LAST_STATUS_FILE
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue