From be729f1c2373508df5d4d480786f41823b3d9dfe Mon Sep 17 00:00:00 2001 From: Magic_RB Date: Thu, 25 Nov 2021 21:49:37 +0100 Subject: [PATCH] Xmonad fullscreen handler Signed-off-by: Magic_RB --- nix/home-manager/modules/xmonad/xmonad.hs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/nix/home-manager/modules/xmonad/xmonad.hs b/nix/home-manager/modules/xmonad/xmonad.hs index 13e53f5..e962faa 100644 --- a/nix/home-manager/modules/xmonad/xmonad.hs +++ b/nix/home-manager/modules/xmonad/xmonad.hs @@ -71,7 +71,7 @@ toggleFloat = withFocused (\windowId -> do ------------------------------------------------------------------------ -- Key bindings. Add, modify or remove key bindings here. -- -myKeymap c = +myKeymap c = -- launch a terminal [ ("M-S-", spawn "alacritty") @@ -163,7 +163,7 @@ myKeymap c = -- [("M-"++m++[key], screenWorkspace sc >>= flip whenJust (windows . f)) | (key, sc) <- zip "wer" [0..] - , (f, m) <- [(W.view, ""), (W.shift, "S-")]] + , (f, m) <- [(W.view, ""), (W.shift, "S-")]] ------------------------------------------------------------------------ @@ -226,10 +226,11 @@ myLayout = smartBorders tiled ||| smartBorders simpleTabbed ||| smartBorders emp -- 'className' and 'resource' are used below. -- myManageHook = composeAll - [ className =? "MPlayer" --> doFloat - , className =? "Gimp" --> doFloat - , resource =? "desktop_window" --> doIgnore - , resource =? "kdesktop" --> doIgnore ] + [ -- className =? "MPlayer" --> doFloat + -- , className =? "Gimp" --> doFloat + -- , resource =? "desktop_window" --> doIgnore + -- , resource =? "kdesktop" --> doIgnore + ] ------------------------------------------------------------------------ -- Event handling @@ -240,7 +241,7 @@ myManageHook = composeAll -- return (All True) if the default handler is to be run afterwards. To -- combine event hooks use mappend or mconcat from Data.Monoid. -- -myEventHook = mempty +myEventHook = ewmhDesktopsEventHook <+> fullscreenEventHook ------------------------------------------------------------------------ -- Status bars and logging