# HG changeset patch # User Christophe Lincoln # Date 1334937867 -7200 # Node ID 612c43caa4ec0fc36c0296d04fe394776cb0aa59 # Parent e666c5086b541440d98575f1afae05cbaa025de0 jwm: better integration and use XDG xsession diff -r e666c5086b54 -r 612c43caa4ec jwm/receipt --- a/jwm/receipt Fri Apr 20 18:02:26 2012 +0200 +++ b/jwm/receipt Fri Apr 20 18:04:27 2012 +0200 @@ -8,11 +8,12 @@ TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://www.joewing.net/programs/jwm/" WGET_URL="http://www.joewing.net/programs/jwm/releases/$TARBALL" -CONFIG_FILES="/etc/jwm/system.jwmrc" TAGS="wm window-manager" -DEPENDS="xorg slitaz-configs" -BUILD_DEPENDS="xorg-dev xorg-libXft-dev jpeg-dev" +DEPENDS="xorg-libX11 xorg-libXft xorg-libXrender xorg-libXpm xorg-libXext \ +xorg-libXmu xorg-libXinerama xorg-libXau xorg-libXdmcp xorg-libXt libjpeg \ +libpng slitaz-configs-base xorg-xload xorg-xclock nano" +BUILD_DEPENDS="xorg-dev xorg-libXft-dev jpeg-dev libpng-dev" # Rules to configure and make the package. compile_rules() @@ -23,7 +24,7 @@ ./configure \ --prefix=/usr \ --mandir=/usr/share/man \ - --sysconfdir=/etc/jwm \ + --sysconfdir=/etc/xdg/jwm \ --disable-fribidi \ $CONFIGURE_ARGS && make @@ -32,15 +33,20 @@ # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/bin $fs/etc/jwm + mkdir -p $fs/usr/bin $fs/etc/xdg/jwm $fs/usr/share cp -a $src/src/jwm $fs/usr/bin # Simple and default config file. - cp $stuff/simple.jwmrc $fs/etc/jwm/simple.jwmrc - cp $stuff/slitaz.jwmrc $fs/etc/jwm/system.jwmrc + cp $stuff/simple.jwmrc $fs/etc/xdg/jwm/simple.jwmrc + cp $stuff/slitaz.jwmrc $fs/etc/xdg/jwm/system.jwmrc + cp -r $stuff/xsessions $fs/usr/share } post_install() { + if [ -d "$1/etc/jwm" ]; then + echo "Removing old system wide configs: $1/etc/jwm" + rm -rf $1/etc/jwm + fi res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//) # Adding WM to SLIM available sessions. if ! echo "$res" | grep -q $PACKAGE; then diff -r e666c5086b54 -r 612c43caa4ec jwm/stuff/jwmbgconf --- a/jwm/stuff/jwmbgconf Fri Apr 20 18:02:26 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,79 +0,0 @@ -#!/bin/sh -# -# Gtkdialog box to change JWM backgroud. -# - SliTaz GNU/Linux 2008. -# -VERSION=20080305 - -# Get current image zype and path. -LINE=`cat ~/.jwmrc | grep -w '^ - - - - - - sed -i s#$BG_PATH#$NEW_PATH# $HOME/.jwmrc - echo 50; jwm -restart; echo 100 - ACTION - - -' - -# Image type, path and reload button. We use \" to be Ash compatible. -# -export BG_DIALOG=" - - - - - - - - - - $BG_PATH - NEW_PATH - - - - - - - - - - - -" - -# Execute main dialog. -gtkdialog --program=BG_DIALOG - -exit 0 diff -r e666c5086b54 -r 612c43caa4ec jwm/stuff/slitaz.jwmrc --- a/jwm/stuff/slitaz.jwmrc Fri Apr 20 18:02:26 2012 +0200 +++ b/jwm/stuff/slitaz.jwmrc Fri Apr 20 18:04:27 2012 +0200 @@ -2,41 +2,58 @@ - - - - terminal - - - terminal -e nano - terminal -e retawq - - - - - - + + + + + + xload -nolabel -bg black -fg grey -hl orange + + + terminal -e top + + + + + terminal -e retawq + + + terminal -e "(pscan localhost; read i)" + + + terminal -e tazpkg shell + terminal -e nano + terminal + + + + reboot + reboot + + + - root:1 + root:1 + root:3 - showdesktop + - + - + - + - + + xload -nolabel -bg black -fg grey -hl orange + xclock @@ -48,7 +65,7 @@ FreeSans-9:bold 4 - 24 + 26 #cfcfcf @@ -68,7 +85,7 @@ - FreeSans-11:bold + FreeSans-9:bold black gray80:gray90 black @@ -78,7 +95,7 @@ FreeSans-11:bold - gray90 + #f9f7f3 black 0.75 @@ -86,33 +103,31 @@ black gray90 - #808488 + #666666 #70849d #2e3a67 - FreeSans-12:bold + FreeSans-10:bold black - gray90 + #f9f7f3 white - #70849d:#2e3a67 + #7A6753:#443b31 0.85 - FreeSans-10 - black + FreeSans-16 + #dddddd black - yellow + #f9f7f3 - - $HOME/Images/Icons - - - /usr/share/pixmaps - + $HOME/.icons + /usr/share/pixmaps + /usr/share/icons/SliTaz/apps/22 + /usr/share/icons/SliTaz/categories/22 @@ -128,9 +143,7 @@ - - killall Xorg; clear; sleep 2; clear; echo "JWM exit OK. Press ENTER to continue... " - + 400 @@ -169,4 +182,3 @@ window - diff -r e666c5086b54 -r 612c43caa4ec jwm/stuff/xsessions/jwm.desktop --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jwm/stuff/xsessions/jwm.desktop Fri Apr 20 18:04:27 2012 +0200 @@ -0,0 +1,7 @@ +[Desktop Entry] +Encoding=UTF-8 +Type=XSession +Name=JWM Desktop +Name[fr]=Bureau JWM +Exec=jwm +