From c0ea5c7aa7a554c41f49bb30a298d0833097552c Mon Sep 17 00:00:00 2001 From: Pierre Dal-Pra Date: Sat, 17 Aug 2024 15:58:00 +0200 Subject: [PATCH] Update xmonad setup (#134) --- home/modules/wm/xmonad-config/lib/Workspaces.hs | 9 ++++++--- home/modules/wm/xmonad-config/xmonad-config.cabal | 6 +++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/home/modules/wm/xmonad-config/lib/Workspaces.hs b/home/modules/wm/xmonad-config/lib/Workspaces.hs index 0ae00ff0..7e3aecdb 100644 --- a/home/modules/wm/xmonad-config/lib/Workspaces.hs +++ b/home/modules/wm/xmonad-config/lib/Workspaces.hs @@ -89,7 +89,7 @@ perso = Workspace { name = "perso" , workingDirectory = "~/Code/perso" - , runAtStartup = [] + , runAtStartup = ["code", term] } @@ -141,6 +141,7 @@ workspacesLayout c = . webLayout . mailLayout . chatLayout + . nixLayout . workLayout . persoLayout $ layout @@ -148,11 +149,13 @@ workspacesLayout c = toggleFullScreen = mkToggle $ single NBFULL dropSpacingLabel = renamed [CutWordsLeft 1] layout = layoutHook def + codeLayout = Tall 1 (1 / 2) (2 / 3) ||| Full webLayout = forWorkspace web (tabs ||| Full) mailLayout = forWorkspace mail Full chatLayout = forWorkspace chat (tabs ||| Full) - workLayout = forWorkspace work layout - persoLayout = forWorkspace perso layout + nixLayout = forWorkspace nix codeLayout + workLayout = forWorkspace work codeLayout + persoLayout = forWorkspace perso codeLayout forWorkspace ws = onWorkspace (name ws) tabs = renamed [CutWordsRight 1] $ tabbed shrinkText tabTheme tabTheme = diff --git a/home/modules/wm/xmonad-config/xmonad-config.cabal b/home/modules/wm/xmonad-config/xmonad-config.cabal index 5f9e14b3..1f9da431 100644 --- a/home/modules/wm/xmonad-config/xmonad-config.cabal +++ b/home/modules/wm/xmonad-config/xmonad-config.cabal @@ -21,8 +21,8 @@ executable config ghc-options: -Wall -Whi-shadowing -Wname-shadowing build-depends: - , base ^>=4.17.0 + , base ^>=4.18.0 , dbus ^>=1.2.0 , utf8-string ^>=1.0.0 - , xmonad ^>=0.17.0 - , xmonad-contrib ^>=0.17.0 + , xmonad ^>=0.18.0 + , xmonad-contrib ^>=0.18.0