HokieGeek / dotfiles

My linux config files
0 stars 0 forks source link

Have gimp open up in its own workspace #55

Closed HokieGeek closed 9 years ago

HokieGeek commented 10 years ago

I have no clue if this is a good idea or not....

HokieGeek commented 10 years ago

This is very closely related to issue #15

HokieGeek commented 10 years ago

Is there some sort of exit handler so that, if I exit the gimp workspace, it calls removeEmptyWorkspace every time?

HokieGeek commented 10 years ago
getCurrentWorkspace :: X String
getCurrentWorkspace = withWindowSet (\s -> return $ W.tag $ W.workspace $ W.current s)
HokieGeek commented 10 years ago

Use the log hook!

HokieGeek commented 10 years ago

The shortcut might be:

, ((0, xK_grave), windows $ W.greedyView "SPECIAL")

http://xmonad.org/xmonad-docs/X11/src/Graphics-X11-Types.html

HokieGeek commented 10 years ago

Replace

dzenWorkspaceSymbol x = "^i(/home/andres/.xmonad/imgs/workspace.xbm)"

with

dzenWorkspaceSymbol "SPECIAL" = "^i(/home/andres/.xmonad/imgs/workspace_special.xbm)"
dzenWorkspaceSymbol x = "^i(/home/andres/.xmonad/imgs/workspace.xbm)"
HokieGeek commented 10 years ago
removeSpecialWs :: WorkspaceId -> X()
removeSpecialWs "SPECIAL" = removeEmptyWorkspace
HokieGeek commented 10 years ago
removeSpecialWs :: WorkspaceId -> X()
removeSpecialWs "SPECIAL" = removeEmptyWorkspace
myLogHook h = (dynamicLogWithPP (myDzen h)) <+> historyHook <+> removeSpecialWs
                                            >> fadeInactiveLogHook 0.5
                                            >> updatePointer (Relative 1 1)
HokieGeek commented 10 years ago
XMonad.Actions.DynamicWorkspaces
HokieGeek commented 10 years ago

Sample gimp layout

    gimpLayout = named "Gimp" $
                 withIM (0.130) (Role "gimp-toolbox") $
                 reflectHoriz $
                 withIM (0.2) (Role "gimp-dock") Full

Would be useful to figure out if I can apply layouts on the fly. So, maybe when the SPECIAL workspace is navigated to, check the windows. If gimp, apply this layout.

HokieGeek commented 9 years ago
moveOnBack l = tail l ++ [head l]
HokieGeek commented 9 years ago

DestroyWindowEvent

http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Actions-DynamicWorkspaces.html https://mail.haskell.org/pipermail/xmonad/2012-February/012414.html https://github.com/NickHu/dotxmonad/blob/master/xmonad.hs