aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/matchbox2/matchbox2
diff options
context:
space:
mode:
authorStanislav Brabec <utx@penguin.cz>2009-09-22 23:36:32 +0000
committerutx@penguin.cz <utx@penguin.cz>2009-09-22 23:36:32 +0000
commit3bcf3726467d678126952436b80f4a10c2184c4d (patch)
treedec42459f0732cb88b54aac55afd7ac8431d5c4e /recipes/matchbox2/matchbox2
parent1e4dc820bb189c367daddd07643c0146122823c0 (diff)
downloadopenembedded-3bcf3726467d678126952436b80f4a10c2184c4d.tar.gz
matchbox2: Make it working:
* fixed known crashers * created usable icon theme * provided session script
Diffstat (limited to 'recipes/matchbox2/matchbox2')
-rw-r--r--recipes/matchbox2/matchbox2/defaults.in43
-rw-r--r--recipes/matchbox2/matchbox2/matchbox-session-2.in81
2 files changed, 124 insertions, 0 deletions
diff --git a/recipes/matchbox2/matchbox2/defaults.in b/recipes/matchbox2/matchbox2/defaults.in
new file mode 100644
index 0000000000..cc81daf0e4
--- /dev/null
+++ b/recipes/matchbox2/matchbox2/defaults.in
@@ -0,0 +1,43 @@
+# Defaults for matchbox2: @sysconfdir@/matchbox2/defaults or ~/.matchbox2/defaults
+# It is read only if nor /etc/matchbox2/session nor ~/.matchbox2/session exists
+
+# Which launchers should be added to autolauncher:
+LAUNCHERS="BROWSER MAILER VIEWER NAVIGATION TERMINAL"
+
+# Menus for particular autolaunchers (name of variable with trailing "S", first available wins)
+BROWSERS="midori fennec kazehakase minimo gpe-mini-browser links firefox"
+MAILERS="balsa claws-mail"
+VIEWERS="gqview gpe-gallery"
+NAVIGATIONS="tangogps navit gpsdrive viking"
+TERMINALS="vte rxvt xterm"
+
+# Available applets:
+# autolauncher (virtual launcher applet set defined above)
+# battery (battery status, if APM or ACPI is available)
+# brightness (brigthess display and setup, if available)
+# clock (clock)
+# launcher:desktop (laucher of .desktop files)
+# notify (notification box)
+# showdesktop (show launchers on matchbox desktop)
+# startup (hourglass startup notification)
+# startup-notify (notification message on startup)
+# systray (system tray)
+# windowselector[:[static-icon|dynamic-icon|icon-name|name]] (selector of existing windows)
+#
+# Applets on the left/top side:
+START_APPLETS="showdesktop autolauncher startup"
+# Applets on the right/bottom side:
+END_APPLETS="windowselector clock battery systray"
+# Use autolauncher for set of launchers defined above.
+
+# Available matchbox window managers:
+# (simple|maemo)
+MATCHBOX_WM="simple"
+
+# generic options for particular components:
+# (see respective --help)
+WM_OPTIONS=""
+DESKTOP_OPTIONS=""
+PANEL_OPTIONS="--titlebar"
+
+# and here you can run anything you want
diff --git a/recipes/matchbox2/matchbox2/matchbox-session-2.in b/recipes/matchbox2/matchbox2/matchbox-session-2.in
new file mode 100644
index 0000000000..6e13fe0d69
--- /dev/null
+++ b/recipes/matchbox2/matchbox2/matchbox-session-2.in
@@ -0,0 +1,81 @@
+#!/bin/sh
+
+# running desktop-specific daemons in system-wide init is a mis-conception:
+killall mb-applet-startup-monitor 2>/dev/null
+
+# This should be resourced elsewhere:
+if [ -e /etc/profile ]
+then
+. /etc/profile
+fi
+if [ -e $HOME/profile ]
+then
+. $HOME/.profile
+fi
+
+if [ -e $HOME/.matchbox2/session ]
+then
+ exec $HOME/.matchbox2/session
+fi
+if [ -e @sysconfdir@/matchbox2/session ]
+then
+ exec @sysconfdir@/matchbox2/session
+fi
+
+if [ -e @sysconfdir@/matchbox2/defaults ]
+then
+ . @sysconfdir@/matchbox2/defaults
+fi
+if [ -e $HOME/.matchbox2/defaults ]
+then
+ . $HOME/.matchbox2/defaults
+fi
+
+for LAUNCHER in $LAUNCHERS ; do
+ eval MENU\=\""\$${LAUNCHER}S"\"
+ for APP in $MENU ; do
+ if test -f @datadir@/applications/$APP.desktop ; then
+ AUTOLAUNCHER_APPLETS="$AUTOLAUNCHER_APPLETS launcher:$APP"
+ break
+ fi
+ done
+done
+
+AUTOLAUNCHER_CMD=""
+for APPLET in $AUTOLAUNCHER_APPLETS ; do
+ if test -z "$AUTOLAUNCHER_CMD" ; then
+ AUTOLAUNCHER_CMD="$APPLET"
+ else
+ AUTOLAUNCHER_CMD="$AUTOLAUNCHER_CMD,$APPLET"
+ fi
+done
+START_CMD=""
+for APPLET in $START_APPLETS ; do
+ if test "$APPLET" = "autolauncher" ; then
+ APPLET="$AUTOLAUNCHER_CMD"
+ fi
+ if test -z "$START_CMD" ; then
+ START_CMD=" --start-applets=$APPLET"
+ else
+ START_CMD="$START_CMD,$APPLET"
+ fi
+done
+END_CMD=""
+for APPLET in $END_APPLETS ; do
+ if test "$APPLET" = "autolauncher" ; then
+ APPLET="$AUTOLAUNCHER_CMD"
+ fi
+ if test -z "$END_CMD" ; then
+ END_CMD=" --end-applets=$APPLET"
+ else
+ END_CMD="$END_CMD,$APPLET"
+ fi
+done
+
+PANEL_OPTIONS="$PANEL_OPTIONS$START_CMD$END_CMD"
+
+matchbox-panel-2 $PANEL_OPTIONS &
+sleep 2
+# matchbox-desktop-2 does not resize. Run it last.
+( sleep 5 ; matchbox-desktop-2 $DESKTOP_OPTIONS )&
+exec matchbox-window-manager-2-$MATCHBOX_WM $WM_OPTIONS $@