Nathan
4p3 comments posted · 0 followers · following 0
15 years ago @ Nathan Howell - Switching to Gnome + X... · 0 replies · +1 points
16 years ago @ Nathan Howell - Xmonad and the Gimp · 0 replies · +1 points
17 years ago @ Nathan Howell - Xmonad and the Gimp · 1 reply · +1 points
import XMonad.Actions.DynamicWorkspaces
myManageHook = composeAll [ className =? "Gimp-2.6" --> doNewWS "gimp" ]
where
doNewWS tg = (liftX $ addUniqueHiddenWS tg) >> doShift tg
addUniqueHiddenWS tg = withWindowSet $ s ->
if null (filter ( (== tg) . W.tag) (W.workspaces s))
then addHiddenWorkspace tg
else return()
You can change addHiddenWorkspace to addWorkspace to switch to the workspace when creating it.
(Sorry, can't seem to make these intense debate comments preserve indenting)