mirror of
https://github.com/mpv-player/mpv
synced 2025-02-16 12:17:12 +00:00
osc.lua: toggle looping when right clicking playpause
Inspired by ModernX. Closes #5067.
This commit is contained in:
parent
a80f535a6d
commit
dab5cf4ab0
@ -60,6 +60,7 @@ cache
|
|||||||
play
|
play
|
||||||
============= ================================================
|
============= ================================================
|
||||||
left-click toggle play/pause
|
left-click toggle play/pause
|
||||||
|
right-click toggle infinite looping
|
||||||
============= ================================================
|
============= ================================================
|
||||||
|
|
||||||
skip back
|
skip back
|
||||||
@ -517,7 +518,7 @@ clicked. ``mbtn_mid`` commands are also triggered with ``shift+mbtn_left``.
|
|||||||
|
|
||||||
``play_pause_mbtn_mid_command=``
|
``play_pause_mbtn_mid_command=``
|
||||||
|
|
||||||
``play_pause_mbtn_right_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_left_command=no-osd add chapter -1; show-text ${chapter-list} 3000``
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ local user_opts = {
|
|||||||
|
|
||||||
play_pause_mbtn_left_command = "cycle pause",
|
play_pause_mbtn_left_command = "cycle pause",
|
||||||
play_pause_mbtn_mid_command = "",
|
play_pause_mbtn_mid_command = "",
|
||||||
play_pause_mbtn_right_command = "",
|
play_pause_mbtn_right_command = "cycle-values loop-file inf no",
|
||||||
|
|
||||||
chapter_prev_mbtn_left_command = "add chapter -1",
|
chapter_prev_mbtn_left_command = "add chapter -1",
|
||||||
chapter_prev_mbtn_mid_command = "show-text ${chapter-list} 3000",
|
chapter_prev_mbtn_mid_command = "show-text ${chapter-list} 3000",
|
||||||
|
Loading…
Reference in New Issue
Block a user