From mboxrd@z Thu Jan 1 00:00:00 1970 From: Will Wagner Date: Fri, 14 Oct 2011 15:51:55 +0100 Subject: [Buildroot] [PATCH 3/9] Add openbox window manager In-Reply-To: <1318603921-22899-1-git-send-email-will_wagner@carallon.com> References: <1318603921-22899-1-git-send-email-will_wagner@carallon.com> Message-ID: <1318603921-22899-4-git-send-email-will_wagner@carallon.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Another X window manager, this one is very minimalist and has few dependancies Signed-off-by: Will Wagner --- package/Config.in | 1 + package/openbox/Config.in | 20 +++ package/openbox/openbox.mk | 25 ++++ package/openbox/rc.xml | 337 ++++++++++++++++++++++++++++++++++++++++++++ package/openbox/themerc | 159 +++++++++++++++++++++ 5 files changed, 542 insertions(+), 0 deletions(-) create mode 100644 package/openbox/Config.in create mode 100644 package/openbox/openbox.mk create mode 100644 package/openbox/rc.xml create mode 100644 package/openbox/themerc diff --git a/package/Config.in b/package/Config.in index 8b9c816..28cd36f 100644 --- a/package/Config.in +++ b/package/Config.in @@ -128,6 +128,7 @@ source "package/matchbox/Config.in" source "package/metacity/Config.in" source "package/blackbox/Config.in" source "package/fluxbox/Config.in" +source "package/openbox/Config.in" comment "X applications" source "package/alsamixergui/Config.in" diff --git a/package/openbox/Config.in b/package/openbox/Config.in new file mode 100644 index 0000000..f1ae363 --- /dev/null +++ b/package/openbox/Config.in @@ -0,0 +1,20 @@ +config BR2_PACKAGE_OPENBOX + bool "openbox" + depends on BR2_PACKAGE_XORG7 + select BR2_PACKAGE_XLIB_LIBX11 + select BR2_PACKAGE_LIBGLIB2 + select BR2_PACKAGE_PANGO + select BR2_PACKAGE_LIBXML2 + help + Openbox is a highly configurable, next generation + window manager with extensive standards support. + + http://openbox.org/wiki/Main_Page + +config BR2_PACKAGE_OPENBOX_SIMPLE + bool "simple openbox config" + depends on BR2_PACKAGE_OPENBOX + help + This will remove the default openbox + configuration files and themes, + replacing them with a very simple one diff --git a/package/openbox/openbox.mk b/package/openbox/openbox.mk new file mode 100644 index 0000000..cfc6976 --- /dev/null +++ b/package/openbox/openbox.mk @@ -0,0 +1,25 @@ +############################################################# +# +# openbox +# +############################################################# + +OPENBOX_VERSION:=3.4.11 +OPENBOX_SOURCE:=openbox-$(OPENBOX_VERSION).tar.gz +OPENBOX_SITE:=http://openbox.org/dist/openbox/ + +OPENBOX_DEPENDENCIES:=xlib_libX11 libglib2 pango libxml2 + +ifeq ($(BR2_PACKAGE_OPENBOX_SIMPLE),y) + define OPENBOX_SIMPLE_CONFIG + rm $(TARGET_DIR)/etc/xdg/openbox/menu.xml + cp package/openbox/rc.xml $(TARGET_DIR)/etc/xdg/openbox/rc.xml + rm -rf $(TARGET_DIR)/usr/share/themes/* + mkdir -p $(TARGET_DIR)/usr/share/themes/Clearlooks/openbox-3 + cp package/openbox/themerc $(TARGET_DIR)/usr/share/themes/Clearlooks/openbox-3/ + endef + + OPENBOX_POST_INSTALL_TARGET_HOOKS += OPENBOX_SIMPLE_CONFIG +endif + +$(eval $(call AUTOTARGETS)) \ No newline at end of file diff --git a/package/openbox/rc.xml b/package/openbox/rc.xml new file mode 100644 index 0000000..3b9ac55 --- /dev/null +++ b/package/openbox/rc.xml @@ -0,0 +1,337 @@ + + + + + + + + 10 + 20 + + + + yes + + no + + yes + + no + + 200 + + no + + + + + Smart + +
yes
+ + Active + + 1 + +
+ + + Clearlooks + LC + + yes + yes + + sans + 8 + + bold + + normal + + + + sans + 8 + + bold + + normal + + + + sans + 9 + + normal + + normal + + + + sans + 9 + + normal + + normal + + + + sans + 9 + + bold + + normal + + + + + + + 1 + 1 + + + + 0 + + + + + yes + Nonpixel + + Center + + + + + 10 + + 10 + + + + + + + 0 + 0 + 0 + 0 + + + + TopLeft + + 0 + 0 + no + Above + + Vertical + + no + 300 + + 300 + + Middle + + + + + + + + + + + + + 8 + + 200 + + 400 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + top + + + + + + + + + + left + + + + + + + + + + right + + + + + + + + + + bottom + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + no + + no + + + + + + +
diff --git a/package/openbox/themerc b/package/openbox/themerc new file mode 100644 index 0000000..1dde5fb --- /dev/null +++ b/package/openbox/themerc @@ -0,0 +1,159 @@ +!# Clearlooks-Evolving +!# Clearlooks as it evolves in gnome-svn... +!# Last updated 19/01/08 + +# Fonts +# these are really halos, but who cares? + +*.font: shadow=n +window.active.label.text.font:shadow=y:shadowtint=25:shadowoffset=1 +window.inactive.label.text.font:shadow=y:shadowtint=00:shadowoffset=0 +menu.items.font:shadow=y:shadowtint=0:shadowoffset=1 + +!# general stuff + +border.width: 1 +padding.width: 3 +padding.height: 2 +window.handle.width: 3 +window.client.padding.width: 0 +menu.overlap: 2 +*.justify: center + +!# lets set our damn shadows here, eh? + +*.bg.highlight: 50 +*.bg.shadow: 05 + +window.active.title.bg.highlight: 40 +window.active.title.bg.shadow: 00 + +window.inactive.title.bg.highlight: 30 +window.inactive.title.bg.shadow: 00 + +window.*.grip.bg.highlight: 50 +window.*.grip.bg.shadow: 30 + +window.*.handle.bg.highlight: 50 +window.*.handle.bg.shadow: 30 + +!# Menu settings + +menu.border.color: #aaaaaa +menu.border.width: 1 + +menu.title.bg: solid flat +menu.title.bg.color: #E6E7E6 +menu.title.text.color: #111111 + +menu.items.bg: Flat Solid +menu.items.bg.color: #ffffff +menu.items.text.color: #111111 +menu.items.disabled.text.color: #aaaaaa + +menu.items.active.bg: Flat Gradient splitvertical border + +menu.items.active.bg.color: #97b8e2 +menu.items.active.bg.color.splitTo: #a8c5e9 + +menu.items.active.bg.colorTo: #91b3de +menu.items.active.bg.colorTo.splitTo: #80a7d6 +menu.items.active.bg.border.color: #4b6e99 +menu.items.active.text.color: #ffffff + +!# set handles here and only the once? + +window.*.handle.bg: Raised solid +window.*.handle.bg.color: #eaebec + +window.*.grip.bg: Raised solid +window.*.grip.bg.color: #eaebec + +!# Active + +!# no handles - kind of closer to the clearlooks border, maybe? +!#window.active.border.color: #455d7c + +window.*.border.color: #585a5d + +window.active.title.separator.color: #4e76a8 + +*.title.bg: Raised Gradient splitvertical +*.title.bg.color: #8CB0DC +*.title.bg.color.splitTo: #99BAE3 +*.title.bg.colorTo: #86ABD9 +*.title.bg.colorTo.splitTo: #7AA1D1 + +window.active.label.bg: Parentrelative +window.active.label.text.color: #ffffff + +window.active.button.*.bg: Flat Gradient splitvertical Border + +window.active.button.*.bg.color: #92B4DF +window.active.button.*.bg.color.splitTo: #B0CAEB +window.active.button.*.bg.colorTo: #86ABD9 +window.active.button.*.bg.colorTo.splitTo: #769FD0 + +window.active.button.*.bg.border.color: #49678B +window.active.button.*.image.color: #F4F5F6 + +window.active.button.hover.bg.color: #b5d3ef +window.active.button.hover.bg.color.splitTo: #b5d3ef +window.active.button.hover.bg.colorTo: #9cbae7 +window.active.button.hover.bg.colorTo.splitTo: #8caede +window.active.button.hover.bg.border.color: #4A658C +window.active.button.hover.image.color: #ffffff + +window.active.button.pressed.bg: Flat solid Border +window.active.button.pressed.bg.color: #7aa1d2 + +window.active.button.hover.bg.border.color: #4A658C + +!# inactive + +!#window.inactive.border.color: #7e8285 +window.inactive.title.separator.color: #96999d + +window.inactive.title.bg: Raised Gradient splitvertical +window.inactive.title.bg.color: #E3E2E0 +window.inactive.title.bg.color.splitTo: #EBEAE9 +window.inactive.title.bg.colorTo: #DEDCDA +window.inactive.title.bg.colorTo.splitTo: #D5D3D1 + +window.inactive.label.bg: Parentrelative +window.inactive.label.text.color: #70747d + +window.inactive.button.*.bg: Flat Gradient splitVertical Border +window.inactive.button.*.bg.color: #ffffff +window.inactive.button.*.bg.color.splitto: #ffffff +window.inactive.button.*.bg.colorTo: #F9F8F8 +window.inactive.button.*.bg.colorTo.splitto: #E9E7E6 +window.inactive.button.*.bg.border.color: #928F8B +window.inactive.button.*.image.color: #6D6C6C + + +!# osd (pop ups and what not, dock?) + +osd.border.width: 1 +osd.border.color: #999 + +osd.bg: flat border gradient splitvertical +osd.bg.color: #F0EFEE +osd.bg.color.splitto: #f5f5f4 +osd.bg.colorTo: #EAEBEC +osd.bg.colorTo.splitto: #E7E5E4 + +osd.bg.border.color: #ffffff + +osd.label.bg: parentrelative +osd.label.bg.color: #efefef +osd.label.bg.border.color: #9c9e9c + +osd.label.text.color: #444 +!# yeah whatever, this is fine anyhoo? +osd.hilight.bg: flat vertical gradient +osd.hilight.bg.color: #9ebde5 +osd.hilight.bg.colorTo: #749dcf +osd.unhilight.bg: flat vertical gradient +osd.unhilight.bg.color: #BABDB6 +osd.unhilight.bg.colorTo: #efefef -- 1.7.2.5