From ba5e322bb19dc95cfc404f7d2e3efd53ad751cb8 Mon Sep 17 00:00:00 2001 From: sajenim Date: Mon, 29 Jan 2024 22:32:51 +0800 Subject: [PATCH] jump to layout bindings, requires rebinding window sink --- pkgs/xmonad-config/src/xmonad.hs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/xmonad-config/src/xmonad.hs b/pkgs/xmonad-config/src/xmonad.hs index a6c8cf6..e9579db 100644 --- a/pkgs/xmonad-config/src/xmonad.hs +++ b/pkgs/xmonad-config/src/xmonad.hs @@ -39,7 +39,9 @@ myKeys = , ("M-e" , spawn "rofi -show run" ) -- %! Launch rofi , ("M-C-w" , kill ) -- %! Close the focused window -- layouts - , ("M-" , sendMessage NextLayout ) -- %! Rotate through the available layout algorithms + , ("M-t" , sendMessage $ JumpToLayout "Spacing Tiled") -- %! Jump to our tiled layout + , ("M-m" , sendMessage $ JumpToLayout "Maximized" ) -- %! Jump to our maximized layout + , ("M-f" , sendMessage $ JumpToLayout "Fullscreen" ) -- %! Jump to our fullscreen layout -- move focus up or down the window stack , ("M-" , windows W.focusDown ) -- %! Move focus to the next window , ("M-" , windows W.focusUp ) -- %! Move focus to the previous window @@ -55,7 +57,7 @@ myKeys = , ("M-S-" , sendMessage (IncMasterN 1) ) -- %! Increase the number of windows in the master area , ("M-S-", sendMessage (IncMasterN (-1)) ) -- %! Decrease the number of windows in the master area -- floating layer support - , ("M-t" , withFocused $ windows . W.sink ) -- %! Push window back into tiling + , ("M-" , withFocused $ windows . W.sink ) -- %! Push window back into tiling -- workspace navigation , ("M-" , moveTo Next hiddenWS ) -- %! Move focus to the next hidden workspace , ("M-" , moveTo Prev hiddenWS ) -- %! Move focus to the previous hidden workspace