summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlake Romero <blake@blkrom.com>2025-03-30 23:16:03 +0100
committerBlake Romero <blake@blkrom.com>2025-03-30 23:16:03 +0100
commit29557da3c9b39590177c9d9c3e451d74fb8ee065 (patch)
treecb89aa4ea4708a9bde224f34d08f4fe376b604f2
parent0c753714ac09f1ec47dd947838bc0f0fdd91519e (diff)
Hide file extension in mpd-menu prompt
-rwxr-xr-xmpd-menu4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpd-menu b/mpd-menu
index 9e44f20..9c2e159 100755
--- a/mpd-menu
+++ b/mpd-menu
@@ -1,7 +1,7 @@
#!/bin/sh
-song=$(ls ~/music | bemenu -p "Play")
+song=$(ls ~/music | sed 's/.mp3//' | bemenu -p "Play")
[ -z "$song" ] && exit 1
mpc clear
-mpc add "$song"
+mpc add "${song}.mp3"
mpc play