From ba1eeac94bfb24b1ae14bcd8630e86abceb968ab Mon Sep 17 00:00:00 2001 From: afonso Date: Fri, 27 Sep 2024 21:46:55 +0100 Subject: [PATCH] [xmonad] add per screen layout --- .config/xmonad/xmonad.hs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.config/xmonad/xmonad.hs b/.config/xmonad/xmonad.hs index 66462b0..46724a3 100644 --- a/.config/xmonad/xmonad.hs +++ b/.config/xmonad/xmonad.hs @@ -1,8 +1,8 @@ {-# OPTIONS_GHC -Wno-deprecations #-} - import XMonad + --Utils import XMonad.Util.EZConfig (additionalKeysP,removeKeysP) import XMonad.Util.Loggers (logLayoutOnScreen, logTitleOnScreen, shortenL, wrapL, xmobarColorL) @@ -25,6 +25,7 @@ import XMonad.Actions.UpdateFocus (focusUnderPointer) --Layouts import XMonad.Layout.NoBorders import XMonad.Layout.Spacing +import XMonad.Layout.PerScreen -- MultiMonitorFocusHook @@ -46,7 +47,7 @@ import Colors.GruvBox myTerminal = "wezterm" myTextEditor = "nvim" -myWebBrowser = "firefox" +myWebBrowser = "zen-browser" myModMask = mod4Mask myFocusFollowsMouse :: Bool @@ -137,6 +138,7 @@ myStartupHook = do spawnOnce "dunst &" spawnOnce "lxpolkit" spawnOnce "thunar --daemon" + spawnOnce "sensors" spawnOnce "pasystray" spawnOnce "nitrogen --restore &" spawnOnce "playerctld" @@ -167,7 +169,7 @@ myXmobarPP = def where wsIconFull = " \xf111 " -myLayoutHook = (Tall 1 (3/100) (0.5)) ||| (Mirror $ Tall 1 (3/100) (0.5)) +myLayoutHook = ifWider 1080 (Tall 1 (3/100) (1/2)) (Mirror $ Tall 1 (3/100) (1/2)) ||| Full myConfig = def {