summaryrefslogtreecommitdiff
path: root/tabbed
diff options
context:
space:
mode:
authorMaximilian Dietrich <dxm@openmailbox.org>2013-08-19 20:26:13 +0200
committerMaximilian Dietrich <dxm@openmailbox.org>2013-08-19 20:26:13 +0200
commit2517e7a8759fd2e53c90c300029344e7c1771ed0 (patch)
tree47575e53884219b328b1b4fe95bdbc373b3b5b7d /tabbed
parent4b24a163cdd7abf097c50df883131fdfc5d569a6 (diff)
downloadcontrib-2517e7a8759fd2e53c90c300029344e7c1771ed0.tar.gz
contrib-2517e7a8759fd2e53c90c300029344e7c1771ed0.tar.xz
tabbed: initial commit
Diffstat (limited to 'tabbed')
-rw-r--r--tabbed/.footprint6
-rw-r--r--tabbed/.md5sum2
-rw-r--r--tabbed/Pkgfile19
-rw-r--r--tabbed/README1
-rw-r--r--tabbed/config.h49
5 files changed, 77 insertions, 0 deletions
diff --git a/tabbed/.footprint b/tabbed/.footprint
new file mode 100644
index 000000000..430cae8e2
--- /dev/null
+++ b/tabbed/.footprint
@@ -0,0 +1,6 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/tabbed
+drwxr-xr-x root/root usr/man/
+drwxr-xr-x root/root usr/man/man1/
+-rw-r--r-- root/root usr/man/man1/tabbed.1.gz
diff --git a/tabbed/.md5sum b/tabbed/.md5sum
new file mode 100644
index 000000000..e716fe90b
--- /dev/null
+++ b/tabbed/.md5sum
@@ -0,0 +1,2 @@
+cea7b04d4f67d917c68673cd0e63ae32 config.h
+cd9cfd696db745637486ec3b9bbe4b75 tabbed-0.5.tar.gz
diff --git a/tabbed/Pkgfile b/tabbed/Pkgfile
new file mode 100644
index 000000000..6df4919b6
--- /dev/null
+++ b/tabbed/Pkgfile
@@ -0,0 +1,19 @@
+# Description: Simple generic tabbed fronted to xembed aware applications
+# URL: http://tools.suckless.org/tabbed/
+# Maintainer: Maximilian Dietrich, dxm at openmailbox dot org
+# Depends on: xorg-libx11
+
+name=tabbed
+version=0.5
+release=1
+source=(http://dl.suckless.org/tools/$name-$version.tar.gz config.h)
+
+build () {
+ cd "$name-$version"
+ cp $SRC/config.h .
+ make
+ make DESTDIR=$PKG \
+ PREFIX=/usr \
+ MANPREFIX=/usr/man \
+ install
+}
diff --git a/tabbed/README b/tabbed/README
new file mode 100644
index 000000000..d285b389a
--- /dev/null
+++ b/tabbed/README
@@ -0,0 +1 @@
+Edit config.h and rebuild the package to configure tabbed.
diff --git a/tabbed/config.h b/tabbed/config.h
new file mode 100644
index 000000000..ca4b8d6b4
--- /dev/null
+++ b/tabbed/config.h
@@ -0,0 +1,49 @@
+/* See LICENSE file for copyright and license details. */
+
+/* appearance */
+static const char font[] = "-*-*-medium-*-*-*-14-*-*-*-*-*-*-*";
+static const char normbgcolor[] = "#222222";
+static const char normfgcolor[] = "#cccccc";
+static const char selbgcolor[] = "#555555";
+static const char selfgcolor[] = "#ffffff";
+static const char before[] = "<";
+static const char after[] = ">";
+static const int tabwidth = 200;
+static const Bool foreground = True;
+
+/*
+ * Where to place a new tab when it is opened. When npisrelative is True,
+ * then the current position is changed + newposition. If npisrelative
+ * is False, then newposition is an absolute position.
+ */
+static int newposition = 0;
+static Bool npisrelative = False;
+
+#define MODKEY ControlMask
+static Key keys[] = { \
+ /* modifier key function argument */
+ { MODKEY|ShiftMask, XK_Return, focusonce, { 0 } },
+ { MODKEY|ShiftMask, XK_Return, spawn, { 0 } },
+
+ { MODKEY|ShiftMask, XK_l, rotate, { .i = +1 } },
+ { MODKEY|ShiftMask, XK_h, rotate, { .i = -1 } },
+ { MODKEY|ShiftMask, XK_j, movetab, { .i = -1 } },
+ { MODKEY|ShiftMask, XK_k, movetab, { .i = +1 } },
+ { MODKEY, XK_Tab, rotate, { .i = 0 } },
+
+ { MODKEY, XK_1, move, { .i = 0 } },
+ { MODKEY, XK_2, move, { .i = 1 } },
+ { MODKEY, XK_3, move, { .i = 2 } },
+ { MODKEY, XK_4, move, { .i = 3 } },
+ { MODKEY, XK_5, move, { .i = 4 } },
+ { MODKEY, XK_6, move, { .i = 5 } },
+ { MODKEY, XK_7, move, { .i = 6 } },
+ { MODKEY, XK_8, move, { .i = 7 } },
+ { MODKEY, XK_9, move, { .i = 8 } },
+ { MODKEY, XK_0, move, { .i = 9 } },
+
+ { MODKEY, XK_q, killclient, { 0 } },
+
+ { 0, XK_F11, fullscreen, { 0 } },
+};
+

Generated by cgit