Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Commit

Permalink
added Accordion to XMonad | ref #9
Browse files Browse the repository at this point in the history
  • Loading branch information
psygo committed Apr 24, 2021
1 parent 7b39646 commit 38d1ed9
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .xmonad/xmonad.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import XMonad.Prompt.Shell
import XMonad.Prompt.FuzzyMatch

import XMonad.Layout.ThreeColumns
import XMonad.Layout.Accordion
import XMonad.Layout.Tabbed
--------------------------------------------------------------------------------
main = xmonad def
{ modMask = mod4Mask
Expand Down Expand Up @@ -47,15 +49,20 @@ myXPConfig = def
, maxComplRows = Nothing
}
--------------------------------------------------------------------------------
myLayout = tiled ||| Mirror tiled ||| Full ||| threeCol
myLayout = tiled
||| Mirror tiled
||| Full
||| threeCol
||| Accordion
||| Mirror Accordion
where
tiled = Tall nmaster delta ratio
nmaster = 1
ratio = 1/2
delta = 2/100
delta = 1/100
threeCol = ThreeCol 1 (3/100) (1/2)
--------------------------------------------------------------------------------
myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $
myKeys conf@XConfig {XMonad.modMask = modm} = M.fromList
[
--------------------------------------------------------------------------
-- Basic
Expand All @@ -71,7 +78,7 @@ myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $
, ((modm , xK_Print ), spawn screenshot)
--------------------------------------------------------------------------
-- Window Management
, ((modm, xK_space ), sendMessage NextLayout)
, ((modm .|. shiftMask, xK_space ), sendMessage NextLayout)
, ((modm, xK_Tab ), windows W.focusDown)
, ((modm .|. shiftMask, xK_Tab ), windows W.focusUp)
, ((modm, xK_j ), windows W.focusDown)
Expand All @@ -88,8 +95,8 @@ myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $
, ((modm .|. shiftMask, xK_k ), DWO.moveTo Prev HiddenWS)
, ((modm .|. shiftMask, xK_l ), nextScreen)
, ((modm .|. shiftMask, xK_h ), prevScreen)
, ((modm .|. shiftMask, xK_Down ), DWO.shiftTo Next HiddenWS)
, ((modm .|. shiftMask, xK_Up ), DWO.shiftTo Prev HiddenWS)
, ((modm .|. shiftMask, xK_Down ), DWO.shiftTo Next HiddenWS)
, ((modm .|. shiftMask, xK_Up ), DWO.shiftTo Prev HiddenWS)
, ((modm .|. shiftMask, xK_Right ), shiftNextScreen)
, ((modm .|. shiftMask, xK_Left ), shiftPrevScreen)
--------------------------------------------------------------------------
Expand Down

0 comments on commit 38d1ed9

Please sign in to comment.