Skip to content

Commit

Permalink
matchbox-theme-bug: Add matchbox themes for buglabs
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Schmidt committed Jan 20, 2011
1 parent b203a05 commit 904e9ad
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 0 deletions.
6 changes: 6 additions & 0 deletions recipes/buglabs/matchbox-theme-bug-dark.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
DESCRIPTION = "Matchbox window manager dark BUG theme"

THEME_NAME="Bug-Dark"
PR="r18"

include matchbox-theme-bug.inc
9 changes: 9 additions & 0 deletions recipes/buglabs/matchbox-theme-bug-dark/session
Original file line number Diff line number Diff line change
@@ -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 $@
42 changes: 42 additions & 0 deletions recipes/buglabs/matchbox-theme-bug.inc
Original file line number Diff line number Diff line change
@@ -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"
}

9 changes: 9 additions & 0 deletions recipes/buglabs/matchbox-theme-bug/session
Original file line number Diff line number Diff line change
@@ -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 $@
6 changes: 6 additions & 0 deletions recipes/buglabs/matchbox-theme-bug_0.1.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
DESCRIPTION = "Matchbox window manager red BUG theme"

THEME_NAME="Bug"
PR = "r2"

include matchbox-theme-bug.inc

0 comments on commit 904e9ad

Please sign in to comment.