diff options
| author | Josh Rahm <rahm@google.com> | 2021-11-03 17:34:26 -0600 |
|---|---|---|
| committer | Josh Rahm <joshuarahm@gmail.com> | 2022-10-09 12:19:45 -0600 |
| commit | c6a8661404cf7cd1115c4709317a5ddaba76efab (patch) | |
| tree | b7f524ebdd84aa2fef430ce99645f9f113a33c04 /src | |
| parent | 21910da6eb3bad443e1bc923a19edd8e29bdae92 (diff) | |
| download | rde-c6a8661404cf7cd1115c4709317a5ddaba76efab.tar.gz rde-c6a8661404cf7cd1115c4709317a5ddaba76efab.tar.bz2 rde-c6a8661404cf7cd1115c4709317a5ddaba76efab.zip | |
Change the strut behavior.
It wasn't working as expected for flips. This is because the
avoidStructs layout modifier was too low in the layout stack.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Internal/Keys.hs | 2 | ||||
| -rw-r--r-- | src/Internal/Layout.hs | 2 | ||||
| -rw-r--r-- | src/Main.hs | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/src/Internal/Keys.hs b/src/Internal/Keys.hs index 75c70a3..09d0cc8 100644 --- a/src/Internal/Keys.hs +++ b/src/Internal/Keys.hs @@ -1,6 +1,7 @@ {-# LANGUAGE RankNTypes #-} module Internal.Keys where +import XMonad.Hooks.ManageDocks import XMonad.Layout.MosaicAlt import Graphics.X11.ExtraTypes.XorgDefault import System.Process @@ -159,6 +160,7 @@ newKeys markContext = , ((modm .|. mod1Mask, xK_a), runXPlus markContext config (withScreen W.greedyView 0)) , ((modm .|. mod1Mask, xK_o), runXPlus markContext config (withScreen W.greedyView 1)) , ((modm .|. mod1Mask, xK_e), runXPlus markContext config (withScreen W.greedyView 2)) + , ((modm, xK_b), sendMessage ToggleStruts) -- Buttons programmed on my mouse. , ((shiftMask, xK_F1), click >> (withFocused $ windows . W.sink)) diff --git a/src/Internal/Layout.hs b/src/Internal/Layout.hs index eb33a5e..2b66f06 100644 --- a/src/Internal/Layout.hs +++ b/src/Internal/Layout.hs @@ -26,7 +26,7 @@ myLayout = ModifiedLayout (Zoomable False 0.05 0.05) $ ModifiedLayout (Flippable False) $ ModifiedLayout (HFlippable False) $ - spacingRaw True (Border 5 5 5 5) True (Border 5 5 5 5) True $ avoidStruts $ + spacingRaw True (Border 5 5 5 5) True (Border 5 5 5 5) True $ spiral (6/7) ||| ModifyDescription TallDescriptionModifier (Tall 1 (3/100) (1/2)) ||| ModifyDescription ThreeColDescMod (ThreeCol 1 (3/100) (1/2)) ||| diff --git a/src/Main.hs b/src/Main.hs index 020c0f8..6129839 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -41,7 +41,7 @@ main = do , focusedBorderColor = "#ff6c00" -- , normalBorderColor = "#ffd9bf" , normalBorderColor = "#000000" - , layoutHook = myLayout + , layoutHook = avoidStruts myLayout , startupHook = do ewmhDesktopsStartup spawn fp |