summaryrefslogtreecommitdiff
path: root/mpd-menu
diff options
context:
space:
mode:
Diffstat (limited to 'mpd-menu')
-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