Compare commits

..

3 commits

3 changed files with 22 additions and 4 deletions

View file

@ -202,7 +202,8 @@ in
(sources.agenix + "/modules/age-home.nix") (sources.agenix + "/modules/age-home.nix")
sources.wired-notify.asFlake.homeManagerModules.default sources.wired-notify.asFlake.homeManagerModules.default
sources.zen-browser.asFlake.homeModules.twilight # non official one uses reuploaded artifacts, are they audited?
sources.zen-browser.asFlake.homeModules.beta
]; ];
} }

View file

@ -3,6 +3,7 @@
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.Actions.Warp
@ -48,6 +49,7 @@ 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
@ -299,6 +301,21 @@ 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 )
-- Directional navigation of windows
, ((altMask, xK_l), windowGo R False )
, ((altMask, xK_h), windowGo L False )
, ((altMask, xK_k), windowGo U False )
, ((altMask, xK_j), windowGo D False )
-- Swap adjacent windows
, ((altMask .|. superMask, xK_l), windowSwap R False)
, ((altMask .|. superMask, xK_h), windowSwap L False)
, ((altMask .|. superMask, xK_k), windowSwap U False)
, ((altMask .|. superMask, xK_j), windowSwap D False)
] ]
-- We override default focus shifting bindings to warp the cursor to the center of the new window. -- We override default focus shifting bindings to warp the cursor to the center of the new window.

View file

@ -378,9 +378,9 @@
}, },
"branch": "main", "branch": "main",
"submodules": false, "submodules": false,
"revision": "1adab25828578301037855c59849e9bbecf8948b", "revision": "bd8815d0a686267386268e7cc70315124e21362b",
"url": "https://github.com/0xc000022070/zen-browser-flake/archive/1adab25828578301037855c59849e9bbecf8948b.tar.gz", "url": "https://github.com/0xc000022070/zen-browser-flake/archive/bd8815d0a686267386268e7cc70315124e21362b.tar.gz",
"hash": "091sdxgqxcmxh15w9b65bv29fw0cgg0mfpl3d1ymsv1510lq30a6" "hash": "03dz53picqw2bbbzaxxld5ydyqbf4jsdb048a4gb6h432kkp5gim"
} }
}, },
"version": 5 "version": 5