Skip to content

Instantly share code, notes, and snippets.

@jhilker98
Created June 19, 2020 17:16
Show Gist options
  • Save jhilker98/94932006b9708e504da5229d211ec213 to your computer and use it in GitHub Desktop.
Save jhilker98/94932006b9708e504da5229d211ec213 to your computer and use it in GitHub Desktop.
attempted fix for when no players found in playerctl
elif [[ "$(playerctl metadata title) - $(playerctl metadata artist) != "$song ]] && [[ "$(playerctl metadata title) - $(playerctl metadata artist)" != "No players found - No players found" ]]; then
"$(playerctl metadata title) - $(playerctl metadata artist)" 2>/dev/null
notify-send "Current Song" "No music playing"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment