
Hello all, I am new to xmonad, coming from many years of openbox. I want a taskbar to display the time, ibus/mozC status and a logout button with hibernate choice. This taskbar should be - either horizontal, in that case it shouldn't take all the screen width (I use XMonad.Layout.NoFrillsDecoration for the window title bar, so there is ample room left for what I display in the bar, - or vertical (to minimize use of screen realestate). What taskbar would do satisfy these criteria ? Thanks in advance. Alain

Hi Alain,
Welcome to the club. You might try xfce-panel or the panel/taskbar you were
using in openbox . To get a working logout button, you might need to make a
custom one that executes the appropriate command to end your desktop
session.
On Fri, Oct 10, 2014 at 2:27 PM, Alain Bertrand
Hello all,
I am new to xmonad, coming from many years of openbox.
I want a taskbar to display the time, ibus/mozC status and a logout button with hibernate choice.
This taskbar should be
- either horizontal, in that case it shouldn't take all the screen width (I use XMonad.Layout.NoFrillsDecoration for the window title bar, so there is ample room left for what I display in the bar,
- or vertical (to minimize use of screen realestate).
What taskbar would do satisfy these criteria ?
Thanks in advance.
Alain _______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
-- Cheers, Mark Watts Department of Computer Science University of Texas at Austin

Hello Mark, Thanks for your answer. Here is my xmonad.hs file : import XMonad import XMonad.Layout.NoFrillsDecoration import XMonad.Config.Azerty import XMonad.Hooks.DynamicLog import XMonad.Hooks.ManageDocks myWorkspaces = ["1:web","2:japonais","3:cours","4:programmation","5:divers","6:il2"] myManageHook = composeAll [ className =? "Firefox" --> doShift "1:web" , className =? "Thunderbird" --> doShift "1:web" ] myL = simpleDeco shrinkText defaultTheme (layoutHook defaultConfig) main = do xmonad azertyConfig { layoutHook = avoidStruts $ myL ,workspaces = myWorkspaces } I thought that adding avoidStruts to my layout would allow me to run fbpanel but no. If I launch it on a terminal, I get : can't chdir to /usr/share/xmonad What should I add to my config ? By the way, why the [ className =? "Firefox" --> doShift "1:web" , className =? "Thunderbird" --> doShift "1:web" ] send Firefox and Thunderbird on the *second* workspace (alt-2) instead of the first one? TIA Alain Le 11/10/2014 02:32, Mark Watts a écrit :
Hi Alain,
Welcome to the club. You might try xfce-panel or the panel/taskbar you were using in openbox . To get a working logout button, you might need to make a custom one that executes the appropriate command to end your desktop session.
On Fri, Oct 10, 2014 at 2:27 PM, Alain Bertrand
wrote: Hello all,
I am new to xmonad, coming from many years of openbox.
I want a taskbar to display the time, ibus/mozC status and a logout button with hibernate choice.
This taskbar should be
- either horizontal, in that case it shouldn't take all the screen width (I use XMonad.Layout.NoFrillsDecoration for the window title bar, so there is ample room left for what I display in the bar,
- or vertical (to minimize use of screen realestate).
What taskbar would do satisfy these criteria ?
Thanks in advance.
Alain _______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad

On Sat, Oct 11, 2014 at 2:59 PM, Alain Bertrand
I thought that adding avoidStruts to my layout would allow me to run fbpanel but no. If I launch it on a terminal, I get : can't chdir to /usr/share/xmonad
That's not going to be related to avoidStruts, or indeed to your xmonad configuration at all --- but may be related to fbpanel making strange assumptions about window manager configurations in genera. Do you have a ~/.config/fbpanel/default file? If so, what's in it? -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

Le 11/10/2014 21:05, Brandon Allbery a écrit :
On Sat, Oct 11, 2014 at 2:59 PM, Alain Bertrand
wrote: I thought that adding avoidStruts to my layout would allow me to run fbpanel but no. If I launch it on a terminal, I get : can't chdir to /usr/share/xmonad
That's not going to be related to avoidStruts, or indeed to your xmonad configuration at all --- but may be related to fbpanel making strange assumptions about window manager configurations in genera. Do you have a ~/.config/fbpanel/default file? If so, what's in it? Thanks for your answer.
Actually, I have just checked how fbpanel behaves with openbox and though it works as it should, I got the same message can't chdir to /usr/share/openbox Here is my .config/fbpanel/default Global { edge = top #left allign = right #center margin = 0 widthtype = percent width = 50#99 height = 12#24 transparent = false tintcolor = blue # #ffffff alpha = 28 setdocktype = true setpartialstrut = true autohide = false heightWhenHidden = 2 roundcorners = false roundcornersradius = 7 layer = none MaxElemHeight = 32 } Plugin { type = space config { size = 2 } } Plugin { type = menu config { IconSize = 22 #icon = start-here # Use a nice Debian logo for the menu list ;-) image = /usr/share/pixmaps/debian-logo.png systemmenu { } separator { } menu { name = Computer icon = computer item { name = Terminal icon = terminal action = x-terminal-emulator } item { name = Lock Display icon = gnome-lockscreen action = slock } separator { } item { name = Reboot icon = gnome-session-reboot action = sudo reboot } item { name = Shutdown icon = gnome-session-halt action = sudo shutdown -h now } item { name = logout icon = gnome-session-logout action = /usr/lib/fbpanel/fbpanel/xlogout } } } } Plugin { type = space config { size = 15 } } Plugin { type = launchbar config { button { icon = file-manager tooltip = File Manager action = thunar } button { icon = terminal tooltip = Terminal action = x-terminal-emulator } button { icon = web-browser tooltip = Web Browser action = x-www-browser } } } Plugin { type = space config { size = 15 } } Plugin { type = wincmd config { icon = gnome-fs-desktop tooltip = Left click to iconify all windows. Middle click to shade them. } } Plugin { type = space config { size = 15 } } Plugin { type = taskbar expand = true config { ShowIconified = true ShowMapped = true ShowAllDesks = false tooltips = true IconsOnly = false MaxTaskWidth = 150 } } Plugin { type = space config { size = 15 } } Plugin { type = pager config { showwallpaper = true } } Plugin { type = space config { size = 10 } } Plugin { type = mem expand = false padding = 2 config { ShowSwap = false } } Plugin { type = cpu config { Color = green } } Plugin { type = net expand = false padding = 0 config { #interface = ppp0 interface = eth0 # set connection limits to make traffic graph more accurate TxLimit = 20 RxLimit = 190 TxColor = violet RxColor = blue } } Plugin { type = space config { size = 10 } } Alain

On Sat, Oct 11, 2014 at 3:41 PM, Alain Bertrand
Actually, I have just checked how fbpanel behaves with openbox and though it works as it should, I got the same message
can't chdir to /usr/share/openbox
Yep, that was where I was leading with the comment about strange assumptions; it sees that there is an EWMH support window with the name "xmonad" or "openbox" and goes looking for window manager configuration in a standard location. This probably only works right with desktop environments, not standalone window managers. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

Le 11/10/2014 21:46, Brandon Allbery a écrit :
On Sat, Oct 11, 2014 at 3:41 PM, Alain Bertrand
wrote: Actually, I have just checked how fbpanel behaves with openbox and though it works as it should, I got the same message
can't chdir to /usr/share/openbox
Yep, that was where I was leading with the comment about strange assumptions; it sees that there is an EWMH support window with the name "xmonad" or "openbox" and goes looking for window manager configuration in a standard location. This probably only works right with desktop environments, not standalone window managers.
Xfce-panel works correctly with xmonad and displays the ibus status applet but is really ugly when set vertically. I'll stick with xmobar except when I really need this applet. I have still a question. If I start xmonad and then after xmobar, I got for a little time the situation described in the screenshot (xmobar uses the top of the screen right of the window title) but soon it is updated and the title of the windows goes under xmobar. Would-it be possible to get this situation permanently ? TIA Alain

As for displaying the systray on top of xmobar, I believe trayer can be
used to that effect. Here's one example I just found via web search:
http://archlinux.me/kofrad/tag/trayer/
On Sat, Oct 11, 2014 at 11:38 PM, Alain Bertrand
Le 11/10/2014 21:46, Brandon Allbery a écrit :
On Sat, Oct 11, 2014 at 3:41 PM, Alain Bertrand
wrote: Actually, I have just checked how fbpanel behaves with openbox and though
it works as it should, I got the same message
can't chdir to /usr/share/openbox
Yep, that was where I was leading with the comment about strange assumptions; it sees that there is an EWMH support window with the name "xmonad" or "openbox" and goes looking for window manager configuration in a standard location. This probably only works right with desktop environments, not standalone window managers.
Xfce-panel works correctly with xmonad and displays the ibus status applet but is really ugly when set vertically. I'll stick with xmobar except when I really need this applet.
I have still a question. If I start xmonad and then after xmobar, I got for a little time the situation described in the screenshot (xmobar uses the top of the screen right of the window title) but soon it is updated and the title of the windows goes under xmobar. Would-it be possible to get this situation permanently ?
TIA
Alain
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad

On Sun, Oct 12, 2014 at 2:38 AM, Alain Bertrand
I have still a question. If I start xmonad and then after xmobar, I got for a little time the situation described in the screenshot (xmobar uses the top of the screen right of the window title) but soon it is updated and the title of the windows goes under xmobar. Would-it be possible to get this situation permanently ?
Looks to me like you missed manageDocks in your ManageHook? This will also lead to other unexpected behaviors. In fact you aren't even hooking in the ManageHook you did define, which is why your doShift-s have no effect. main = xmonad azertyConfig { layoutHook = avoidStruts myL ,workspaces = myWorkspaces ,manageHook = manageDocks <+> myManageHook } -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
participants (4)
-
Alain Bertrand
-
Brandon Allbery
-
Devin Mullins
-
Mark Watts