dotfiles/.scripts/musicplayer.sh
ziro 9cb5f7b078 + Changed compton to picom
+ Update
+ Switch from urxvt to st
2020-05-11 07:03:22 +07:00

18 lines
498 B
Bash
Executable file

#!/bin/dash
choices="Cancel\0icon\x1fzcancel
cmus\0icon\x1fzcmus
Spotify\0icon\x1fzspotify
VLC\0icon\x1fzvlc"
message="What music player do you want to launch?"
chosen=$(echo -e "$choices" | rofi -dmenu -i -theme ~/.config/rofi/theme/sidebar)
case "$chosen" in
cmus) notify-send "Launching..." "cmus" && st -n cmus -e cmus ;;
Spotify) notify-send "Launching..." "Spotify" && env LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify ;;
VLC) notify-send "Launching..." "VLC" && vlc ;;
esac