davama

xmonad Add isPrefixOf

Feb 27th, 2017
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. myManageHook ::  ManageHook
  2. myManageHook = composeAll . concat $
  3.     [
  4.       [ isDialog --> doCenterFloat ]
  5.     , [ isFullscreen --> doFullFloat ]
  6.     , [(className =? c <||> title =? c <||> resource =? c) --> doIgnore | c <- bars ]
  7.     , [(className =? c <||> title =? c <||> resource =? c) --> doFloat | c <- float ]
  8. ...
  9. ...
  10.     , [ fmap (c `isPrefixOf`) className <||> fmap (c `isPrefixOf`) title <||> fmap (c `isPrefixOf`) resource  --> doShift (myWorkspaces !! 3) | c <- ws4 ] -- iv
  11. ...
  12. ...  
  13.     , [(className =? c <||> title =? c <||> resource =? c) --> doShift "NSP" | c <- nsp ] -- nsp
  14.     , [role =? c --> doFloat | c <- im ] -- place roles on im
  15.    ]
  16.    where
  17.      bars    = ["dzen2","desktop_window"]
  18.      float   = ["feh"]
  19.      ws4     = ["xfreerdp","rdesktop"] -- any window client that begins with these strings will shift to WS iv
  20.      nsp     = ["nothing"]
  21.      im      = ["nothing"]
  22.      role    = stringProperty "WM_WINDOW_ROLE" -- example
Advertisement
Add Comment
Please, Sign In to add comment