Skip to content

Commit

Permalink
osc.lua: toggle looping when right clicking playpause
Browse files Browse the repository at this point in the history
Inspired by ModernX.

Closes mpv-player#5067, closes mpv-player#11878.
  • Loading branch information
guidocella committed Oct 19, 2024
1 parent 81aea6e commit 57b28df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion DOCS/man/osc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ cache
play
============= ================================================
left-click toggle play/pause
right-click toggle infinite looping
============= ================================================

skip back
Expand Down Expand Up @@ -516,7 +517,7 @@ clicked. ``mbtn_mid`` commands are also triggered with ``shift+mbtn_left``.

``playpause_mbtn_mid_command=``

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

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

Expand Down
2 changes: 1 addition & 1 deletion player/lua/osc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ local user_opts = {

playpause_mbtn_left_command = "cycle pause",
playpause_mbtn_mid_command = "",
playpause_mbtn_right_command = "",
playpause_mbtn_right_command = "cycle-values loop-file inf no",

ch_prev_mbtn_left_command = "no-osd add chapter -1; show-text ${chapter-list} 3000",
ch_prev_mbtn_mid_command = "show-text ${chapter-list} 3000",
Expand Down

0 comments on commit 57b28df

Please sign in to comment.