From 6e07a91f25c91fad472dea7a961c32de9f97f2c7 Mon Sep 17 00:00:00 2001 From: samwhelp Date: Mon, 4 Aug 2025 15:20:56 +0800 Subject: [PATCH] Adjusting mouse button action on current window/title-bar for better experience * alt + mouse left button drag to move a window * alt + mouse right button drag to resize a window * adjusting mouse button action on current window title bar --- mx/etc/skel/.fluxbox/keys | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/mx/etc/skel/.fluxbox/keys b/mx/etc/skel/.fluxbox/keys index cd11ea0..8f9b825 100644 --- a/mx/etc/skel/.fluxbox/keys +++ b/mx/etc/skel/.fluxbox/keys @@ -84,28 +84,39 @@ OnDesktop Mouse3 :RootMenu OnDesktop Mouse4 :PrevWorkspace OnDesktop Mouse5 :NextWorkspace -# alt + left/right click to move/resize a window +# alt + mouse left button drag to move a window OnWindow Alt Mouse1 :MacroCmd {Raise} {Focus} {StartMoving} +OnTitlebar Alt Mouse1 :MacroCmd {Raise} {Focus} {StartMoving} OnWindowBorder Move1 :StartMoving +# alt + mouse right button drag to resize a window OnWindow Alt Mouse3 :MacroCmd {Raise} {Focus} {StartResizing NearestCorner} +OnTitlebar Alt Mouse3 :MacroCmd {Raise} {Focus} {StartResizing NearestCorner} OnLeftGrip Move1 :StartResizing bottomleft OnRightGrip Move1 :StartResizing bottomright -# Ctrl-click a window's titlebar and drag to attach windows -OnTitlebar Ctrl Mouse1 :StartTabbing +# ctrl + mouse left button drag a window's titlebar and drag to attach windows +OnTitlebar Control Mouse1 :StartTabbing -# double click on the titlebar to shade/unshade -OnTitlebar Double Mouse1 :Shade +# mouse middle button drag a window's titlebar and drag to attach windows +OnTitlebar Mouse2 :StartTabbing -# left click on the titlebar to move the window +# mouse left button double click on the titlebar to maximize window +OnTitlebar Double Mouse1 :Maximize + +# mouse middle button scroll on the titlebar to toggle shade or unshade +OnTitlebar Mouse4 :ShadeOn +OnTitlebar Mouse5 :ShadeOff + +# mouse left button drag on the titlebar to move the window OnTitlebar Mouse1 :MacroCmd {Raise} {Focus} {ActivateTab} OnTitlebar Move1 :StartMoving -# see a menu of window options +# mouse right button click to see a menu of window options OnTitlebar Mouse3 :WindowMenu - #for apps using CSD try this instead - #OnWindow Mouse2 :WindowMenu + +#for apps using CSD try this instead +#OnWindow Mouse2 :WindowMenu # alt-tab Alt Tab :NextWindow {groups} (workspace=[current])