dotfiles/.scripts/musicplayer.sh
ziro 9952e0166d --[ modified: zshrc, musicplayer, etc]------------
- Removed st transparency from picom.conf
+ Fixed incorrect source path
2020-07-27 13:50:00 +07:00

18 lines
571 B
Bash
Executable file

#!/bin/dash
choices="Cancel\0icon\x1fzcancel
ncmpcpp
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 ;;
ncmpcpp) notify-send "Launching..." "$chosen" && st -e ncmpcpp ;;
esac