From 50ec517a8888cd734389ce2b0df48c7791002e65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Tue, 26 Nov 2024 21:21:58 +0100 Subject: [PATCH] osc.lua: show file and track info on title left-click --- DOCS/man/osc.rst | 8 ++++---- player/lua/osc.lua | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/DOCS/man/osc.rst b/DOCS/man/osc.rst index 722a9477b1c65..253c3a8de8f11 100644 --- a/DOCS/man/osc.rst +++ b/DOCS/man/osc.rst @@ -49,9 +49,9 @@ title title, or the target chapter name while hovering the seekbar. ============= ================================================ - left-click open the playlist selector + left-click show file and track info middle-click show the filename - right-click show file and track info + right-click open the playlist selector ============= ================================================ cache @@ -496,11 +496,11 @@ Configurable Options The following options configure what commands are run when the buttons are clicked. ``mbtn_mid`` commands are also triggered with ``shift+mbtn_left``. -``title_mbtn_left_command=script-binding select/select-playlist; script-message-to osc osc-hide`` +``title_mbtn_left_command=script-binding stats/display-page-5`` ``title_mbtn_mid_command=show-text ${filename}`` -``title_mbtn_right_command=script-binding stats/display-page-5`` +``title_mbtn_right_command=script-binding select/select-playlist; script-message-to osc osc-hide`` ``playlist_prev_mbtn_left_command=playlist-prev; show-text ${playlist} 3000`` diff --git a/player/lua/osc.lua b/player/lua/osc.lua index b271505d82fa2..bd18303696606 100644 --- a/player/lua/osc.lua +++ b/player/lua/osc.lua @@ -70,9 +70,9 @@ local user_opts = { -- luacheck: push ignore -- luacheck: max line length - title_mbtn_left_command = "script-binding select/select-playlist; script-message-to osc osc-hide", + title_mbtn_left_command = "script-binding stats/display-page-5", title_mbtn_mid_command = "show-text ${filename}", - title_mbtn_right_command = "script-binding stats/display-page-5", + title_mbtn_right_command = "script-binding select/select-playlist; script-message-to osc osc-hide", playlist_prev_mbtn_left_command = "playlist-prev", playlist_prev_mbtn_mid_command = "show-text ${playlist} 3000",