[arch-commits] Commit in tabbed/trunk (PKGBUILD config.h)

Lukas Fleischer lfleischer at nymeria.archlinux.org
Fri Jan 31 19:43:51 UTC 2014


    Date: Friday, January 31, 2014 @ 20:43:51
  Author: lfleischer
Revision: 105101

upgpkg: tabbed 0.6-1

Upstream update.

Modified:
  tabbed/trunk/PKGBUILD
  tabbed/trunk/config.h

----------+
 PKGBUILD |    6 +++---
 config.h |   17 +++++++++++++----
 2 files changed, 16 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-01-31 15:12:22 UTC (rev 105100)
+++ PKGBUILD	2014-01-31 19:43:51 UTC (rev 105101)
@@ -3,7 +3,7 @@
 # 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 @@
 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}"

Modified: config.h
===================================================================
--- config.h	2014-01-31 15:12:22 UTC (rev 105100)
+++ config.h	2014-01-31 19:43:51 UTC (rev 105101)
@@ -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 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 } },




More information about the arch-commits mailing list