mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-01 14:39:39 +00:00
vanadium/xmonad: remove 2d nagivation
This commit is contained in:
parent
d6417797db
commit
c0e0dbe9b9
1 changed files with 0 additions and 27 deletions
|
|
@ -3,10 +3,8 @@
|
||||||
|
|
||||||
import XMonad
|
import XMonad
|
||||||
import XMonad.Actions.CopyWindow
|
import XMonad.Actions.CopyWindow
|
||||||
import XMonad.Actions.Navigation2D
|
|
||||||
import XMonad.Actions.Submap
|
import XMonad.Actions.Submap
|
||||||
import XMonad.Actions.SwapWorkspaces
|
import XMonad.Actions.SwapWorkspaces
|
||||||
import XMonad.Actions.Warp
|
|
||||||
import XMonad.Hooks.DynamicLog
|
import XMonad.Hooks.DynamicLog
|
||||||
import XMonad.Hooks.EwmhDesktops
|
import XMonad.Hooks.EwmhDesktops
|
||||||
import XMonad.Hooks.InsertPosition
|
import XMonad.Hooks.InsertPosition
|
||||||
|
|
@ -48,7 +46,6 @@ main =
|
||||||
$ withSB xmobarConfig . docks
|
$ withSB xmobarConfig . docks
|
||||||
$ setEwmhActivateHook myActivateHook
|
$ setEwmhActivateHook myActivateHook
|
||||||
$ ewmhFullscreen . ewmh
|
$ ewmhFullscreen . ewmh
|
||||||
$ withNavigation2DConfig def
|
|
||||||
$ def
|
$ def
|
||||||
{ modMask = superMask
|
{ modMask = superMask
|
||||||
, borderWidth = 5
|
, borderWidth = 5
|
||||||
|
|
@ -283,9 +280,6 @@ removedKeybinds =
|
||||||
++ [ (superMask , n) | n <- [xK_1 .. xK_9] ]
|
++ [ (superMask , n) | n <- [xK_1 .. xK_9] ]
|
||||||
++ [ (superMask .|. shiftMask, 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 :: [((KeyMask, KeySym), X ())]
|
||||||
keybinds =
|
keybinds =
|
||||||
[
|
[
|
||||||
|
|
@ -327,27 +321,6 @@ keybinds =
|
||||||
, ((0, xK_l), withFocused $ windows . flip W.float centeredFloat)
|
, ((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
|
-- Screenshots
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue