tSETPROP() macro shows now the current value in dwm. - surf - customized build … | |
git clone git://src.adamsgaard.dk/surf | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit b57eca1a2bf1a65899866753cf9f8488223a2b47 | |
parent c0510b0cc9de66db2050c53197588851ac8808a3 | |
Author: Enno Boland (tox) <[email protected]> | |
Date: Sun, 8 Nov 2009 23:45:11 +0100 | |
SETPROP() macro shows now the current value in dwm. | |
Diffstat: | |
M config.def.h | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/config.def.h b/config.def.h | |
t@@ -9,8 +9,8 @@ static char *dldir = ".surf/dl"; | |
static time_t sessiontime = 3600; | |
#define SETPROP(p) { .v = (char *[]){ "/bin/sh", "-c", \ | |
- "prop=\"`dmenu < /dev/null`\" &&" \ | |
- "xprop -id $1 -f $0 8s -set $0 \"$prop\"", \ | |
+ "prop=\"`xprop -id $1 $0 | cut -d '\"' -f 2 | dmenu`\" &&" \ | |
+ "xprop -id $1 -f $0 8s -set $0 \"$prop\"", \ | |
p, winid, NULL } } | |
#define MODKEY GDK_CONTROL_MASK | |
static Key keys[] = { |