+ Added scripts directory
This commit is contained in:
parent
c42020a930
commit
08332199a2
23 changed files with 547 additions and 0 deletions
18
.scripts/musicplayer.sh
Executable file
18
.scripts/musicplayer.sh
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/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" && urxvt -name 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
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue