Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions DOCS/interface-changes/osc-buttons.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
change several OSC mouse bindings to select.lua functions
add script-opts to configure what OSC buttons do when clicked
remove `osc-playlist_osd` script-opt and behave as if it was off by default; `playlist_osd=yes` can be replicated with `osc-playlist_prev_mbtn_left_command=playlist-prev; show-text ${playlist} 3000` and `osc-playlist_next_mbtn_left_command=playlist-next; show-text ${playlist} 3000`
remove `osc-chapters_osd` script-opt and behave as if it was off by default; `chapter_osd=yes` can be replicated with `osc-chapter_prev_mbtn_left_command=no-osd add chapter -1; show-text ${chapter-list} 3000` and `osc-chapter_next_mbtn_left_command=no-osd add chapter 1; show-text ${chapter-list} 3000`
93 changes: 85 additions & 8 deletions DOCS/man/osc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,27 @@ The Interface
pl prev
============= ================================================
left-click play previous file in playlist
right-click show playlist
shift+L-click show playlist
right-click open the playlist selector
shift+L-click show the playlist
middle-click show the playlist
============= ================================================

pl next
============= ================================================
left-click play next file in playlist
right-click show playlist
shift+L-click show playlist
right-click open the playlist selector
shift+L-click show the playlist
middle-click show the playlist
============= ================================================

title
| Displays current media-title, filename, custom title, or target chapter
name while hovering the seekbar.

============= ================================================
left-click show playlist position and length and full title
right-click show filename
left-click open the playlist selector
middle-click show the filename
right-click show file and track info
============= ================================================

cache
Expand All @@ -57,6 +60,7 @@ cache
play
============= ================================================
left-click toggle play/pause
right-click toggle infinite looping
============= ================================================

skip back
Expand Down Expand Up @@ -99,15 +103,17 @@ audio and sub
| Displays selected track and amount of available tracks

============= ================================================
left-click cycle audio/sub tracks forward
right-click cycle audio/sub tracks backwards
left-click open the audio/sub track selector
shift+L-click show available audio/sub tracks
middle-click show available audio/sub tracks
right-click show available audio/sub tracks
mouse wheel cycle audio/sub tracks forward/backwards
============= ================================================

vol
============= ================================================
left-click toggle mute
right-click open the audio device selector
mouse wheel volume up/down
============= ================================================

Expand Down Expand Up @@ -486,6 +492,74 @@ Configurable Options

Use display fps to calculate the interval between OSC redraws.

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_mid_command=show-text ${filename}``

``title_mbtn_right_command=script-binding stats/display-page-5``

``playlist_prev_mbtn_left_command=playlist-prev; show-text ${playlist} 3000``

``playlist_prev_mbtn_mid_command=show-text ${playlist} 3000``

``playlist_prev_mbtn_right_command=script-binding select/select-playlist; script-message-to osc osc-hide``

``playlist_next_mbtn_left_command=playlist-next; show-text ${playlist} 3000``

``playlist_next_mbtn_mid_command=show-text ${playlist} 3000``

``playlist_next_mbtn_right_command=script-binding select/select-playlist; script-message-to osc osc-hide``

``play_pause_mbtn_left_command=cycle pause``

``play_pause_mbtn_mid_command=``

``play_pause_mbtn_right_command=cycle-values loop-file inf no``

``chapter_prev_mbtn_left_command=no-osd add chapter -1; show-text ${chapter-list} 3000``

``chapter_prev_mbtn_mid_command=show-text ${chapter-list} 3000``

``chapter_prev_mbtn_right_command=script-binding select/select-chapter; script-message-to osc osc-hide``

``chapter_next_mbtn_left_command=no-osd add chapter 1; show-text ${chapter-list} 3000``

``chapter_next_mbtn_mid_command=show-text ${chapter-list} 3000``

``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_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_wheel_down_command=cycle sub``

``sub_track_wheel_up_command=cycle sub down``

``volume_mbtn_left_command=no-osd cycle mute``

``volume_mbtn_mid_command=``

``volume_mbtn_right_command=script-binding select/select-audio-device; script-message-to osc osc-hide``

``volume_wheel_down_command=add volume -5``

``volume_wheel_up_command=add volume 5``

Script Commands
~~~~~~~~~~~~~~~
Expand All @@ -500,6 +574,9 @@ in ``input.conf``, or sent by other scripts.
``osc-show``
Triggers the OSC to show up, just as if user moved mouse.

``osc-hide``
Hide the OSC when ``visibility`` is ``auto``.

Example

You could put this into ``input.conf`` to hide the OSC with the ``a`` key and
Expand Down
Loading