summaryrefslogtreecommitdiff
path: root/misc/bbappconf
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2002-08-04 16:24:21 +0000
committerjschauma <jschauma@pkgsrc.org>2002-08-04 16:24:21 +0000
commitda1138cca556fcecac98e8875bd750aabe1b8db7 (patch)
tree915b4cd33fb88cbbc010984f5362a10bb016c484 /misc/bbappconf
parentd78c8fae4b7bde9d1a807fe757bd05207e15934d (diff)
downloadpkgsrc-da1138cca556fcecac98e8875bd750aabe1b8db7.tar.gz
Initial import of misc/bbappconf, a tool to configure certain aspects of
an application under the Blackbox window manager, into pkgsrc using files provided by Anthony Mallet <anthony dot mallet at useless-ficus dot net> in PR pkg/17831 with minor modifications by myself.
Diffstat (limited to 'misc/bbappconf')
-rw-r--r--misc/bbappconf/DESCR5
-rw-r--r--misc/bbappconf/Makefile29
-rw-r--r--misc/bbappconf/PLIST7
-rw-r--r--misc/bbappconf/distinfo7
-rw-r--r--misc/bbappconf/patches/patch-aa22
-rw-r--r--misc/bbappconf/patches/patch-ab13
-rw-r--r--misc/bbappconf/patches/patch-ac117
7 files changed, 200 insertions, 0 deletions
diff --git a/misc/bbappconf/DESCR b/misc/bbappconf/DESCR
new file mode 100644
index 00000000000..978d59765b1
--- /dev/null
+++ b/misc/bbappconf/DESCR
@@ -0,0 +1,5 @@
+bbappconf makes it possible to set some options for the windows blackbox
+opens such as:
+- on which desktop they should open
+- if it should be displayed without titlebar
+- if it should be sticky
diff --git a/misc/bbappconf/Makefile b/misc/bbappconf/Makefile
new file mode 100644
index 00000000000..ce343250c01
--- /dev/null
+++ b/misc/bbappconf/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/08/04 16:24:21 jschauma Exp $
+#
+
+DISTNAME= bbappconf-0.0.1-peak3
+PKGNAME= bbappconf-0.0.1.0.3
+CATEGORIES= misc x11 wm
+MASTER_SITES= http://bbtools.windsofstorm.net/sources/devel/
+
+MAINTAINER= jschauma@netbsd.org
+HOMEPAGE= http://bbtools.windsofstorm.net
+COMMENT= Configure the behaviour of an application under Blackbox
+
+GNU_CONFIGURE= YES
+USE_BUILDLINK_ONLY= YES
+USE_X11BASE= YES
+
+post-patch:
+ ${SED} -e 's,@PREFIX@,${PREFIX},' ${WRKSRC}/data/bbappconf.1.tmp > \
+ ${WRKSRC}/data/bbappconf.1
+ ${SED} -e 's,@PREFIX@,${PREFIX},' ${WRKSRC}/data/README.bbappconf > \
+ ${WRKSRC}/data/README.bbappconf.tmp
+ ${MV} ${WRKSRC}/data/README.bbappconf.tmp ${WRKSRC}/data/README.bbappconf
+
+post-install:
+ ${INSTALL_MAN_DIR} ${PREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/data/bbappconf.1 ${PREFIX}/man/man1
+
+.include "../../mk/x11.buildlink.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/misc/bbappconf/PLIST b/misc/bbappconf/PLIST
new file mode 100644
index 00000000000..0a4de16384b
--- /dev/null
+++ b/misc/bbappconf/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/08/04 16:24:21 jschauma Exp $
+bin/bbappconf
+share/bbtools/bbappconf.bb
+share/bbtools/bbappconf.nobb
+share/bbtools/README.bbappconf
+man/man1/bbappconf.1
+@unexec ${RMDIR} %D/share/bbtools 2>/dev/null || true
diff --git a/misc/bbappconf/distinfo b/misc/bbappconf/distinfo
new file mode 100644
index 00000000000..10148949364
--- /dev/null
+++ b/misc/bbappconf/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/08/04 16:24:21 jschauma Exp $
+
+SHA1 (bbappconf-0.0.1-peak3.tar.gz) = 03698e9ec97872aa36df86c2ecd97922ef22907c
+Size (bbappconf-0.0.1-peak3.tar.gz) = 80193 bytes
+SHA1 (patch-aa) = f730864931ec633ffa54e51a42b2d6dfbb127929
+SHA1 (patch-ab) = 2d45a53624945456a4ca3289ed241b21aee356c4
+SHA1 (patch-ac) = efdb5217518e3814910a85ecf37c66b45bda46d8
diff --git a/misc/bbappconf/patches/patch-aa b/misc/bbappconf/patches/patch-aa
new file mode 100644
index 00000000000..9dca2903854
--- /dev/null
+++ b/misc/bbappconf/patches/patch-aa
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/08/04 16:24:22 jschauma Exp $
+
+--- data/README.bbappconf.orig Sun Aug 4 11:50:44 2002
++++ data/README.bbappconf Sun Aug 4 11:51:29 2002
+@@ -4,7 +4,7 @@
+ Configuration options can be changed in bbappconf.bb.
+ Most likely you want to change some of these options.
+
+-The global configuration file can be found in $datadir/bbtools/bbappconf.bb
++The global configuration file can be found in @PREFIX@/share/bbtools/bbappconf.bb
+ A local configuration can be made by copying the bbappconf.bb file to
+ $HOME/.bbtools/bbappconf.bb and editing it.
+
+@@ -28,7 +28,7 @@
+
+ After you have identified an application window you can tell bbappconf what
+ to do with it:
+-bbappconf.x.stick: true or flase
++bbappconf.x.stick: true or false
+ bbappconf.x.decorless: true or false
+ bbappconf.x.startOnWorkspace: 1..number of workspaces
+
diff --git a/misc/bbappconf/patches/patch-ab b/misc/bbappconf/patches/patch-ab
new file mode 100644
index 00000000000..1868856b73c
--- /dev/null
+++ b/misc/bbappconf/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2002/08/04 16:24:22 jschauma Exp $
+
+--- data/bbappconf.bb.orig Sun Aug 4 11:51:37 2002
++++ data/bbappconf.bb Sun Aug 4 11:51:49 2002
+@@ -19,7 +19,7 @@
+ !bbappconf.1.maxHoriz: false
+ !bbappconf.1.startOnWorkspace:
+
+-! start xterm with "xterm -name workspace2"
++! start xterm with "xterm -name Workspace2"
+ !bbappconf.2.classHint.class: XTerm
+ !bbappconf.2.classHint.name: Workspace2
+ !bbappconf.2.Stick: true
diff --git a/misc/bbappconf/patches/patch-ac b/misc/bbappconf/patches/patch-ac
new file mode 100644
index 00000000000..178c5006312
--- /dev/null
+++ b/misc/bbappconf/patches/patch-ac
@@ -0,0 +1,117 @@
+$NetBSD: patch-ac,v 1.1.1.1 2002/08/04 16:24:22 jschauma Exp $
+
+--- /dev/null Sun Aug 4 11:24:41 2002
++++ data/bbappconf.1.tmp Sun Aug 4 11:52:41 2002
+@@ -0,0 +1,112 @@
++.TH BBAPPCONF 1 "August 04, 2002" bbappconf "bbtools"
++.SH NAME
++bbappconf \- configure applications for blackbox
++
++.SH SYNOPSIS
++.B bbappconf
++[\fIOPTIONS\fR]
++
++.SH DESCRIPTION
++\fBbbappconf\fR is a tool to configure the behaviour of certain aspects of
++an application under the Blackbox window manager.
++
++.SH USAGE
++By default \fBbbappconf\fR reads the Blackbox style-file as defined in
++\fI$HOME/.blackboxrc\fR and copies as much of the style as possible. The
++result is an application which looks a lot like the toolbar.
++
++The \fI-geometry\fR is given as +x+y or -x-y (or combination)
++where -x-y is the (x,y) distance of the right bottom of screen
++to the right bottom of \fBbbappconf\fR.
++
++So \fI-geometry -0-0\fR puts the application in the lower right corner of the
++screen.
++
++.SH OPTIONS
++A summary of the options supported by \fBbbappconf\fR is included below.
++
++.TP
++\fB\-c[onfig]\fR \fIfilename\fR
++use alternate config file
++.TP
++.B \-d[ecorated]
++Show 'normal' decorated window
++.TP
++\fB\-display\fR \fIdisplay name\fR
++X server to connect to
++.TP
++\fB\-geom[etry]\fR \fIgeometry\fR
++Set geometry of window
++.TP
++\fB\-h[elp]\fR
++Show summary of options and exit.
++.TP
++\fB\-n[obb]\fR
++fall back on default configuration
++.TP
++\fB\-s[hape]\fR
++Don't display groundplate
++.TP
++\fB\-v[ersion]\fR
++Display version number
++.TP
++\fB\-w[ithdrawn]\fR
++Place bbtool in the Slit
++
++.SH CONFIGURATION
++To be able to do something with windows we first have to identify them.
++In bbappconf this is done using the X-Windows class hints.
++
++A class hints consists of the application name and class.
++Normally all windows of an application have the same class, different windows
++of an application can have different names.
++
++You can tell bbappconf to indentify a windows as follows:
++.br
++bbappconf.x.classHint.class: class
++.br
++bbappconf.x.classHint.name: name
++
++You should at least define one of these, if both are defined both should
++match. If you want to find out the class/name of a window, use xprop, it will
++show you: WM_CLASS(STRING) = "name", "class"
++
++After you have identified an application window you can tell bbappconf what
++to do with it:
++.TP
++.I bbappconf.x.stick:
++true or false -- makes the window stick on all your desktops.
++.TP
++.I bbappconf.x.decorless:
++true or false -- removes all decorations from a window, like titlebars.
++.TP
++.I bbappconf.x.startOnWorkspace:
++1..number of workspaces -- tells \fBbbappconf\fR to start a window on a certain workspace.
++
++.SH EXAMPLES
++The configuration file shows some examples.
++
++.SH FILES
++.SS "Under Blackbox"
++.nf
++\fI@PREFIX@/share/bbtools/bbappconf.bb\fR the global configuration file
++\fI$HOME/.bbtools/bbappconf.bb\fR a local configuration file
++
++.SS "Under other Window managers"
++.nf
++\fI@PREFIX@/share/bbtools/bbappconf.nobb\fR the global configuration file
++\fI$HOME/.bbtools/bbappconf.nobb\fR a local configuration file
++
++.SH VERSION
++0.0.1-peak3
++
++.SH HISTORY
++\fBbbappconf\fR first appeared on the internet on October 17th, 2000
++
++.SH "SEE ALSO"
++.BR blackbox(1)
++
++.SH AUTHOR
++John Kennis <jkennis@chello.nl> - bbappconf
++.br
++Jan Schaumann <jschauma@netmeister.org> - this man page