aboutsummaryrefslogtreecommitdiff
path: root/xmonad
diff options
context:
space:
mode:
authorBardofSprites <[email protected]>2026-04-07 17:49:07 -0400
committerBardofSprites <[email protected]>2026-04-07 17:49:07 -0400
commit65fa1ec8e1ac879f103afc47e05c7b8a114ac924 (patch)
tree9cb36e1a1fcb0e08b9b1c0ebabf974c54c038486 /xmonad
parent3475c907f892dd4f5e6c219b55f551c1aa5be39d (diff)
mouse cursor snapping
Diffstat (limited to 'xmonad')
-rw-r--r--xmonad/.config/xmonad/xmonad.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/xmonad/.config/xmonad/xmonad.hs b/xmonad/.config/xmonad/xmonad.hs
index 32a9331..f718c3a 100644
--- a/xmonad/.config/xmonad/xmonad.hs
+++ b/xmonad/.config/xmonad/xmonad.hs
@@ -44,6 +44,9 @@ import XMonad.Util.Run (runProcessWithInput)
import Control.Monad (when)
import Data.List (find)
+-- mouse cursor snapping
+import XMonad.Actions.UpdatePointer
+
-- Custom theme
import Colors.Ef.Autumn
@@ -254,6 +257,10 @@ ppForScreen sid xmproc = dynamicLogWithPP $ marshallPP (S sid) xmobarPP
myLogHook xmprocs = sequence_ $ zipWith ppForScreen [0..] xmprocs
+myLogHook xmprocs = do
+ sequence_ $ zipWith ppForScreen [0..] xmprocs
+ updatePointer (0.5, 0.5) (0, 0)
+
myManageHook = composeAll
[ className =? "conky" --> doIgnore -- Ignore Conky so it doesn't get tiled
, className =? "floatterm" --> doCenterFloat