Skip to content

Commit

Permalink
Bump xmonad-contrib, fix Steam
Browse files Browse the repository at this point in the history
  • Loading branch information
pdalpra committed Oct 27, 2024
1 parent 5ceadb2 commit 487cf79
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions home/modules/wm/xmonad-config/lib/WindowRules.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ import Data.Ratio ((%))
import Workspaces hiding (setup)
import XMonad
import XMonad.Hooks.ManageHelpers
import XMonad.Prelude
import XMonad.StackSet
import XMonad.Util.Hacks


setup :: XConfig l -> XConfig l
setup c =
c
{ manageHook = windowRules <+> c.manageHook
, handleEventHook = hacks <> c.handleEventHook
}


Expand All @@ -28,3 +31,7 @@ windowRules =
]
where
smallCenteredFloat = doRectFloat (RationalRect (1 % 3) (1 % 3) (1 % 3) (1 % 3))


hacks :: Event -> X All
hacks = windowedFullscreenFixEventHook <> fixSteamFlicker
2 changes: 1 addition & 1 deletion home/modules/wm/xmonad-config/lib/Workspaces.hs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ workspacesLayout c =
toggleFullScreen = mkToggle $ single NBFULL
dropSpacingLabel = renamed [CutWordsLeft 1]
layout = layoutHook def
codeLayout = Tall 1 (1 / 2) (2 / 3) ||| Full
codeLayout = Tall 1 (5 / 100) (2 / 3) ||| Full
webLayout = forWorkspace web (tabs ||| Full)
mailLayout = forWorkspace mail Full
chatLayout = forWorkspace chat (tabs ||| Full)
Expand Down
2 changes: 1 addition & 1 deletion home/modules/wm/xmonad-config/xmonad-config.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ executable config
WindowRules
Workspaces

ghc-options: -Wall -Whi-shadowing -Wname-shadowing
ghc-options: -Wall -Wname-shadowing
build-depends:
, base ^>=4.18.0
, dbus ^>=1.2.0
Expand Down
3 changes: 2 additions & 1 deletion home/modules/wm/xmonad.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,12 @@ in

windowManager.xmonad = {
inherit libFiles;
inherit (pkgs.unstable) haskellPackages;

enable = true;
config = ./xmonad-config/config.hs;
extraPackages = hp: with hp; [
xmonad-contrib
xmonad-contrib_0_18_1
dbus
];
};
Expand Down

0 comments on commit 487cf79

Please sign in to comment.