Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import XMonad
- import XMonad.Hooks.ManageDocks
- import XMonad.Hooks.ManageHelpers
- import XMonad.Layout.IM
- import XMonad.Layout.PerWorkspace
- import qualified XMonad.StackSet as W
- -- main
- main = xmonad $ defaultConfig
- { ...
- , layoutHook = myLayout
- , manageHook = myManageHook
- , modMask = mod4Mask -- Use Super instead of Alt
- , terminal = "gnome-terminal"
- }
- -- Layouts
- myLayout = avoidStruts $ onWorkspace "3-im" imLayout $ standardLayouts
- where
- -- numMasters, resizeIncr, splitRatio
- tall = Tall 1 0.02 0.5
- -- define the list of standardLayouts
- standardLayouts = tall ||| Mirror tall ||| Full
- imLayout = withIM (1/10) (Role "roster") (standardLayouts)
- -- Manage hook
- myManageHook = composeAll
- [ -- whatever you might already have
- -- move all IM windows to IM workspace
- , className =? "pidgin" --> doShift "3-chat"
- -- and float everything but the roster
- , classNotRole ("pidgin", "roster") --> doFloat
- ]
- where
- classNotRole :: (String, String) -> Query Bool
- classNotRole (c,r) = className =? c <&&> role /=? r
- role = stringProperty "WM_WINDOW_ROLE"
Advertisement
Add Comment
Please, Sign In to add comment