Skip to content

Instantly share code, notes, and snippets.

@yzdann
Created November 30, 2020 09:24
Show Gist options
  • Save yzdann/32c01d62c51344f182cb4ee503c4dd21 to your computer and use it in GitHub Desktop.
Save yzdann/32c01d62c51344f182cb4ee503c4dd21 to your computer and use it in GitHub Desktop.
SPOTIFY_WINDOWD_ID=$(wmctrl -l | grep -i "spotify free" | head -1 | awk '{ print $1 }')
if [[ "$SPOTIFY_WINDOWD_ID" ]]; then
wmctrl -i -a "$SPOTIFY_WINDOWD_ID"
else
spotify %U
fi
@yzdann
Copy link
Author

yzdann commented Nov 30, 2020

spotify-gray

spotify

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment