Skip to content

Commit

Permalink
osc.lua: show track-list for one more second
Browse files Browse the repository at this point in the history
Useful now that track metadata is printed. This now uses the same
duration as playlist and chapter-list.
  • Loading branch information
guidocella authored and kasper93 committed Oct 24, 2024
1 parent 96095bd commit 4598ceb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions DOCS/man/osc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -535,19 +535,19 @@ clicked. ``mbtn_mid`` commands are also triggered with ``shift+mbtn_left``.

``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} 2000``
``audio_track_mbtn_mid_command=show-text ${track-list/audio} 3000``

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

``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} 2000``
``sub_track_mbtn_mid_command=show-text ${track-list/sub} 3000``

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

``sub_track_wheel_down_command=cycle sub``

Expand Down
8 changes: 4 additions & 4 deletions player/lua/osc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ local user_opts = {
chapter_next_mbtn_right_command = "script-binding select/select-chapter; script-message-to osc osc-hide",

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} 2000",
audio_track_mbtn_right_command = "show-text ${track-list/audio} 2000",
audio_track_mbtn_mid_command = "show-text ${track-list/audio} 3000",
audio_track_mbtn_right_command = "show-text ${track-list/audio} 3000",
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} 2000",
sub_track_mbtn_right_command = "show-text ${track-list/sub} 2000",
sub_track_mbtn_mid_command = "show-text ${track-list/sub} 3000",
sub_track_mbtn_right_command = "show-text ${track-list/sub} 3000",
sub_track_wheel_down_command = "cycle sub",
sub_track_wheel_up_command = "cycle sub down",

Expand Down

0 comments on commit 4598ceb

Please sign in to comment.