summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2022-04-12 09:34:48 -0400
committerBen Sima <ben@bsima.me>2022-04-12 09:34:48 -0400
commit7fbca5ccc7a5482243d0c7d87a70927a9a2c5d58 (patch)
treef0555689626ba31d1932ddda41676e5b085a2f99
parent2ee7f97cc4ae24fdfb0db01c97b461de1e756e2f (diff)
add load-playlist command
-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