[xmonad] doFullFloat keybinding?
wagnerdm at seas.upenn.edu
wagnerdm at seas.upenn.edu
Tue Jul 10 11:40:11 CEST 2012
Quoting 1126 <mailinglists at elfsechsundzwanzig.de>:
> Well, thank you. I already got an (more or less) complex
> perWorkspace layout and I'm not entirely sure how to add a
> non-avoidStruts layout for the workspace for evince (this would be
> (workspace !! 5) in my case). Here's what I have now:
>
> myLayoutHook = avoidStruts . smartBorders
> . onWorkspace (myWorkspaces !! 0) (tiled |||
> simpleTabbed ||| Full)
> . onWorkspace (myWorkspaces !! 2) (tiled ||| Full |||
> simpleTabbed)
> . onWorkspace (myWorkspaces !! 3) (tiled2 |||
> simpleTabbed ||| Full)
> . onWorkspace (myWorkspaces !! 8) (tiled3 ||| Full |||
> simpleTabbed)
> $ (Full ||| simpleTabbed ||| Grid)
> where
> tiled = ResizableTall 1 (5/100) (40/100) []
> tiled2 = Mirror (Tall 1 (5/100) (30/100))
> tiled3 = withIM (11/64) (Role "gimp-toolbox") $ ResizableTall
> 2 (1/118) (11/20) [1] ||| Full
You'll have to distribute avoidStruts over the onWorkspace commands.
Try something like this (untested):
myLayoutHook = smartBorders
. onWSAvoid (myWorkspaces !! 0) (tiled |||
simpleTabbed ||| Full)
. onWSAvoid (myWorkspaces !! 2) (tiled ||| Full |||
simpleTabbed)
. onWSAvoid (myWorkspaces !! 3) (tiled2 |||
simpleTabbed ||| Full)
. onWorkspace (myWorkspaces !! 5) (Full ||| simpleTabbed
||| Grid)
. onWSAvoid (myWorkspaces !! 8) (tiled3 ||| Full |||
simpleTabbed)
. avoidStruts
$ (Full ||| simpleTabbed ||| Grid)
where
tiled = ResizableTall 1 (5/100) (40/100) []
tiled2 = Mirror (Tall 1 (5/100) (30/100))
tiled3 = withIM (11/64) (Role "gimp-toolbox") $ ResizableTall 2
(1/118) (11/20) [1] ||| Full
onWSAvoid ws l = onWorkspace ws (avoidStruts l)
Remember to mod+shift+space on your evince workspace after you reload
this config.
> The weird thing is, the workspace VLC has no problem with the
> fullscreen-mode.
> When I hit F11 in VLC it fills up the fullscreen, just like Evince
> should. And
> it resides on an avoidStruts workspace, too.
Can't help you here. Perhaps VLC uses a different fullscreening method
than evince. But it sounded to me like you didn't actually want
fullscreen'd evince anyway -- you still wanted them tiled when there
was more than one.
~d
More information about the xmonad
mailing list