desktop/wmfs: Added (dynamic tiling window manager)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
ad3f3308e8
commit
5f21d4dff2
|
@ -0,0 +1,8 @@
|
|||
wmfs (Window Manager From Scratch) is a lightweight and highly
|
||||
configurable tiling window manager for X. It can be configured
|
||||
with a configuration file, supports Xft (Freetype) fonts, and
|
||||
is compliant with the Extended Window Manager Hints (EWMH) spec,
|
||||
Xinerama, and Xrandr. wmfs can be driven with Vi based commands
|
||||
(Viwmfs). wmfs also comes with a built-in systray.
|
||||
|
||||
This requires imlib2.
|
|
@ -0,0 +1,10 @@
|
|||
config() {
|
||||
NEW="$1"
|
||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||
if [ ! -r $OLD ]; then
|
||||
mv $NEW $OLD
|
||||
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
|
||||
rm $NEW
|
||||
fi
|
||||
}
|
||||
config etc/wmfs/wmfsrc.new
|
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|'
|
||||
# on the right side marks the last column you can put a character in. You must
|
||||
# make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
wmfs: wmfs (dynamic tiling window manager)
|
||||
wmfs:
|
||||
wmfs: wmfs (Window Manager From Scratch) is a lightweight and highly
|
||||
wmfs: configurable tiling window manager for X. It supports Freetype
|
||||
wmfs: (Xft) fonts and is compliant with the Extended Window Manager
|
||||
wmfs: Hints (EWMH) specifications, Xinerama, and Xrandr.
|
||||
wmfs:
|
||||
wmfs:
|
||||
wmfs:
|
||||
wmfs:
|
||||
wmfs:
|
|
@ -0,0 +1,89 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for wmfs
|
||||
|
||||
# Written by Benjamin Trigona-Harany <bosth@alumni.sfu.ca>
|
||||
|
||||
PRGNAM=wmfs
|
||||
VERSION=${VERSION:-201104}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -e # Exit on most errors
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
-exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
./configure \
|
||||
--prefix /usr \
|
||||
--man-prefix /usr/man \
|
||||
--xdg-config-dir /etc
|
||||
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
# Don't clobber the default config
|
||||
mv $PKG/etc/wmfs/wmfsrc $PKG/etc/wmfs/wmfsrc.new
|
||||
|
||||
# KDM menu entry
|
||||
mkdir -p $PKG/usr/share/apps/kdm/sessions
|
||||
ln -s /usr/share/xsessions/wmfs.desktop $PKG/usr/share/apps/kdm/sessions/
|
||||
|
||||
# Install an xinitrc script
|
||||
mkdir -p $PKG/etc/X11/xinit
|
||||
cat $CWD/xinitrc.wmfs > $PKG/etc/X11/xinit/xinitrc.wmfs
|
||||
chmod 0755 $PKG/etc/X11/xinit/xinitrc.wmfs
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
COPYING README TODO rc/* \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="wmfs"
|
||||
VERSION="201104"
|
||||
HOMEPAGE="http://wmfs.info/projects/wmfs"
|
||||
DOWNLOAD="http://wmfs.info/attachments/download/45/wmfs-201104.tar.gz"
|
||||
MD5SUM="323fa55885d86783f104f936e6b12c75"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Benjamin Trigona-Harany"
|
||||
EMAIL="bosth@alumni.sfu.ca"
|
||||
APPROVED="rworkman"
|
|
@ -0,0 +1,20 @@
|
|||
#!/bin/sh
|
||||
|
||||
userresources=$HOME/.Xresources
|
||||
usermodmap=$HOME/.Xmodmap
|
||||
sysresources=/etc/X11/xinit/.Xresources
|
||||
sysmodmap=/etc/X11/xinit/.Xmodmap
|
||||
|
||||
# Merge in defaults and keymaps
|
||||
[ -f $sysresources ] && /usr/bin/xrdb -merge $sysresources
|
||||
[ -f $sysmodmap ] && /usr/bin/xmodmap $sysmodmap
|
||||
[ -f $userresources ] && /usr/bin/xrdb -merge $userresources
|
||||
[ -f $usermodmap ] && /usr/bin/xmodmap $usermodmap
|
||||
|
||||
# Start wmfs
|
||||
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
|
||||
exec ck-launch-session wmfs
|
||||
else
|
||||
exec wmfs
|
||||
fi
|
||||
|
Loading…
Reference in New Issue