summaryrefslogtreecommitdiff
path: root/community/tabbed
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-02-01 03:35:09 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-02-01 03:35:09 +0000
commit2d8813df5b3f8a63835a228496f998914755d820 (patch)
tree13ff3124b8fcf9e0b34581dfb93555b6c5b7d741 /community/tabbed
parente7daa750c892363d7624ed0951bbb89ad71a3247 (diff)
Sat Feb 1 03:33:52 UTC 2014
Diffstat (limited to 'community/tabbed')
-rw-r--r--community/tabbed/PKGBUILD8
-rw-r--r--community/tabbed/config.h17
2 files changed, 17 insertions, 8 deletions
diff --git a/community/tabbed/PKGBUILD b/community/tabbed/PKGBUILD
index a66c44205..cca785d9a 100644
--- a/community/tabbed/PKGBUILD
+++ b/community/tabbed/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 92069 2013-05-31 08:05:10Z lfleischer $
+# $Id: PKGBUILD 105102 2014-01-31 19:44:06Z lfleischer $
# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
# Contributor: totoloco <totoloco at gmx>
pkgname=tabbed
-pkgver=0.5
+pkgver=0.6
pkgrel=1
pkgdesc='Simple generic tabbed fronted to xembed aware applications.'
arch=('i686' 'x86_64')
@@ -13,8 +13,8 @@ depends=('libx11')
install='tabbed.install'
source=("http://dl.suckless.org/tools/${pkgname}-${pkgver}.tar.gz"
'config.h')
-md5sums=('cd9cfd696db745637486ec3b9bbe4b75'
- 'cea7b04d4f67d917c68673cd0e63ae32')
+md5sums=('7898992feb9358e0196119750b77b42c'
+ '910b1cbcf62051064c58029987e05db8')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
diff --git a/community/tabbed/config.h b/community/tabbed/config.h
index ca4b8d6b4..ceda9f704 100644
--- a/community/tabbed/config.h
+++ b/community/tabbed/config.h
@@ -2,10 +2,10 @@
/* 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* 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;
@@ -19,11 +19,20 @@ static const Bool foreground = True;
static int newposition = 0;
static Bool npisrelative = False;
+#define SETPROP(p) { \
+ .v = (char *[]){ "/bin/sh", "-c", \
+ "prop=\"`xwininfo -children -id $1 | grep '^ 0x' | sed -e's@^ *\\(0x[0-9a-f]*\\) \"\\([^\"]*\\)\".*@\\1 \\2@' | xargs -0 printf %b | dmenu -l 10`\" &&" \
+ "xprop -id $1 -f $0 8s -set $0 \"$prop\"", \
+ p, winid, NULL \
+ } \
+}
+
#define MODKEY ControlMask
static Key keys[] = { \
/* modifier key function argument */
{ MODKEY|ShiftMask, XK_Return, focusonce, { 0 } },
{ MODKEY|ShiftMask, XK_Return, spawn, { 0 } },
+ { MODKEY, XK_t, spawn, SETPROP("_TABBED_SELECT_TAB") },
{ MODKEY|ShiftMask, XK_l, rotate, { .i = +1 } },
{ MODKEY|ShiftMask, XK_h, rotate, { .i = -1 } },