From b07652a554da39b2f205f15302c53fae7566fe68 Mon Sep 17 00:00:00 2001 From: Ypnose Date: Sat, 21 Dec 2013 22:15:54 +0100 Subject: [PATCH] tabbed-git: update to 20131221 --- srcpkgs/tabbed-git/files/config.h | 17 +++++++++++++---- srcpkgs/tabbed-git/template | 2 +- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/srcpkgs/tabbed-git/files/config.h b/srcpkgs/tabbed-git/files/config.h index ca4b8d6b47..ceda9f7045 100644 --- a/srcpkgs/tabbed-git/files/config.h +++ b/srcpkgs/tabbed-git/files/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 } }, diff --git a/srcpkgs/tabbed-git/template b/srcpkgs/tabbed-git/template index f0286b91f7..6d9890c65b 100644 --- a/srcpkgs/tabbed-git/template +++ b/srcpkgs/tabbed-git/template @@ -1,6 +1,6 @@ # Template file for 'tabbed-git' pkgname=tabbed-git -version=20131104 +version=20131221 revision=1 makedepends="libX11-devel" short_desc="Simple generic tabbed fronted to xembed aware applications"