From 3c9b749b6b8fbbe20318def041edcdc77bfc6cb5 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Wed, 13 Jun 2018 14:38:45 -0700 Subject: Add spiral xmonad layout --- xmonad.hs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xmonad.hs b/xmonad.hs index ae91565..5075dea 100644 --- a/xmonad.hs +++ b/xmonad.hs @@ -3,7 +3,7 @@ import XMonad import XMonad.Util.CustomKeys (customKeys) import XMonad.Hooks.EwmhDesktops (ewmh) import XMonad.Hooks.ManageDocks ---import System.Taffybar.Support.PagerHints (pagerHints) +import XMonad.Layout.Spiral delKeys conf@(XConfig {modMask = modMask}) = [ (modMask, xK_p) @@ -18,6 +18,8 @@ insKeys conf@(XConfig {modMask = modMask}) = , ((modMask, xK_y), spawn "${SHELL:-\"/bin/sh\"} -c passmenu &") ] +myLayout = spiral (6/7) + main = xmonad $ ewmh $ @@ -27,7 +29,7 @@ main = , normalBorderColor = "#002b36" -- ^ solarized dark , focusedBorderColor = "#eee8d5" -- ^ solarized light , manageHook = manageDocks <+> manageHook defaultConfig - , layoutHook = avoidStruts $ layoutHook defaultConfig + , layoutHook = avoidStruts $ myLayout ||| layoutHook defaultConfig , terminal = "/home/ben/.nix-profile/bin/xterm" , keys = customKeys delKeys insKeys } -- cgit v1.2.3