Import x11/windowlab, a very lightweight WM that does click-to-focus but

not raise-on-focus.
ok rfreeman@
This commit is contained in:
bcallah 2013-06-11 22:09:45 +00:00
parent a499318e00
commit a309168df6
7 changed files with 99 additions and 0 deletions

34
x11/windowlab/Makefile Normal file
View File

@ -0,0 +1,34 @@
# $OpenBSD: Makefile,v 1.1.1.1 2013/06/11 22:09:45 bcallah Exp $
COMMENT = small and simple window manager of novel design
DISTNAME = windowlab-1.40
EXTRACT_SUFX = .tar
CATEGORIES = x11
HOMEPAGE = http://nickgravgaard.com/windowlab/
MAINTAINER = Brian Callahan <bcallah@openbsd.org>
# GPLv2+
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += X11 Xext Xft c
MASTER_SITES = http://nickgravgaard.com/windowlab/
USE_GMAKE = Yes
MAKE_FLAGS = SYSCONFDIR=${SYSCONFDIR}/X11/windowlab
NO_TEST = Yes
post-patch:
mv ${WRKSRC}/windowlab.1x ${WRKSRC}/windowlab.1
perl -pi -e s/1x/1/g ${WRKSRC}/windowlab.1
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/windowlab ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/windowlab/
${INSTALL_DATA} ${WRKSRC}/windowlab.menurc ${PREFIX}/share/examples/windowlab
${INSTALL_MAN} ${WRKSRC}/windowlab.1 ${PREFIX}/man/man1
.include <bsd.port.mk>

2
x11/windowlab/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (windowlab-1.40.tar) = jWgxpLhIut+C0fNK9uRdyBTTDudRc7UvFxclTTCXpLs=
SIZE (windowlab-1.40.tar) = 174080

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2013/06/11 22:09:45 bcallah Exp $
--- Makefile.orig Sun Jun 9 20:53:53 2013
+++ Makefile Sun Jun 9 20:54:20 2013
@@ -30,13 +30,13 @@ endif
DEFINES += -DDEF_MENURC="\"$(MENURC)\""
# Uncomment to add MWM hints support
-#DEFINES += -DMWM_HINTS
+DEFINES += -DMWM_HINTS
# Uncomment to add freetype support (requires XFree86 4.0.2 or later)
# This needs -lXext above, even if you have disabled shape support
-#DEFINES += -DXFT
-#EXTRA_INC += `pkg-config --cflags xft`
-#EXTRA_LIBS += `pkg-config --libs xft`
+DEFINES += -DXFT
+EXTRA_INC += `pkg-config --cflags xft`
+EXTRA_LIBS += `pkg-config --libs xft`
# Uncomment for debugging info (abandon all hope, ye who enter here)
#DEFINES += -DDEBUG

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-menufile_c,v 1.1.1.1 2013/06/11 22:09:45 bcallah Exp $
Silence bogus error; windowlab does what it's supposed to anyway.
--- menufile.c.orig Sun Jun 9 21:29:25 2013
+++ menufile.c Sun Jun 9 21:29:56 2013
@@ -56,7 +56,6 @@ void get_menuitems(void)
// get location of the executable
if ((len = readlink("/proc/self/exe", menurcpath, PATH_MAX - 1)) == -1)
{
- err("readlink() /proc/self/exe failed: %s\n", strerror(errno));
menurcpath[0] = '.';
menurcpath[1] = '\0';
}

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-windowlab_menurc,v 1.1.1.1 2013/06/11 22:09:45 bcallah Exp $
Let windowlab close without manual configuration.
--- windowlab.menurc.orig Sun Jun 9 21:45:06 2013
+++ windowlab.menurc Sun Jun 9 21:45:24 2013
@@ -11,4 +11,4 @@ GIMP:gimp
Edit menu:gvim /etc/X11/windowlab/windowlab.menurc
About:windowlab -about | xmessage -file -
Reload:pkill -HUP windowlab
-Quit:skill windowlab
+Quit:pkill windowlab

9
x11/windowlab/pkg/DESCR Normal file
View File

@ -0,0 +1,9 @@
WindowLab is a small and simple window manager of novel design.
It has a click-to-focus but not raise-on-focus policy, a window resizing
mechanism that allows one or many edges of a window to be changed in one
action, and an innovative menubar that shares the same part of the
screen as the taskbar. Window titlebars are prevented from going off the
edge of the screen by constraining the mouse pointer, and when
appropriate the pointer is also constrained to the taskbar/menubar in
order to make target menu items easier to hit.

7
x11/windowlab/pkg/PLIST Normal file
View File

@ -0,0 +1,7 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/06/11 22:09:45 bcallah Exp $
@bin bin/windowlab
@man man/man1/windowlab.1
share/examples/windowlab/
@sample ${SYSCONFDIR}/X11/windowlab/
share/examples/windowlab/windowlab.menurc
@sample ${SYSCONFDIR}/X11/windowlab/windowlab.menurc