Created
June 26, 2020 16:13
-
-
Save akinozgen/b7e241a7f74a4d153ac103aec6a4627f to your computer and use it in GitHub Desktop.
DeadBeef shorthand command palette with dmenu.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
selected="$(find ~/Music/*/*.mp3 | dmenu -i -l 15 -fn 'SF Mono' -fn monospace-14)" | |
option="$(echo -e 'Play\nQueue' | dmenu -i -l 2 -fn 'SF Mono' -fn monospace-14)" | |
if [ "$option" = "Play" ] | |
then | |
deadbeef "$selected" & | |
elif [ "$option" = "Queue" ] | |
then | |
deadbeef --queue "$selected" & | |
fi | |
disown | |
clear | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment