2022-06-27 13:03:11 +02:00
|
|
|
#!/bin/sh -e
|
2021-10-15 13:44:15 +02:00
|
|
|
# Select a song in the mpd queue using fzf and mpc
|
2022-06-27 13:03:11 +02:00
|
|
|
# depends: fzy/fzf-tmux mpc
|
|
|
|
song_position=$(mpc -f "%position%) %artist% - %title%" playlist |
|
|
|
|
#fzy --query="$1" |
|
2023-08-07 19:53:37 +02:00
|
|
|
fzf-tmux --query="$1" --reverse --exit-0 |
|
2022-06-27 13:03:11 +02:00
|
|
|
sed -n 's/^\([0-9]\+\)).*/\1/p')
|
2021-10-16 10:46:54 +02:00
|
|
|
test -n "$song_position" && mpc play $song_position
|