mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-24 17:23:09 +01:00
ncmpcpp: Fix broken change script
It turns out that we actually *do* need to 2>/dev/null.
This commit is contained in:
parent
a6f2c58d51
commit
107b5c79d6
@ -32,7 +32,7 @@ in
|
||||
metaflac --export-picture-to=/tmp/cover.jpg \
|
||||
"$(mpc --format "${musicDirectory}"/%file% current)" && cover_path="/tmp/cover.jpg" && return
|
||||
else
|
||||
ffmpeg -y -i "$(mpc --format "${musicDirectory}"/%file% | head -n 1)"} \
|
||||
ffmpeg -y -i "$(mpc --format "${musicDirectory}"/%file% | head -n 1)" \
|
||||
/tmp/cover.jpg && cover_path="/tmp/cover.jpg" && return
|
||||
fi
|
||||
|
||||
@ -41,7 +41,8 @@ in
|
||||
cover_path=$(find "$album" -maxdepth 1 | grep -m 1 ".*\.\(jpg\|png\|gif\|bmp\)")
|
||||
}
|
||||
|
||||
find_cover && notify-send -i "''${cover_path:-${fallbackImage}}" "Now Playing" "$(mpc current)"
|
||||
find_cover 2>/dev/null
|
||||
notify-send -i "''${cover_path:-${fallbackImage}}" "Now Playing" "$(mpc current)" 2>/dev/null
|
||||
'';
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user