mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-13 21:26:48 +02: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 \
|
metaflac --export-picture-to=/tmp/cover.jpg \
|
||||||
"$(mpc --format "${musicDirectory}"/%file% current)" && cover_path="/tmp/cover.jpg" && return
|
"$(mpc --format "${musicDirectory}"/%file% current)" && cover_path="/tmp/cover.jpg" && return
|
||||||
else
|
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
|
/tmp/cover.jpg && cover_path="/tmp/cover.jpg" && return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -41,7 +41,8 @@ in
|
|||||||
cover_path=$(find "$album" -maxdepth 1 | grep -m 1 ".*\.\(jpg\|png\|gif\|bmp\)")
|
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…
x
Reference in New Issue
Block a user