7 lines
246 B
Plaintext
7 lines
246 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
|
||
|
song_position=$(mpc -f "%position%) %artist% - %title%" playlist | \
|
||
|
gui-fzf --query="$1" --select-1 --exit-0 | \
|
||
|
sed -n 's/^\([0-9]\+\)).*/\1/p') || return 1
|
||
|
[[ -n "$song_position" ]] && mpc -q play "$song_position"
|