voidrice/.local/bin/dmenu_openmusic

12 lines
454 B
Bash
Executable File

#!/bin/sh
# Allow you to choose which music source you want to launch
music_service=$(printf "Google Music\nSpotify" | dmenu -i -p "Select music service: ")
case "$music_service" in
"Google Music") notify-send "Opened $music_service" && google-chrome-stable https://play.google.com/music/listen\#/artists 2>/dev/null & ;;
"Spotify") notify-send "Opened $music_service" && google-chrome-stable https://open.spotify.com/browse/ 2>/dev/null & ;;
esac