chore: update cmus configuration
This commit is contained in:
parent
4477c2b2ab
commit
318467d0c6
2 changed files with 9 additions and 5 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue