vanadium/xmonad: use sift instead of swap

This commit is contained in:
Primrose 2025-11-17 21:38:38 +08:00
parent 9b52493e5f
commit 9f080c0707
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -2,6 +2,7 @@
import XMonad import XMonad
import XMonad.Actions.CopyWindow import XMonad.Actions.CopyWindow
import XMonad.Actions.Sift
import XMonad.Actions.Submap import XMonad.Actions.Submap
import XMonad.Actions.SwapWorkspaces import XMonad.Actions.SwapWorkspaces
import XMonad.Hooks.DynamicLog import XMonad.Hooks.DynamicLog
@ -227,6 +228,10 @@ keybinds =
-- Toggle fullscreen -- Toggle fullscreen
, ((superMask, xK_Escape), sendMessage NextLayout) , ((superMask, xK_Escape), sendMessage NextLayout)
-- Sift instead of swap
, ((superMask .|. shiftMask, xK_j), windows siftDown)
, ((superMask .|. shiftMask, xK_k), windows siftUp )
-- Resize windows -- Resize windows
, ((superMask, xK_equal ), sendMessage $ IncMasterN 1) , ((superMask, xK_equal ), sendMessage $ IncMasterN 1)
, ((superMask, xK_minus ), sendMessage $ IncMasterN -1) , ((superMask, xK_minus ), sendMessage $ IncMasterN -1)