refactor: replace window rotation with stack movement
Replace rotAllUp/rotAllDown with W.swapUp/W.swapDown for more direct window stack manipulation. This swaps windows with neighbors instead of rotating all windows, providing finer control over window positions.
This commit is contained in:
parent
39d04d2369
commit
22abfee37e
1 changed files with 3 additions and 4 deletions
|
@ -2,7 +2,6 @@ import Data.List as L
|
|||
import XMonad
|
||||
import XMonad.Actions.CycleWS
|
||||
import XMonad.Actions.CycleWindows
|
||||
import XMonad.Actions.RotSlaves
|
||||
import XMonad.Hooks.DynamicLog
|
||||
import XMonad.Hooks.EwmhDesktops
|
||||
import XMonad.Hooks.ManageDocks
|
||||
|
@ -94,9 +93,9 @@ myKeymap =
|
|||
, ("M-<Left>" , moveTo Prev hiddenWS)
|
||||
, ("M-<Right>", moveTo Next hiddenWS)
|
||||
|
||||
-- window rotation
|
||||
, ("M-<Page_Up>" , rotAllUp)
|
||||
, ("M-<Page_Down>", rotAllDown)
|
||||
-- move windows in stack
|
||||
, ("M-<Page_Up>" , windows W.swapUp )
|
||||
, ("M-<Page_Down>", windows W.swapDown)
|
||||
|
||||
-- focus screens
|
||||
, ("M-<Home>", prevScreen)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue