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) options=( --app-name=cmus --transient -u low)
filename=${file##*/} filename=${file##*/}
image=${file%/*}/cover.jpg path=${file%/*}
if [[ -f "$image" ]]; then if [[ -f "${path}/cover.png" ]]; then
options+=( -i "${image}" ) options+=( -i "${path}/cover.png" )
fi
if [[ -f "${path}/cover.jpg" ]]; then
options+=( -i "${path}/cover.jpg" )
fi fi
## Get title or filename ## Get title or filename

View file

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