mx-update-np: make it loop every 10s
This commit is contained in:
parent
bd3022bb04
commit
92ffb65da4
|
@ -4,9 +4,13 @@
|
|||
|
||||
setopt LOCAL_OPTIONS ERR_RETURN NO_UNSET PIPE_FAIL
|
||||
|
||||
local np=$(np-subsonic)
|
||||
if [[ -n "${np}" ]]; then
|
||||
mx-set-status "np: $(np-subsonic)"
|
||||
else
|
||||
mx-set-status
|
||||
fi
|
||||
local np
|
||||
|
||||
while sleep 10; do
|
||||
np=$(np-subsonic)
|
||||
if [[ -n "${np}" ]]; then
|
||||
mx-set-status "np: $(np-subsonic)"
|
||||
else
|
||||
mx-set-status
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue
Block a user