From c0e0dbe9b9cf96f0fe4c2e828a83154c48a5febb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Sat, 10 Jan 2026 23:02:09 +0100 Subject: [PATCH] vanadium/xmonad: remove 2d nagivation --- .../vanadium/home/xmonad/xmonad.hs | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/nix/configurations/vanadium/home/xmonad/xmonad.hs b/nix/configurations/vanadium/home/xmonad/xmonad.hs index 0ea59e18..7dab02c3 100644 --- a/nix/configurations/vanadium/home/xmonad/xmonad.hs +++ b/nix/configurations/vanadium/home/xmonad/xmonad.hs @@ -3,10 +3,8 @@ import XMonad import XMonad.Actions.CopyWindow -import XMonad.Actions.Navigation2D import XMonad.Actions.Submap import XMonad.Actions.SwapWorkspaces -import XMonad.Actions.Warp import XMonad.Hooks.DynamicLog import XMonad.Hooks.EwmhDesktops import XMonad.Hooks.InsertPosition @@ -48,7 +46,6 @@ main = $ withSB xmobarConfig . docks $ setEwmhActivateHook myActivateHook $ ewmhFullscreen . ewmh - $ withNavigation2DConfig def $ def { modMask = superMask , borderWidth = 5 @@ -283,9 +280,6 @@ removedKeybinds = ++ [ (superMask , n) | n <- [xK_1 .. xK_9] ] ++ [ (superMask .|. shiftMask, n) | n <- [xK_1 .. xK_9] ] -warpToWindowCenter :: X () -warpToWindowCenter = warpToWindow 0.5 0.5 - keybinds :: [((KeyMask, KeySym), X ())] keybinds = [ @@ -327,27 +321,6 @@ keybinds = , ((0, xK_l), withFocused $ windows . flip W.float centeredFloat) ] ) - - -- Switch between layers - , ((altMask, xK_s), switchLayer ) - - -- We override default focus shifting bindings to warp the cursor to the center of the new window. - -- This is especially useful because mag doesn't work well with focusFollowsMouse. - -- The order is important: focus shift, and then warp the cursor - -- - -- Warp when focus shifts by binding, not by mouse (otherwise it's annoying) - - -- Directional navigation of windows - , ((altMask, xK_l), windowGo R False >> warpToWindowCenter) - , ((altMask, xK_h), windowGo L False >> warpToWindowCenter) - , ((altMask, xK_k), windowGo U False >> warpToWindowCenter) - , ((altMask, xK_j), windowGo D False >> warpToWindowCenter) - - -- Swap adjacent windows - , ((altMask .|. superMask, xK_l), windowSwap R False >> warpToWindowCenter) - , ((altMask .|. superMask, xK_h), windowSwap L False >> warpToWindowCenter) - , ((altMask .|. superMask, xK_k), windowSwap U False >> warpToWindowCenter) - , ((altMask .|. superMask, xK_j), windowSwap D False >> warpToWindowCenter) ] -- Screenshots