Last active
December 18, 2018 18:08
-
-
Save Jipok/5b256915fb5fad981c05a40796f6e3e1 to your computer and use it in GitHub Desktop.
Select mpd track via dmenu
This file contains hidden or 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/sh | |
mpc -f "[[%artist% - ][%album% - ]%title%]|[%file%]" playlist | \ | |
cat -n | sed "s/\t/: /" | \ | |
cut -c 1-120 | dmenu -i | cut -d ':' -f 1 \ | |
| xargs -r mpc play > /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment