aboutsummaryrefslogtreecommitdiff
path: root/config/xmonad
diff options
context:
space:
mode:
Diffstat (limited to 'config/xmonad')
-rw-r--r--config/xmonad/xmonad.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/xmonad/xmonad.hs b/config/xmonad/xmonad.hs
index ea547f1..fac4ef3 100644
--- a/config/xmonad/xmonad.hs
+++ b/config/xmonad/xmonad.hs
@@ -21,6 +21,7 @@ import XMonad.Layout.Grid (Grid (..))
-- Hooks
import XMonad.Hooks.InsertPosition (Focus (..), Position (..),
insertPosition)
+import XMonad.Hooks.WindowSwallowing
myTerminal = "alacritty"
@@ -37,6 +38,7 @@ main = xmonad $ desktopConfig
, borderWidth = 2
, focusFollowsMouse = False -- don't change window based on mouse position (need to click)
, workspaces = ["code", "web"] ++ map show [3..9]
+ , handleEventHook = handleEventHook'
-- , startupHook = startupHook'
} `additionalKeysP` keys'
@@ -95,3 +97,5 @@ restartCmd = intercalate "; " [ "if type xmonad"
, "else xmessage xmonad not in \\$PATH: \"$PATH\""
, "fi"
]
+
+handleEventHook' = swallowEventHook (className =? "Alacritty" <||> className =? "Termite") (return True)