Created
June 19, 2020 17:16
-
-
Save jhilker98/94932006b9708e504da5229d211ec213 to your computer and use it in GitHub Desktop.
attempted fix for when no players found in playerctl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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