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)
|
||||
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue