
Hello,
I'm new to xmonad and I observe a strange behaviour with the status
bar. I started xmobar as follow:
in my xmonad.hs I have:
main = do
xmproc <- spawnPipe "xmobar"
xmonad $ azertyConfig
{
workspaces = myWorkspaces,
terminal = myTerminal,
modMask = myModMask,
logHook = dynamicLogWithPP $ xmobarPP
{ ppOutput = hPutStrLn xmproc,
ppTitle = xmobarColor "green" "" . shorten 50
},
manageHook = manageDocks <+> myManageHook <+> manageHook azertyConfig
}
in my .xmobrrc I have:
Config { font = "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*"
, bgColor = "black"
, fgColor = "grey"
, position = TopW L 90
, lowerOnStart = True
, commands = [ Run Weather "LFLG" ["-t","<station>:
<tempC>C","-L","18","-H","25","--normal","green","--high","red","--low","lightblue"]
36000
, Run Network "eth0"
["-L","0","-H","32","--normal","green","--high","red"] 10
, Run Cpu
["-L","3","-H","50","--normal","green","--high","red"] 10
, Run Memory ["-t","Mem: <usedratio>%"] 10
, Run Swap [] 10
, Run Com "uname" ["-s","-r"] "" 36000
, Run Date "%a %b %_d %Y %H:%M:%S" "date" 10
, Run StdinReader
]
, sepChar = "%"
, alignSep = "}{"
, template = "%StdinReader% }{%cpu% | %memory% * %swap% | %eth0%
|

Hi Guillaume, Excerpts from Guillaume Thouvenin's message of Thu, 30 Sep 2010 13:40 +0200:
I'm new to xmonad and I observe a strange behaviour with the status bar. ..... I can see the status bar in a workspace when it is empty but when I start an application (xterm, firefox, ...) the application covers the status bar and therefore I can not see it. I tried to modify lowerOnStart = False but this hides the top of my application. I'm using xmonad 0.9.1-2 and xmobar 0.9.2-1 with ubuntu 10.04.
You should tell xmonad to not use the area of the status bar, The following is a quote from [1]: -----------------------------8<----------------------------- Wrap your layouts with avoidStruts from XMonad.Hooks.ManageDocks for automatic dock/panel/trayer spacing: import XMonad import XMonad.Hooks.ManageDocks main=do xmonad $ defaultConfig { ... , layoutHook=avoidStruts $ Tall ||| Wide ||| Full , manageHook=manageHook defaultConfig <+> manageDocks , ... } -----------------------------8<----------------------------- Cheers, Sergey [1] http://wiki.archlinux.org/index.php/Xmonad

Guillaume Thouvenin
I'm new to xmonad and I observe a strange behaviour with the status bar.
Ok I finally find something. I added the following line in xmonad.hs: , layoutHook = avoidStruts $ layoutHook azertyConfig and everything is working now. If you don't use an azerty keyboard just use the defaultConfig. Have a nice day, Guillaume
participants (2)
-
Guillaume Thouvenin
-
Sergey Manucharian