mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-25 20:54:34 +00:00
Fix xmonad config after compatibility breaking 0.17 came out
This commit is contained in:
parent
dba3e7727a
commit
d4845fec48
|
@ -19,7 +19,7 @@ import qualified Data.Map as M
|
||||||
|
|
||||||
-- Hooks
|
-- Hooks
|
||||||
import XMonad.Hooks.DynamicLog (dynamicLogWithPP, wrap, xmobarPP, xmobarColor, shorten, PP(..))
|
import XMonad.Hooks.DynamicLog (dynamicLogWithPP, wrap, xmobarPP, xmobarColor, shorten, PP(..))
|
||||||
import XMonad.Hooks.ManageDocks (avoidStruts, docksEventHook, manageDocks, ToggleStruts(..))
|
import XMonad.Hooks.ManageDocks (avoidStruts, docks, manageDocks, ToggleStruts(..))
|
||||||
import XMonad.Hooks.EwmhDesktops
|
import XMonad.Hooks.EwmhDesktops
|
||||||
import XMonad.Hooks.ManageHelpers (isFullscreen, doFullFloat)
|
import XMonad.Hooks.ManageHelpers (isFullscreen, doFullFloat)
|
||||||
|
|
||||||
|
@ -33,7 +33,6 @@ import XMonad.Layout.ResizableTile
|
||||||
-- Layouts modifiers
|
-- Layouts modifiers
|
||||||
import XMonad.Layout.LayoutModifier
|
import XMonad.Layout.LayoutModifier
|
||||||
import XMonad.Layout.LimitWindows (limitWindows, increaseLimit, decreaseLimit)
|
import XMonad.Layout.LimitWindows (limitWindows, increaseLimit, decreaseLimit)
|
||||||
import XMonad.Layout.Magnifier
|
|
||||||
import XMonad.Layout.MultiToggle (mkToggle, single, EOT(EOT), (??))
|
import XMonad.Layout.MultiToggle (mkToggle, single, EOT(EOT), (??))
|
||||||
import XMonad.Layout.MultiToggle.Instances (StdTransformers(NBFULL, MIRROR, NOBORDERS))
|
import XMonad.Layout.MultiToggle.Instances (StdTransformers(NBFULL, MIRROR, NOBORDERS))
|
||||||
import XMonad.Layout.NoBorders
|
import XMonad.Layout.NoBorders
|
||||||
|
@ -253,15 +252,6 @@ tall = renamed [Replace "tall"]
|
||||||
$ limitWindows 12
|
$ limitWindows 12
|
||||||
$ mySpacing 8
|
$ mySpacing 8
|
||||||
$ ResizableTall 1 (3/100) (1/2) []
|
$ ResizableTall 1 (3/100) (1/2) []
|
||||||
magnify = renamed [Replace "magnify"]
|
|
||||||
$ smartBorders
|
|
||||||
$ windowNavigation
|
|
||||||
$ addTabs shrinkText myTabTheme
|
|
||||||
$ subLayout [] (smartBorders Simplest)
|
|
||||||
$ magnifier
|
|
||||||
$ limitWindows 12
|
|
||||||
$ mySpacing 8
|
|
||||||
$ ResizableTall 1 (3/100) (1/2) []
|
|
||||||
floats = renamed [Replace "floats"]
|
floats = renamed [Replace "floats"]
|
||||||
$ smartBorders
|
$ smartBorders
|
||||||
$ limitWindows 20 simplestFloat
|
$ limitWindows 20 simplestFloat
|
||||||
|
@ -291,7 +281,6 @@ myLayoutHook = avoidStruts $ mouseResize $ windowArrange $ T.toggleLayouts float
|
||||||
$ mkToggle (NBFULL ?? NOBORDERS ?? EOT) myDefaultLayout
|
$ mkToggle (NBFULL ?? NOBORDERS ?? EOT) myDefaultLayout
|
||||||
where
|
where
|
||||||
myDefaultLayout = withBorder myBorderWidth tall
|
myDefaultLayout = withBorder myBorderWidth tall
|
||||||
||| magnify
|
|
||||||
||| floats
|
||| floats
|
||||||
||| grid
|
||| grid
|
||||||
||| spirals
|
||| spirals
|
||||||
|
@ -384,13 +373,12 @@ main = do
|
||||||
xmproc0 <- spawnPipe "xmobar -x 0 $HOME/.config/xmobar/xmobarrc0"
|
xmproc0 <- spawnPipe "xmobar -x 0 $HOME/.config/xmobar/xmobarrc0"
|
||||||
xmproc1 <- spawnPipe "xmobar -x 1 $HOME/.config/xmobar/xmobarrc1"
|
xmproc1 <- spawnPipe "xmobar -x 1 $HOME/.config/xmobar/xmobarrc1"
|
||||||
-- Xmonad config definitions
|
-- Xmonad config definitions
|
||||||
xmonad $ ewmh def
|
xmonad $ ewmh $ docks $ def
|
||||||
{ modMask = myModMask
|
{ modMask = myModMask
|
||||||
, terminal = myTerminal
|
, terminal = myTerminal
|
||||||
, workspaces = myWorkspaces
|
, workspaces = myWorkspaces
|
||||||
, startupHook = myStartupHook
|
, startupHook = myStartupHook
|
||||||
, manageHook = myManageHook <+> manageDocks
|
, manageHook = myManageHook <+> manageDocks
|
||||||
, handleEventHook = docksEventHook
|
|
||||||
--, layoutHook = showWName' myShowWNameTheme $ myLayoutHook
|
--, layoutHook = showWName' myShowWNameTheme $ myLayoutHook
|
||||||
, layoutHook = myLayoutHook
|
, layoutHook = myLayoutHook
|
||||||
, borderWidth = myBorderWidth
|
, borderWidth = myBorderWidth
|
||||||
|
|
Loading…
Reference in a new issue