config: music additions

This commit is contained in:
xeruf 2022-01-08 22:53:49 +01:00
parent 8493d6d416
commit 7fd5137121
5 changed files with 22 additions and 15 deletions

View File

@ -48,4 +48,5 @@ Piano
Electronic; Vocal
Christian; Hip-Hop
Theme; Ambient
Theme; Ambiente
Theme; Ambiente
Minecraft; Theme; Liquid

View File

@ -9,7 +9,7 @@
"value": true
},
"Su&bfolders": {
"value": false
"value": true
},
"&Preserve file modification times (if supported)": {
"value": false

View File

@ -16,8 +16,8 @@
},
"main": {
"lang": "auto",
"lastfolder": "/home/janek/data/music/Canto/Minecraft",
"maximized": false
"lastfolder": "/home/janek/data/music/Ambient/C418",
"maximized": true
},
"playlist": {
"extinfo": 1,
@ -43,7 +43,7 @@
"fontsize": 10,
"rowsize": 43,
"sort_fields": [
"__path"
"album"
],
"sort_reverse": false
},
@ -118,7 +118,7 @@
"$num(%track%,2) %title%",
"%title%"
],
"index": 0
"index": 3
},
"functions": {
"last_used": "regex"
@ -134,4 +134,4 @@
"Artist splitting"
]
}
}
}

View File

@ -1,11 +1,15 @@
REPLAYGAIN_TRACK_GAIN
album
albumartist
albumsortorder
arranger
artist
artists
audiodelay
audiolength
audiosize
author
band
bpm
comment
composer
@ -27,7 +31,6 @@ isrc
itunesalbumsortorder
itunescompilationflag
itunescomposersortorder
just nothing to do with this
language
lyricist
mediatype
@ -47,6 +50,7 @@ radioowner
radiostationname
recordingdates
releasetime
replaygain_track_gain
setsubtitle
taggingtime
time
@ -64,4 +68,4 @@ wwwpayment
wwwpublisher
wwwradio
wwwsource
year
year

View File

@ -7,10 +7,12 @@ mpc -q clear
if test -z "$1"
then mp -q "$PLAYLISTS/focus.m3u"
else
(find -L $PLAYLISTS -iname "focus-$1.m3u" -print0 | grep --null-data . ||
find -L $PLAYLISTS -iname "$1.m3u*" -print0 | grep --null-data . ||
find -L $MUSIC $(echo "$@" | sed 's/\w\+/-iname *\0*/g') -prune -exec find {} -size +2M -type f -not -iregex ".*.\(jpe?g\|png\)" -print0 \; ) |
xargs -0 mp -q
(find -L $PLAYLISTS -iname "focus-$1.m3u" -print0 | grep --null-data . ||
find -L $PLAYLISTS -iname "$1.m3u*" -print0 | grep --null-data . ||
find -L $MUSIC $(echo "$@" | sed 's/\w\+/-iname *\0*/g') -prune -exec find {} -size +1M -type f -not -iregex ".*.\(jpe?g\|png\)" -print0 \; ) |
xargs -0 mp -q
fi
if test $(mpc playlist | wc -l) -gt 1; then
mpc -q shuffle
mpc next
fi
mpc -q shuffle
mpc next