wok-6.x rev 2894
Add karmen Window manager (the smaller for now...)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue May 05 02:12:07 2009 +0200 (2009-05-05) |
parents | f5c441a85fba |
children | 9eb980078957 |
files | karmen/receipt karmen/stuff/etc/xdg/karmen/autostart.sh karmen/stuff/etc/xdg/karmen/wbar karmen/stuff/karmen-conf karmen/stuff/karmen-session |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/karmen/receipt Tue May 05 02:12:07 2009 +0200 1.3 @@ -0,0 +1,53 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="karmen" 1.7 +VERSION="0.15" 1.8 +CATEGORY="x-window" 1.9 +SHORT_DESC="Very light and minimalistic window manager for X." 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.12 +WEB_SITE="http://karmen.sourceforge.net/" 1.13 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.14 +DEPENDS="xorg-libX11 xorg-xsetroot wbar" 1.15 +BUILD_DEPENDS="xorg-libX11-dev" 1.16 +TAGS="wm window-manager" 1.17 + 1.18 +# Rules to configure and make the package. 1.19 +compile_rules() 1.20 +{ 1.21 + cd $src 1.22 + ./configure --prefix=/usr && 1.23 + make && 1.24 + make DESTDIR=$PWD/_pkg install 1.25 +} 1.26 + 1.27 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.28 +genpkg_rules() 1.29 +{ 1.30 + mkdir -p $fs/usr 1.31 + cp -a $_pkg/usr/bin $fs/usr 1.32 + # Custom configuration and scripts. 1.33 + cp -a stuff/karmen-session $fs/usr/bin 1.34 + cp -a stuff/karmen-conf $fs/usr/bin 1.35 + cp -a stuff/etc $fs 1.36 + chown 0.0 $fs/usr/bin/* 1.37 +} 1.38 + 1.39 +post_install() 1.40 +{ 1.41 + res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//` 1.42 + # Adding WM to SLIM available sessions. 1.43 + if ! echo "$res" | grep -q $PACKAGE; then 1.44 + echo -n "Adding $PACKAGE to /etc/slim.conf..." 1.45 + sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf 1.46 + status 1.47 + fi 1.48 +} 1.49 + 1.50 +post_remove() 1.51 +{ 1.52 + # Remove WM from SLIM available sessions. 1.53 + if grep -q $PACKAGE $1/etc/slim.conf; then 1.54 + sed -i s/,$PACKAGE// $1/etc/slim.conf 1.55 + fi 1.56 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/karmen/stuff/etc/xdg/karmen/autostart.sh Tue May 05 02:12:07 2009 +0200 2.3 @@ -0,0 +1,13 @@ 2.4 +# This script is executed before Karmen session starts on SliTaz. 2.5 +# 2.6 + 2.7 +# Background color. 2.8 +xsetroot -solid grey4 & 2.9 + 2.10 +# Cursor setting. 2.11 +xsetroot -cursor_name arrow 2.12 + 2.13 +# Wbar icons panel with a custom config file for Karmen providing 2.14 +# a settings and logout function. 2.15 +(sleep 2 && wbar -config $HOME/.config/karmen/wbar -pos top center \ 2.16 + -jumpf 0 -zoomf 1.8 -isize 24 -bpress -balfa 0) &
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/karmen/stuff/etc/xdg/karmen/wbar Tue May 05 02:12:07 2009 +0200 3.3 @@ -0,0 +1,16 @@ 3.4 +# The Bar && Font 3.5 +i: /usr/share/wbar/iconpack/osxbarback.png 3.6 +t: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans/12 3.7 +c: 3.8 + 3.9 +i: /usr/share/pixmaps/xterm.png 3.10 +c: /usr/bin/xterm 3.11 +t: Terminal 3.12 + 3.13 +i: /usr/share/pixmaps/preferences.png 3.14 +c: /usr/bin/xterm -e 'karmen-conf' 3.15 +t: Karmen configuration 3.16 + 3.17 +i: /usr/share/pixmaps/logout.png 3.18 +c: /usr/bin/killall karmen 3.19 +t: Logout
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/karmen/stuff/karmen-conf Tue May 05 02:12:07 2009 +0200 4.3 @@ -0,0 +1,46 @@ 4.4 +#!/bin/sh 4.5 +# 4.6 +# 4.7 +: ${DIALOG=dialog} 4.8 + 4.9 +CONFIG_DIR="$HOME/.config/karmen" 4.10 + 4.11 +# Dialog menu. 4.12 +exec 3>&1 4.13 +value=`$DIALOG --clear \ 4.14 +--title " Karmen settings " \ 4.15 +--menu "" 15 70 5 \ 4.16 +"autostart" "Autostarted applications" \ 4.17 +"wbar" "Wbat icons panel configuration" \ 4.18 +"quit" "Exit Karmen configuration" \ 4.19 +2>&1 1>&3` 4.20 +retval=$? 4.21 +exec 3>&- 4.22 +case $retval in 4.23 + 0) 4.24 + continue ;; 4.25 + 1) 4.26 + echo "Cancel pressed." 4.27 + exit 0 ;; 4.28 + 255) 4.29 + if test -n "$value"; then 4.30 + echo "$value" 4.31 + else 4.32 + echo "ESC pressed." 4.33 + exit 0 4.34 + fi ;; 4.35 +esac 4.36 + 4.37 +case $value in 4.38 + autostart) 4.39 + nano $CONFIG_DIR/autostart.sh 4.40 + exec $PWD/karmen-dialog ;; 4.41 + wbar) 4.42 + nano $CONFIG_DIR/wbar 4.43 + exec $PWD/karmen-dialog ;; 4.44 + quit) 4.45 + continue ;; 4.46 +esac 4.47 + 4.48 +exit 0 4.49 +
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/karmen/stuff/karmen-session Tue May 05 02:12:07 2009 +0200 5.3 @@ -0,0 +1,22 @@ 5.4 +#!/bin/sh 5.5 +# 5.6 +# Start Karmen X session on SliTaz 5.7 +# 5.8 + 5.9 +CONFIG_DIR="$HOME/.config/karmen" 5.10 +AUTOSTART_SCRIPT="${CONFIG_DIR}/autostart.sh" 5.11 + 5.12 +# These file are provided by SliTaz to provide a better experience 5.13 +# with Karmen. Autostart script for applications and Wbar with a logout 5.14 +# icon. 5.15 +if [ ! -d "$CONFIG_DIR" ]; then 5.16 + cp -a /etc/xdg/karmen $CONFIG_DIR 5.17 +fi 5.18 + 5.19 +# Source autostarted applications. 5.20 +. $AUTOSTART_SCRIPT 5.21 + 5.22 +# Execute the Window manager. 5.23 +exec karmen 5.24 + 5.25 +exit 0