summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xm4
1 files changed, 3 insertions, 1 deletions
diff --git a/m b/m
index 25b0d0b..ab62054 100755
--- a/m
+++ b/m
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-cmd_list="play stop next prev toggle add insert volume seek repeat single consume random clear crop shop-start shop-stop"
+cmd_list="play load-playlist stop next prev toggle add insert volume seek repeat single consume random clear crop shop-start shop-stop"
# TODO: dmenu integration. idk how to detect I'm in dmenu and switch to that...
menu() {
@@ -27,6 +27,8 @@ elif [[ $cmd == shop-stop ]]; then
systemctl --user stop shop-music.service
elif [[ $cmd == shop-start ]]; then
systemctl --user start shop-music.service
+elif [[ $cmd == load-playlist ]]; then
+ mpc lsplaylist | menu "playlists" | xargs mpc load
else
mpc $cmd
fi