Skip to content

Commit

Permalink
osc.lua: show file and track info on title left-click
Browse files Browse the repository at this point in the history
  • Loading branch information
kasper93 committed Nov 26, 2024
1 parent 73c66b2 commit 50ec517
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions DOCS/man/osc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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``

Expand Down
4 changes: 2 additions & 2 deletions player/lua/osc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 50ec517

Please sign in to comment.