Skip to content

Commit

Permalink
osc.lua: cycle tracks on right click
Browse files Browse the repository at this point in the history
This might be more useful than having the same binding as middle click.
Suggested by llyyr.
  • Loading branch information
guidocella authored and kasper93 committed Oct 26, 2024
1 parent 897c04a commit fbf8695
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions DOCS/man/osc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ clicked. ``mbtn_mid`` commands are also triggered with ``shift+mbtn_left``.

``audio_track_mbtn_mid_command=show-text ${track-list/audio} 3000``

``audio_track_mbtn_right_command=show-text ${track-list/audio} 3000``
``audio_track_mbtn_right_command=cycle audio``

``audio_track_wheel_down_command=cycle audio``

Expand All @@ -547,7 +547,7 @@ clicked. ``mbtn_mid`` commands are also triggered with ``shift+mbtn_left``.

``sub_track_mbtn_mid_command=show-text ${track-list/sub} 3000``

``sub_track_mbtn_right_command=show-text ${track-list/sub} 3000``
``sub_track_mbtn_right_command=cycle sub``

``sub_track_wheel_down_command=cycle sub``

Expand Down
4 changes: 2 additions & 2 deletions player/lua/osc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ local user_opts = {

audio_track_mbtn_left_command = "script-binding select/select-aid; script-message-to osc osc-hide",
audio_track_mbtn_mid_command = "show-text ${track-list/audio} 3000",
audio_track_mbtn_right_command = "show-text ${track-list/audio} 3000",
audio_track_mbtn_right_command = "cycle audio",
audio_track_wheel_down_command = "cycle audio",
audio_track_wheel_up_command = "cycle audio down",

sub_track_mbtn_left_command = "script-binding select/select-sid; script-message-to osc osc-hide",
sub_track_mbtn_mid_command = "show-text ${track-list/sub} 3000",
sub_track_mbtn_right_command = "show-text ${track-list/sub} 3000",
sub_track_mbtn_right_command = "cycle sub",
sub_track_wheel_down_command = "cycle sub",
sub_track_wheel_up_command = "cycle sub down",

Expand Down

0 comments on commit fbf8695

Please sign in to comment.