summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xclerk3
-rw-r--r--config.clerk5
2 files changed, 7 insertions, 1 deletions
diff --git a/clerk b/clerk
index c1d7768..65f5651 100755
--- a/clerk
+++ b/clerk
@@ -1209,6 +1209,9 @@ rateTrack () {
clerk_helper ratetrack "${rateartist}" "${ratealbum}" "${ratetrack}" "${ratetitle}" "${rating}"
notify-send "clerk" "rated ${rateartist} - ${ratetitle} with $(echo ${rating})"
fi
+ if [[ $auto_track_rating_backup == "true" ]]; then
+ clerk_helper importtrackratings
+ fi
fi
}
diff --git a/config.clerk b/config.clerk
index 6f847f3..467878e 100644
--- a/config.clerk
+++ b/config.clerk
@@ -1,6 +1,6 @@
# rofi command. Make sure to have "$@" as last argument
_rofi () {
- rofi -regex -i -lines 30 -width 1500 -no-levenshtein-sort "$@"
+ rofi -i -regex -lines 30 -width 1500 -no-levenshtein-sort "$@"
}
# custom mpd host
@@ -32,6 +32,9 @@ ssh_host=
# leave empty for autodetection
help_color=""
+# automatically save json file with track ratings
+auto_track_rating_backup=true
+
# custom keybindings
# global
albumlist="Alt+F1"