wok-next rev 410

Specific lxpanel config for openbox
author Christophe Lincoln <pankso@slitaz.org>
date Tue Mar 11 18:07:14 2008 +0100 (2008-03-11)
parents 5d2efb84b979
children 6bb4c6833b9a
files openbox/receipt openbox/stuff/lxpanel.config openbox/stuff/openbox/autostart.sh
line diff
     1.1 --- a/openbox/receipt	Tue Mar 11 17:57:04 2008 +0100
     1.2 +++ b/openbox/receipt	Tue Mar 11 18:07:14 2008 +0100
     1.3 @@ -30,7 +30,7 @@
     1.4  # Rules to gen a SliTaz package suitable for Tazpkg.
     1.5  genpkg_rules()
     1.6  {
     1.7 -	mkdir -p $fs/usr/lib $fs/usr/share
     1.8 +	mkdir -p $fs/usr/lib $fs/usr/share/lxpanel/profile/openbox
     1.9  	cp -a $_pkg/usr/bin $fs/usr
    1.10  	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    1.11  	cp -a $_pkg/usr/share/themes $fs/usr/share
    1.12 @@ -42,5 +42,8 @@
    1.13  	# Menu config and autostart script.
    1.14  	mkdir -p $fs/etc/xdg
    1.15  	cp -a stuff/openbox $fs/etc/xdg
    1.16 +	# LXpanel config.
    1.17 +	cp stuff/lxpanel.config $fs/usr/share/lxpanel/profile/openbox
    1.18 +	# Set perms.
    1.19  	chown -R root.root $fs
    1.20  }
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/openbox/stuff/lxpanel.config	Tue Mar 11 18:07:14 2008 +0100
     2.3 @@ -0,0 +1,136 @@
     2.4 +# lxpanel <profile> config file
     2.5 +# see http://lxpanel.sf.net/docs.html for complete configuration guide
     2.6 +Global {
     2.7 +    edge = top
     2.8 +    allign = center
     2.9 +    margin = 0
    2.10 +    widthtype = request
    2.11 +    width = 442
    2.12 +    height = 26
    2.13 +    transparent = false
    2.14 +    tintcolor = #000000
    2.15 +    alpha = 106
    2.16 +    setdocktype = true
    2.17 +    setpartialstrut = true
    2.18 +    useFontColor = true
    2.19 +    FontColor = #111111
    2.20 +    Background = false
    2.21 +    BackgroundFile = /usr/share/lxpanel/images/background.png
    2.22 +    FileManager = emelfm2
    2.23 +    Terminal = xterm
    2.24 +    LogoutCommand = openbox -exit
    2.25 +}
    2.26 +
    2.27 +Plugin {
    2.28 +    type = space
    2.29 +    Config {
    2.30 +        Size = 4
    2.31 +    }
    2.32 +}
    2.33 +
    2.34 +Plugin {
    2.35 +    type = menu
    2.36 +    Config {
    2.37 +        image = /usr/share/pixmaps/slitaz-menu.png
    2.38 +        system {
    2.39 +        }
    2.40 +        separator {
    2.41 +        }
    2.42 +        item {
    2.43 +            image = /usr/share/icons/Tango/jwm/applications-other.png
    2.44 +            command = run
    2.45 +        }
    2.46 +        item {
    2.47 +            image = /usr/share/icons/Tango/jwm/preferences-desktop.png
    2.48 +            command = configure
    2.49 +        }
    2.50 +        separator {
    2.51 +        }
    2.52 +        item {
    2.53 +            image = gnome-logout
    2.54 +            command = logout
    2.55 +        }
    2.56 +    }
    2.57 +}
    2.58 +
    2.59 +Plugin {
    2.60 +    type = launchbar
    2.61 +    Config {
    2.62 +        Button {
    2.63 +            id = emelfm2.desktop
    2.64 +        }
    2.65 +        Button {
    2.66 +            id = xterm.desktop
    2.67 +        }
    2.68 +        Button {
    2.69 +            id = firefox.desktop
    2.70 +        }
    2.71 +    }
    2.72 +}
    2.73 +
    2.74 +Plugin {
    2.75 +    type = space
    2.76 +    Config {
    2.77 +        Size = 4
    2.78 +    }
    2.79 +}
    2.80 +
    2.81 +Plugin {
    2.82 +    type = wincmd
    2.83 +    Config {
    2.84 +        Button1 = iconify
    2.85 +        Button2 = shade
    2.86 +    }
    2.87 +}
    2.88 +
    2.89 +Plugin {
    2.90 +    type = space
    2.91 +    Config {
    2.92 +        Size = 4
    2.93 +    }
    2.94 +}
    2.95 +
    2.96 +Plugin {
    2.97 +    type = deskno
    2.98 +}
    2.99 +
   2.100 +Plugin {
   2.101 +    type = space
   2.102 +    Config {
   2.103 +        Size = 2
   2.104 +    }
   2.105 +}
   2.106 +
   2.107 +Plugin {
   2.108 +    type = volumealsa
   2.109 +}
   2.110 +
   2.111 +Plugin {
   2.112 +    type = netstatus
   2.113 +    Config {
   2.114 +        iface = eth0
   2.115 +        configtool = subox netbox
   2.116 +    }
   2.117 +}
   2.118 +
   2.119 +Plugin {
   2.120 +    type = space
   2.121 +    Config {
   2.122 +        Size = 4
   2.123 +    }
   2.124 +}
   2.125 +
   2.126 +Plugin {
   2.127 +    type = cpu
   2.128 +}
   2.129 +
   2.130 +Plugin {
   2.131 +    type = dclock
   2.132 +    Config {
   2.133 +        ClockFmt = %R
   2.134 +        TooltipFmt = %A %x
   2.135 +        Action = osmo &
   2.136 +        BoldFont = 0
   2.137 +    }
   2.138 +}
   2.139 +
     3.1 --- a/openbox/stuff/openbox/autostart.sh	Tue Mar 11 17:57:04 2008 +0100
     3.2 +++ b/openbox/stuff/openbox/autostart.sh	Tue Mar 11 18:07:14 2008 +0100
     3.3 @@ -14,7 +14,11 @@
     3.4  fi
     3.5  
     3.6  # Login sound.
     3.7 -alsaplayer -i text /usr/share/sounds/login.ogg || continue &
     3.8 +if which alsaplayer >/dev/null; then
     3.9 +	alsaplayer -i text /usr/share/sounds/login.ogg &
    3.10 +fi
    3.11  
    3.12  # Start the panel.
    3.13 -lxpanel || continue &
    3.14 +if which lxpanel >/dev/null; then
    3.15 +	lxpanel --profile openbox &
    3.16 +fi