prog/xmonad: change workspace layout
This commit is contained in:
parent
75ec465800
commit
8b36965078
1 changed files with 4 additions and 7 deletions
|
@ -21,7 +21,6 @@ import XMonad.Layout.BoringWindows (boringWindows)
|
||||||
import XMonad.Layout.Grid
|
import XMonad.Layout.Grid
|
||||||
import XMonad.Layout.LimitWindows (limitWindows)
|
import XMonad.Layout.LimitWindows (limitWindows)
|
||||||
import XMonad.Layout.NoBorders
|
import XMonad.Layout.NoBorders
|
||||||
import XMonad.Layout.PerWorkspace
|
|
||||||
import XMonad.Util.EZConfig
|
import XMonad.Util.EZConfig
|
||||||
import XMonad.Util.Run
|
import XMonad.Util.Run
|
||||||
|
|
||||||
|
@ -61,7 +60,7 @@ myModMask = mod1Mask
|
||||||
--
|
--
|
||||||
-- > workspaces = ["web", "irc", "code" ] ++ map show [4..9]
|
-- > workspaces = ["web", "irc", "code" ] ++ map show [4..9]
|
||||||
--
|
--
|
||||||
myWorkspaces = ["1:web", "2:front", "3:back", "4:chat"] <> map show [5..9]
|
myWorkspaces = ["1:web", "2:code", "3:code", "4:code"] <> map show [5..6] <> ["7:fin", "8:cfg", "9:chat"]
|
||||||
|
|
||||||
-- Border colors for unfocused and focused windows, respectively.
|
-- Border colors for unfocused and focused windows, respectively.
|
||||||
--
|
--
|
||||||
|
@ -113,9 +112,7 @@ defaults = def
|
||||||
-- The available layouts. Note that each layout is separated by |||,
|
-- The available layouts. Note that each layout is separated by |||,
|
||||||
-- which denotes layout choice.
|
-- which denotes layout choice.
|
||||||
--
|
--
|
||||||
myLayout = avoidStruts
|
myLayout = avoidStruts (myMirror (2/3) ||| myTall (1/2) ||| myFull ||| Grid)
|
||||||
$ onWorkspaces ["2:front", "3:back"] (myMirror (2/3) ||| myTall (1/2) ||| myFull ||| Grid)
|
|
||||||
$ myTall (1/2) ||| myMirror (1/2) ||| myFull ||| Grid
|
|
||||||
where
|
where
|
||||||
myMirror = limitWindows 5 . Mirror . myTall
|
myMirror = limitWindows 5 . Mirror . myTall
|
||||||
|
|
||||||
|
@ -176,8 +173,8 @@ myManageHook = composeAll
|
||||||
, className =? "Gnome-calculator" --> doFloat
|
, className =? "Gnome-calculator" --> doFloat
|
||||||
, className =? "Gnome-font-viewer" --> doFloat
|
, className =? "Gnome-font-viewer" --> doFloat
|
||||||
, className =? "Org.gnome.Nautilus" --> doFloat
|
, className =? "Org.gnome.Nautilus" --> doFloat
|
||||||
, resource =? "telegram-desktop" --> doShift "4:chat"
|
, resource =? "telegram-desktop" --> doShift "9:chat"
|
||||||
, className =? "Thunderbird" --> doShift "4:chat"
|
, className =? "Thunderbird" --> doShift "9:chat"
|
||||||
-- my libs
|
-- my libs
|
||||||
, resource =? "hwt" --> doFloat
|
, resource =? "hwt" --> doFloat
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue