osc.lua: cycle window-maximized when right clicking fullscreen

And add script-opts to configure the fullscreen button bindings.
This commit is contained in:
Guido Cella
2024-10-22 23:05:38 +02:00
committed by Kacper Michajłow
parent dab5cf4ab0
commit 165159fdef
2 changed files with 15 additions and 2 deletions

View File

@@ -121,6 +121,7 @@ vol
fs
============= ================================================
left-click toggle fullscreen
right-click toggle whether the window is maximized
============= ================================================
Key Bindings
@@ -562,6 +563,12 @@ clicked. ``mbtn_mid`` commands are also triggered with ``shift+mbtn_left``.
``volume_wheel_up_command=add volume 5``
``fullscreen_mbtn_left_command="cycle fullscreen"``
``fullscreen_mbtn_mid_command=``
``fullscreen_mbtn_right_command="cycle window-maximized"``
Script Commands
~~~~~~~~~~~~~~~