diff options
Diffstat (limited to 'Scripts/.local/scripts/playlist_choice')
-rwxr-xr-x | Scripts/.local/scripts/playlist_choice | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Scripts/.local/scripts/playlist_choice b/Scripts/.local/scripts/playlist_choice new file mode 100755 index 0000000..af69765 --- /dev/null +++ b/Scripts/.local/scripts/playlist_choice @@ -0,0 +1,10 @@ +#!/bin/bash +choice=$(mpc playlist | dmenu -i) +if [[ -n "$choice" ]] +then + item=$(echo $choice | awk '{split($0, a, "-");print a[2]}' | cut -c2-) + mpc searchplay title "$item" +else + echo "No choice given" +fi + |