# HG changeset patch # User Christophe Lincoln # Date 1205255234 -3600 # Node ID 8226e93c07921f1fcfcbcce44c27012b72f28f4c # Parent 5d2efb84b97972e284fee895ff50be00e19631f2 Specific lxpanel config for openbox diff -r 5d2efb84b979 -r 8226e93c0792 openbox/receipt --- a/openbox/receipt Tue Mar 11 17:57:04 2008 +0100 +++ b/openbox/receipt Tue Mar 11 18:07:14 2008 +0100 @@ -30,7 +30,7 @@ # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/lib $fs/usr/share + mkdir -p $fs/usr/lib $fs/usr/share/lxpanel/profile/openbox cp -a $_pkg/usr/bin $fs/usr cp -a $_pkg/usr/lib/*.so* $fs/usr/lib cp -a $_pkg/usr/share/themes $fs/usr/share @@ -42,5 +42,8 @@ # Menu config and autostart script. mkdir -p $fs/etc/xdg cp -a stuff/openbox $fs/etc/xdg + # LXpanel config. + cp stuff/lxpanel.config $fs/usr/share/lxpanel/profile/openbox + # Set perms. chown -R root.root $fs } diff -r 5d2efb84b979 -r 8226e93c0792 openbox/stuff/lxpanel.config --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/openbox/stuff/lxpanel.config Tue Mar 11 18:07:14 2008 +0100 @@ -0,0 +1,136 @@ +# lxpanel config file +# see http://lxpanel.sf.net/docs.html for complete configuration guide +Global { + edge = top + allign = center + margin = 0 + widthtype = request + width = 442 + height = 26 + transparent = false + tintcolor = #000000 + alpha = 106 + setdocktype = true + setpartialstrut = true + useFontColor = true + FontColor = #111111 + Background = false + BackgroundFile = /usr/share/lxpanel/images/background.png + FileManager = emelfm2 + Terminal = xterm + LogoutCommand = openbox -exit +} + +Plugin { + type = space + Config { + Size = 4 + } +} + +Plugin { + type = menu + Config { + image = /usr/share/pixmaps/slitaz-menu.png + system { + } + separator { + } + item { + image = /usr/share/icons/Tango/jwm/applications-other.png + command = run + } + item { + image = /usr/share/icons/Tango/jwm/preferences-desktop.png + command = configure + } + separator { + } + item { + image = gnome-logout + command = logout + } + } +} + +Plugin { + type = launchbar + Config { + Button { + id = emelfm2.desktop + } + Button { + id = xterm.desktop + } + Button { + id = firefox.desktop + } + } +} + +Plugin { + type = space + Config { + Size = 4 + } +} + +Plugin { + type = wincmd + Config { + Button1 = iconify + Button2 = shade + } +} + +Plugin { + type = space + Config { + Size = 4 + } +} + +Plugin { + type = deskno +} + +Plugin { + type = space + Config { + Size = 2 + } +} + +Plugin { + type = volumealsa +} + +Plugin { + type = netstatus + Config { + iface = eth0 + configtool = subox netbox + } +} + +Plugin { + type = space + Config { + Size = 4 + } +} + +Plugin { + type = cpu +} + +Plugin { + type = dclock + Config { + ClockFmt = %R + TooltipFmt = %A %x + Action = osmo & + BoldFont = 0 + } +} + diff -r 5d2efb84b979 -r 8226e93c0792 openbox/stuff/openbox/autostart.sh --- a/openbox/stuff/openbox/autostart.sh Tue Mar 11 17:57:04 2008 +0100 +++ b/openbox/stuff/openbox/autostart.sh Tue Mar 11 18:07:14 2008 +0100 @@ -14,7 +14,11 @@ fi # Login sound. -alsaplayer -i text /usr/share/sounds/login.ogg || continue & +if which alsaplayer >/dev/null; then + alsaplayer -i text /usr/share/sounds/login.ogg & +fi # Start the panel. -lxpanel || continue & +if which lxpanel >/dev/null; then + lxpanel --profile openbox & +fi