diff options
author | Ben Sima <ben@bsima.me> | 2022-04-12 09:34:48 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2022-04-12 09:34:48 -0400 |
commit | 7fbca5ccc7a5482243d0c7d87a70927a9a2c5d58 (patch) | |
tree | f0555689626ba31d1932ddda41676e5b085a2f99 /m | |
parent | 2ee7f97cc4ae24fdfb0db01c97b461de1e756e2f (diff) |
add load-playlist command
Diffstat (limited to 'm')
-rwxr-xr-x | m | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |