Reputation: 3194
I use a layout with avoidStruts so that I can bind key ((myModMask, xK_b), sendMessage ToggleStruts) to hide the xmobar toolbar.
Now I have a strange behaviour: When restarting XMonad with "mod-q", XMobar in a GNOME session gets hidden behind the background window and doesnt come up again. ToggleStruts still seems to works though, only that only the background is visible where the XMobar should be.
Here are my config files:
https://github.com/eiselekd/dotfiles/blob/master/.xmonad/xmonad.hs
Is there any easy workaround? Maybe send the background window behind the XMobar again...
I know that there are the XMobar options
overrideRedirect = False
lowerOnStart = False
however whilst XMobar is visible on startup when these options are added, the XMobar window is suddenly not hidden by ToggleStruts any more. So I dont want to use these.
Another possibility that I tried and that is working is to spawn in the StartupHook
xdotool windowraise `xdotool search --all --name xmobar`
to raise XMobar via xdotool, however I would like to know a XMonad/Haskell command instead.
Upvotes: 2
Views: 1043