Skip to content

Commit

Permalink
Some major struts modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
pielgrzym committed Aug 5, 2012
1 parent 4fda761 commit be79152
Showing 1 changed file with 13 additions and 25 deletions.
38 changes: 13 additions & 25 deletions xmonad.hs
Expand Up @@ -63,7 +63,7 @@ main= do
, modMask = mod4Mask -- Rebind Mod to the Windows key
, workspaces = myWorkspaces
, manageHook = myManageHook <+> manageDocks <+> manageScratchPad
, layoutHook = myLayout
, layoutHook = avoidStruts $ myLayout
, logHook = (dynamicLogWithPP $ myXmobarPP bar) >> updatePointer (Relative 0.5 0.5)
}
`removeKeysP` [ "M-w", "M-e", "M-b" ]
Expand All @@ -90,6 +90,7 @@ main= do
, ("M-S-c", kill1) -- remove a window copy or kill window otherwise
, ("M-M1-k", sendMessage MirrorExpand)
, ("M-M1-j", sendMessage MirrorShrink)
, ("M-n", sendMessage $ ToggleStrut R) -- Merge to Tabbed
, ("M-m M-h", sendMessage $ pullGroup L) -- Merge to Tabbed
, ("M-m M-l", sendMessage $ pullGroup R)
, ("M-m M-k", sendMessage $ pullGroup U)
Expand Down Expand Up @@ -152,10 +153,8 @@ greenColorizer = colorRangeFromClassName

myTopics :: [Topic]
myTopics =
[ "start" -- the first one
, "email"
, "proj"
, "music", "web"
[ "dashboard" -- the first one
, "web"
, "admin"
, "im"
, "vbox"
Expand All @@ -171,11 +170,8 @@ manageScratchPad = scratchpadManageHook (W.RationalRect 0.05 0.05 0.9 0.5)
myTopicConfig :: TopicConfig
myTopicConfig = TopicConfig
{ topicDirs = M.fromList $
[ ("start", "~")
, ("email", "~")
, ("proj", "~/proj")
, ("music", "~/muza")
, ("admin", "~/proj")
[ ("dashboard", "~")
, ("admin", "~/work")
, ("cfg", "~/.xmonad")
, ("im", "~")
, ("films", "~/download")
Expand All @@ -185,21 +181,15 @@ myTopicConfig = TopicConfig
, defaultTopic = "start"
, maxTopicHistory = 10
, topicActions = M.fromList $
[ ("start", spawnShell)
[ ("dashboard", spawnShell >>
spawn "conky -c ~/.conky/conky_grey")
, ("web", spawn "firefox")
, ("im", spawnShell)
, ("music", spawnShell >>
(sendMessage $ JumpToLayout "[-]"))
, ("proj", spawnShell >*> 2 >>
(sendMessage $ JumpToLayout "[-]"))
, ("cfg", spawnShell >>
spawnShellIn ".zsh" >>
spawnShellIn ".vim")
, ("admin", spawnShell >*> 3)
, ("cfg", spawnShell)
, ("admin", spawnShell)
, ("films", spawnShell)
, ("vbox", spawn "VirtualBox")
, ("gimp", spawn "gimp")
, ("email", spawn "chromium")
]
}

Expand Down Expand Up @@ -252,16 +242,14 @@ myLayout = avoidStruts
$ onWorkspace "gimp" (gimpL)
$ default_layouts
where
default_layouts = (tabbed' ||| resizable_tall' ||| mirror_resizable_tall' ||| magni_tall ||| mirror_magni_tall)
default_layouts = (tabbed' ||| resizable_tall' ||| mirror_resizable_tall')
-- default_layouts = (tabbed' ||| resizable_tall' ||| mirror_resizable_tall' ||| magni_tall ||| mirror_magni_tall)
--big_layouts = (tabbed' ||| Full ||| magni_tall)
-- complex layout definitions:
resizable_tall' = named "[|]" $ maximize $ enableTabs $ spacing 2 $ ResizableTall 1 (3/100) (1/2) []
mirror_resizable_tall' = named "[-]" $ maximize $ enableTabs $ spacing 2 $ Mirror $ ResizableTall 1 (3/100) (4/5) []
tabbed' = named "[T]" $ withBorder 1 $ maximize $ tabbed shrinkText myTabTheme
three_col' = named "[3]" $ spacing 2 $ maximize $ ThreeColMid 2 (3/100) (4/5)
enableTabs x = addTabs shrinkText myTabTheme $ subLayout [] Simplest x
magni_tall = named "[:]" $ magnifier resizable_tall'
mirror_magni_tall = named "[=]" $ magnifier (Mirror resizable_tall')
gimpL = named "[gimp]" $ withIM (0.11) (Role "gimp-toolbox") $ reflectHoriz $ withIM (0.15) (Role "gimp-dock") tabbed'

-- tabbed theme
Expand All @@ -287,7 +275,7 @@ myManageHook = composeAll
, className =? "Xmessage" --> doCenterFloat
, className =? "feh" --> doFloat
, className =? "Gimp" --> doShift "gimp"
, className =? "Conky" --> doIgnore
-- , className =? "Conky" --> doFloat
, className =? "Clementine" --> doShift "muza"
, title =? "Zapisz jako" --> doRectFloat (W.RationalRect 0.05 0.05 0.6 0.6)
, title =? "Save As" --> doRectFloat (W.RationalRect 0.05 0.05 0.6 0.6)
Expand Down

0 comments on commit be79152

Please sign in to comment.