1
0
Fork 0

add mx-update-np

This commit is contained in:
tastytea 2024-04-04 13:28:40 +02:00
parent 7c615772f0
commit bd3022bb04
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
#!/usr/bin/env zsh
# set matrix status to subsonic now playing
# needs mx-set-status and np-subsonic in ${PATH} or as functions
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