diff --git a/modules/home-manager/audio/cmus/files/notify.sh b/modules/home-manager/audio/cmus/files/notify.sh index dfc62db..a01bcfd 100755 --- a/modules/home-manager/audio/cmus/files/notify.sh +++ b/modules/home-manager/audio/cmus/files/notify.sh @@ -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 diff --git a/modules/home-manager/audio/cmus/files/rc b/modules/home-manager/audio/cmus/files/rc index 2c30746..fbe4896 100644 --- a/modules/home-manager/audio/cmus/files/rc +++ b/modules/home-manager/audio/cmus/files/rc @@ -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