From e21e1c3180810b6451d8d393e0607d08fc18e768 Mon Sep 17 00:00:00 2001 From: nanahi <130121847+na-na-hi@users.noreply.github.com> Date: Tue, 22 Oct 2024 23:03:36 -0400 Subject: [PATCH] etc/restore-osc-bindings.conf: add file to restore old osc bindings The OSC changed to use select.lua for various tasks, resulting in a significant change in user interaction. This adds a config file which records OSC behavior changes so that the old behavior can be restored. --- etc/restore-osc-bindings.conf | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 etc/restore-osc-bindings.conf diff --git a/etc/restore-osc-bindings.conf b/etc/restore-osc-bindings.conf new file mode 100644 index 0000000000..afbf15587b --- /dev/null +++ b/etc/restore-osc-bindings.conf @@ -0,0 +1,31 @@ +# This file contains all bindings that were removed or changed +# after a certain release. + +# Pick the bindings you want back and add them to your own osc.conf. Append +# this file to your osc.conf if you want them all back: +# +# cat restore-osc-bindings.conf >> ~/.config/mpv/script-opts/osc.conf + +# changed in mpv 0.40.0 + +# restore playlist_osd=yes behavior +playlist_prev_mbtn_left_command=playlist-prev; show-text ${playlist} 3000 +playlist_next_mbtn_left_command=playlist-next; show-text ${playlist} 3000 + +# restore chapter_osd=yes behavior +chapter_prev_mbtn_left_command=no-osd add chapter -1; show-text ${chapter-list} 3000 +chapter_next_mbtn_left_command=no-osd add chapter 1; show-text ${chapter-list} 3000 + +# restore behavior before select.lua usage +title=${media-title} +title_mbtn_left_command=show-text "${!playlist-count==1:[${playlist-pos-1}/${playlist-count}] }${media-title}" +title_mbtn_right_command=show-text ${filename} + +chapter_prev_mbtn_right_command=show-text ${chapter-list} 3000 +chapter_next_mbtn_right_command=show-text ${chapter-list} 3000 + +audio_track_mbtn_left_command=cycle audio +audio_track_mbtn_right_command=cycle audio down + +sub_track_mbtn_left_command=cycle sub +sub_track_mbtn_right_command=cycle sub down