dotfiles/.config/zsh/functions/mx-update-np
2024-04-04 13:28:40 +02:00

13 lines
296 B
Bash
Executable File

#!/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