[xmonad] task bar

Alain Bertrand alainbe at free.fr
Sat Oct 11 19:41:16 UTC 2014


Le 11/10/2014 21:05, Brandon Allbery a écrit :
> On Sat, Oct 11, 2014 at 2:59 PM, Alain Bertrand<alainbe at free.fr>  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



More information about the xmonad mailing list