summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlake Romero <blake@blkrom.com>2024-12-23 22:52:04 +0000
committerBlake Romero <blake@blkrom.com>2024-12-23 22:52:04 +0000
commit4b9d5700d6761672c9c56a57132e0abf57a9ee60 (patch)
tree263a4e3f4e17b3dc024cd5b77a6fdb9d21b3edd2
parentb407c24b76076bf9eff9be39cb04c13d2d17e091 (diff)
Add simple mpc script
-rwxr-xr-xmpd-menu7
1 files changed, 7 insertions, 0 deletions
diff --git a/mpd-menu b/mpd-menu
new file mode 100755
index 0000000..9e44f20
--- /dev/null
+++ b/mpd-menu
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+song=$(ls ~/music | bemenu -p "Play")
+[ -z "$song" ] && exit 1
+mpc clear
+mpc add "$song"
+mpc play