summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'desktop')
-rw-r--r--desktop/herbstluftwm/README10
-rw-r--r--desktop/herbstluftwm/herbstluftwm.SlackBuild82
-rw-r--r--desktop/herbstluftwm/herbstluftwm.info10
-rw-r--r--desktop/herbstluftwm/slack-desc20
-rw-r--r--desktop/herbstluftwm/xinitrc.herbstluftwm19
5 files changed, 141 insertions, 0 deletions
diff --git a/desktop/herbstluftwm/README b/desktop/herbstluftwm/README
new file mode 100644
index 0000000000..09e6642dbb
--- /dev/null
+++ b/desktop/herbstluftwm/README
@@ -0,0 +1,10 @@
+herbstluftwm is a manual tiling manager for X11, using Xlib and Glib.
+Layout is based on splitting frames into sub-frames, similar to i3 and
+musca. Tags/workspaces can be removed or added at run-time and each
+monitor displays exactly one tag at a time.
+
+Configuration is achieved through bash scripting in the file
+~/.config/herbstluftwm/autostart. An example autostart file is located
+in /etc/xdg/herbstluftwm/ along with example scripts for use with the WM.
+Additional examples are available at http://www.herbstluftwm.org/ along
+with detailed documentation.
diff --git a/desktop/herbstluftwm/herbstluftwm.SlackBuild b/desktop/herbstluftwm/herbstluftwm.SlackBuild
new file mode 100644
index 0000000000..4d1bce0661
--- /dev/null
+++ b/desktop/herbstluftwm/herbstluftwm.SlackBuild
@@ -0,0 +1,82 @@
+#!/bin/sh
+
+# Slackware build script for herbstluftwm
+
+# Written by Ian D. Brunton <iandbrunton@gmail.com>
+
+# This program is free software. It comes without any warranty.
+# Granted WTFPL, Version 2, as published by Sam Hocevar. See
+# http://sam.zoy.org/wtfpl/COPYING for more details.
+
+PRGNAM=herbstluftwm
+VERSION=${VERSION:-0.5.2}
+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"
+fi
+
+set -e
+
+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 {} \;
+
+# make
+make PREFIX=/usr MANDIR=/usr/man DOCDIR=/usr/doc/$PRGNAM-$VERSION || exit 1
+make install DESTDIR=$PKG PREFIX=/usr MANDIR=/usr/man DOCDIR=/usr/doc/$PRGNAM-$VERSION
+
+#strip:
+find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+#gzip manpages:
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
+# Install an xinitrc script
+mkdir -p $PKG/etc/X11/xinit
+cat $CWD/xinitrc.$PRGNAM > $PKG/etc/X11/xinit/xinitrc.$PRGNAM
+chmod 0755 $PKG/etc/X11/xinit/xinitrc.$PRGNAM
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS HACKING MIGRATION $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a doc/*.html $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/desktop/herbstluftwm/herbstluftwm.info b/desktop/herbstluftwm/herbstluftwm.info
new file mode 100644
index 0000000000..95fe10f1bf
--- /dev/null
+++ b/desktop/herbstluftwm/herbstluftwm.info
@@ -0,0 +1,10 @@
+PRGNAM="herbstluftwm"
+VERSION="0.5.2"
+HOMEPAGE="http://www.herbstluftwm.org"
+DOWNLOAD="http://herbstluftwm.org/tarballs/herbstluftwm-0.5.2.tar.gz"
+MD5SUM="4cbbe35ac36279cb7d1b955bea02ca70"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Ian D. Brunton"
+EMAIL="iandbrunton@gmail.com"
diff --git a/desktop/herbstluftwm/slack-desc b/desktop/herbstluftwm/slack-desc
new file mode 100644
index 0000000000..5486a58685
--- /dev/null
+++ b/desktop/herbstluftwm/slack-desc
@@ -0,0 +1,20 @@
+# 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------------------------------------------------------|
+herbstluftwm: herbstluftwm (manual tiling window manager)
+herbstluftwm:
+herbstluftwm: herbstluftwm is a manual tiling window manager for X11 using Xlib and
+herbstluftwm: Glib. Layout is based on splitting frames into sub-frames, similar
+herbstluftwm: to i3/musca. Tags/workspaces can be removed or added at run-time.
+herbstluftwm: Configuration is written in bash script.
+herbstluftwm:
+herbstluftwm: homepage: http://www.herbstluftwm.org/
+herbstluftwm:
+herbstluftwm:
+herbstluftwm:
+
diff --git a/desktop/herbstluftwm/xinitrc.herbstluftwm b/desktop/herbstluftwm/xinitrc.herbstluftwm
new file mode 100644
index 0000000000..bea7753ecd
--- /dev/null
+++ b/desktop/herbstluftwm/xinitrc.herbstluftwm
@@ -0,0 +1,19 @@
+#!/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 herbstluftwm
+if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
+ exec ck-launch-session dbus-launch --exit-with-session /usr/bin/herbstluftwm
+else
+ exec herbstluftwm
+fi