Last active
November 30, 2020 10:56
-
-
Save yzdann/3b52bf6f187628b7268813a23a0d3150 to your computer and use it in GitHub Desktop.
Revisions
-
yzdann revised this gist
Nov 30, 2020 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ if [[ $(spotifycli --status) ]]; then SONG=$(spotifycli --song) SPOTIFY_WINDOWD_ID=$(wmctrl -l | grep -i "$SONG" | head -1 | awk '{ print $1 }') echo "<img>/home/yzdann/.scripts/spotify.png</img><click>wmctrl -i -a $SPOTIFY_WINDOWD_ID</click>" else echo "<img>/home/yzdann/.scripts/spotify-gray.png</img><click>spotify %U</click>" -
yzdann created this gist
Nov 30, 2020 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ SPOTIFY_WINDOWD_ID=$(wmctrl -l | grep -i "spotify free" | head -1 | awk '{ print $1 }') if [[ "$SPOTIFY_WINDOWD_ID" ]]; then echo "<img>/home/yzdann/.scripts/spotify.png</img><click>wmctrl -i -a $SPOTIFY_WINDOWD_ID</click>" else echo "<img>/home/yzdann/.scripts/spotify-gray.png</img><click>spotify %U</click>" fi