Browse Source

fzmp: hide now playing when nothign playing

pull/6/head
DanielFGray 6 years ago
parent
commit
243e14a68c
  1. 5
      fzmp

5
fzmp

@ -113,10 +113,11 @@ filterSongsFromAlbum() { @@ -113,10 +113,11 @@ filterSongsFromAlbum() {
}
filterPlaylist() {
local choice
local choice
current_song=$(mpc current -f "$track_format")
mapfile -t choice < <(mpc playlist -f "%position%\t$track_format" |
fzf --prompt='playlist > ' \
--header="now playing: $(mpc current -f "$track_format")" \
${current_song:+--header="now playing: ${current_song}"} \
--delimiter='\t' \
--with-nth='2..' \
--expect='f1,f2,>,<,ctrl-d,enter' |

Loading…
Cancel
Save