chore: update cmus configuration

This commit is contained in:
Yorick Barbanneau 2024-09-22 21:11:09 +02:00
parent 4477c2b2ab
commit 318467d0c6
2 changed files with 9 additions and 5 deletions

View file

@ -24,10 +24,14 @@ main() {
options=( --app-name=cmus --transient -u low)
filename=${file##*/}
image=${file%/*}/cover.jpg
if [[ -f "$image" ]]; then
options+=( -i "${image}" )
path=${file%/*}
if [[ -f "${path}/cover.png" ]]; then
options+=( -i "${path}/cover.png" )
fi
if [[ -f "${path}/cover.jpg" ]]; then
options+=( -i "${path}/cover.jpg" )
fi
## Get title or filename

View file

@ -53,4 +53,4 @@ set color_win_dir=default
set status_display_program=~/.config/cmus/notify.sh
set format_current= %{?stream??󰈣} %t %{?a?by 󰠃 %a} %{?l?on 󰀥 %l}%= %y
add -l ~/medias/music
add -l ~/medias/musics