From dab5cf4ab0fbadcd9d0a8ecb497aca0ae9a0e672 Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Sat, 19 Oct 2024 21:34:17 +0200 Subject: [PATCH] osc.lua: toggle looping when right clicking playpause Inspired by ModernX. Closes #5067. --- DOCS/man/osc.rst | 3 ++- player/lua/osc.lua | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/DOCS/man/osc.rst b/DOCS/man/osc.rst index 2e33bb6f02..19a75921a0 100644 --- a/DOCS/man/osc.rst +++ b/DOCS/man/osc.rst @@ -60,6 +60,7 @@ cache play ============= ================================================ left-click toggle play/pause + right-click toggle infinite looping ============= ================================================ 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_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`` diff --git a/player/lua/osc.lua b/player/lua/osc.lua index 4887db833c..71f2079c27 100644 --- a/player/lua/osc.lua +++ b/player/lua/osc.lua @@ -84,7 +84,7 @@ local user_opts = { play_pause_mbtn_left_command = "cycle pause", 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_mid_command = "show-text ${chapter-list} 3000",