From fb8fda54d11a419494d7c809accb0321cd663497 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sat, 10 Sep 2022 21:43:55 +0200 Subject: Trying to add window swallowing to xmonad --- config/xmonad/xmonad.hs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config') 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) -- cgit