diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-16 21:26:30 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-16 21:26:30 +0200 |
commit | 56be5fbb7fbc5ec012a0f5e1e8808cc7cadc59b0 (patch) | |
tree | 78201de3363377f18f80bd5311b08c25871827e5 /bin/guiscripts | |
parent | 95c2a4cc7f9a3e99185710d97fe8d9eacb392303 (diff) |
added mplay
Diffstat (limited to 'bin/guiscripts')
-rwxr-xr-x | bin/guiscripts/mplay | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bin/guiscripts/mplay b/bin/guiscripts/mplay new file mode 100755 index 0000000..4c991fa --- /dev/null +++ b/bin/guiscripts/mplay @@ -0,0 +1,16 @@ +#!/bin/sh +# menu select long +if [ "$MENUCMD" = "tofi" ] +then + menucmd="tofi --width 50% --height 30%" +elif [ "$MENUCMD" = "dmenu" ] +then + menucmd="dmenu -l 10 -g 1 -x -i" +else + menucmd="fzf" +fi +choice="$(mpc listall | $menucmd)" +test -z "$choice" && + exit 1 +mpc insert "$choice" && + mpc next |