matchbox-theme-bug: Add matchbox themes for buglabs
authorStefan Schmidt <stefan@buglabs.net>
Thu, 11 Nov 2010 14:01:08 +0000 (15:01 +0100)
committerStefan Schmidt <stefan@buglabs.net>
Thu, 20 Jan 2011 13:27:58 +0000 (14:27 +0100)
recipes/buglabs/matchbox-theme-bug-dark.bb [new file with mode: 0644]
recipes/buglabs/matchbox-theme-bug-dark/session [new file with mode: 0755]
recipes/buglabs/matchbox-theme-bug.inc [new file with mode: 0644]
recipes/buglabs/matchbox-theme-bug/session [new file with mode: 0755]
recipes/buglabs/matchbox-theme-bug_0.1.bb [new file with mode: 0644]

diff --git a/recipes/buglabs/matchbox-theme-bug-dark.bb b/recipes/buglabs/matchbox-theme-bug-dark.bb
new file mode 100644 (file)
index 0000000..1377cc5
--- /dev/null
@@ -0,0 +1,6 @@
+DESCRIPTION = "Matchbox window manager dark BUG theme"
+
+THEME_NAME="Bug-Dark"
+PR="r18"
+
+include matchbox-theme-bug.inc
diff --git a/recipes/buglabs/matchbox-theme-bug-dark/session b/recipes/buglabs/matchbox-theme-bug-dark/session
new file mode 100755 (executable)
index 0000000..82cbf6f
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+SHOWCURSOR="no"
+
+matchbox-desktop-2 &
+
+matchbox-panel-2 --titlebar --start-applets showdesktop,windowselector --end-applets clock,battery,systray,startup-notify,notify &
+
+exec matchbox-window-manager -theme Bug-Dark -use_desktop_mode decorated -use_cursor $SHOWCURSOR $@
diff --git a/recipes/buglabs/matchbox-theme-bug.inc b/recipes/buglabs/matchbox-theme-bug.inc
new file mode 100644 (file)
index 0000000..28e0d63
--- /dev/null
@@ -0,0 +1,42 @@
+LICENSE = "CC-BY-SA3"
+DEPENDS = "matchbox-wm"
+SECTION = "x11/wm"
+
+SRCREV=${AUTOREV}
+
+SRC_URI += "svn://bugcamp.net/bug/trunk/;module=com.buglabs.bug.theme/matchbox/${THEME_NAME} \
+            file://session"
+
+FILES_${PN} = "${datadir}/themes/${THEME_NAME} \
+               ${sysconfdir}/matchbox/session"
+
+S = ${WORKDIR}/com.buglabs.bug.theme/matchbox/${THEME_NAME}
+
+REQUIRES = "matchbox-sato"
+
+do_install() {
+    install -m 0755 -d ${D}${datadir}/themes/${THEME_NAME}/matchbox
+    install -m 0755 -d ${D}${datadir}/themes/${THEME_NAME}/gtk-2.0
+
+    install -m 0644 ${S}/index.theme ${D}${datadir}/themes/${THEME_NAME}/
+    install -m 0644 ${S}/gtk-2.0/*.png ${D}${datadir}/themes/${THEME_NAME}/gtk-2.0/
+    install -m 0644 ${S}/gtk-2.0/gtkrc ${D}${datadir}/themes/${THEME_NAME}/gtk-2.0/
+    install -m 0644 ${S}/matchbox/*.png ${D}${datadir}/themes/${THEME_NAME}/matchbox/
+    install -m 0644 ${S}/matchbox/theme.xml ${D}${datadir}/themes/${THEME_NAME}/matchbox/
+    install -m 0755 -d ${D}${sysconfdir}/matchbox
+    install -m 0744 ${WORKDIR}/session ${D}${sysconfdir}/matchbox/session
+}
+
+pkg_postinst_${PN} () {
+       if [ "x$D" != "x" ]; then
+               exit 1
+       fi
+
+       . ${sysconfdir}/init.d/functions
+
+       gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type string --set /desktop/poky/interface/theme ${THEME_NAME}
+       gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type string --set /desktop/poky/interface/icon_theme Bug
+       gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type bool --set /desktop/poky/interface/touchscreen true
+       gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type string --set /desktop/poky/interface/font_name "Sans 9"
+}
+
diff --git a/recipes/buglabs/matchbox-theme-bug/session b/recipes/buglabs/matchbox-theme-bug/session
new file mode 100755 (executable)
index 0000000..82cbf6f
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+SHOWCURSOR="no"
+
+matchbox-desktop-2 &
+
+matchbox-panel-2 --titlebar --start-applets showdesktop,windowselector --end-applets clock,battery,systray,startup-notify,notify &
+
+exec matchbox-window-manager -theme Bug-Dark -use_desktop_mode decorated -use_cursor $SHOWCURSOR $@
diff --git a/recipes/buglabs/matchbox-theme-bug_0.1.bb b/recipes/buglabs/matchbox-theme-bug_0.1.bb
new file mode 100644 (file)
index 0000000..f37e858
--- /dev/null
@@ -0,0 +1,6 @@
+DESCRIPTION = "Matchbox window manager red BUG theme"
+
+THEME_NAME="Bug"
+PR = "r2"
+
+include matchbox-theme-bug.inc