summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tabbed/.md5sum4
-rw-r--r--tabbed/Pkgfile2
-rw-r--r--tabbed/config.h17
3 files changed, 16 insertions, 7 deletions
diff --git a/tabbed/.md5sum b/tabbed/.md5sum
index e716fe90b..ea205ddf9 100644
--- a/tabbed/.md5sum
+++ b/tabbed/.md5sum
@@ -1,2 +1,2 @@
-cea7b04d4f67d917c68673cd0e63ae32 config.h
-cd9cfd696db745637486ec3b9bbe4b75 tabbed-0.5.tar.gz
+910b1cbcf62051064c58029987e05db8 config.h
+7898992feb9358e0196119750b77b42c tabbed-0.6.tar.gz
diff --git a/tabbed/Pkgfile b/tabbed/Pkgfile
index 6df4919b6..3d8ceae7c 100644
--- a/tabbed/Pkgfile
+++ b/tabbed/Pkgfile
@@ -4,7 +4,7 @@
# Depends on: xorg-libx11
name=tabbed
-version=0.5
+version=0.6
release=1
source=(http://dl.suckless.org/tools/$name-$version.tar.gz config.h)
diff --git a/tabbed/config.h b/tabbed/config.h
index ca4b8d6b4..ceda9f704 100644
--- a/tabbed/config.h
+++ b/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 } },

Generated by cgit