[xmonad] xmobar disappears

Michael Norrish michael.norrish at nicta.com.au
Fri Jun 1 04:35:32 CEST 2012


On 01/06/12 12:25, Brandon Allbery wrote:
> On Thu, May 31, 2012 at 10:03 PM, Michael Norrish <michael.norrish at nicta.com.au
> <mailto:michael.norrish at nicta.com.au>> wrote:
>
>     When I restart xmonad with a M-q command my xmobar disappears.  There's an
>     xmobar process running and it's not obviously blocked.  (strace shows it
>     doing things, including recvfrom and writev both with non-zero positive
>     return codes).
>
>
> Given that you're using the Ubuntu Gnome/Xmonad session, it's trapped under the
> nautilus desktop window.  You probably want to set "lowerOnStart = False" in
> ~/.xmobarrc.

This seems to do the trick; thanks!

> If this isn't sufficient and you need to actively raise it,
> something like this in the ManageHook might work:
>
>      appName =? "xmobar" --> liftX . withDisplay . (io .) . flip raiseWindow =<< ask

This fails with

xmonad.hs:122:76:
     Couldn't match expected type `Endo WindowSet' with actual type `()'
     Expected type: Display -> Window -> IO (Endo WindowSet)
       Actual type: Display -> Window -> IO ()
     In the first argument of `flip', namely `raiseWindow'
     In the second argument of `(.)', namely `flip raiseWindow'

But I'll try to get back to the list with a version that works (for future 
reference).

Michael



More information about the xmonad mailing list