Skip to content

Instantly share code, notes, and snippets.

@akinozgen
Created June 26, 2020 16:13
Show Gist options
  • Save akinozgen/b7e241a7f74a4d153ac103aec6a4627f to your computer and use it in GitHub Desktop.
Save akinozgen/b7e241a7f74a4d153ac103aec6a4627f to your computer and use it in GitHub Desktop.
DeadBeef shorthand command palette with dmenu.
#!/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