summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorEnno Boland (tox) <tox@s01.de>2010-05-17 11:45:28 +0200
committerEnno Boland (tox) <tox@s01.de>2010-05-17 11:45:28 +0200
commit36129338cfd64fd9aee8862060cddfd186d8b486 (patch)
treeb3b41636cfcd8c144a22dbda2507b8a4b42822e6 /config.def.h
parent0a6eafe0778f96d98502bf5ebc71179ac5f2d241 (diff)
downloadsurf-36129338cfd64fd9aee8862060cddfd186d8b486.tar.gz
surf-36129338cfd64fd9aee8862060cddfd186d8b486.tar.bz2
surf-36129338cfd64fd9aee8862060cddfd186d8b486.zip
changing xprops
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/config.def.h b/config.def.h
index 8caebad..e6da45b 100644
--- a/config.def.h
+++ b/config.def.h
@@ -8,10 +8,10 @@ static char *cookiefile = ".surf/cookies.txt";
static time_t sessiontime = 0;
#define NOBACKGROUND 0
-#define SETPROP(p) { .v = (char *[]){ "/bin/sh", "-c", \
- "prop=\"`xprop -id $1 $0 | cut -d '\"' -f 2 | dmenu`\" &&" \
- "xprop -id $1 -f $0 8s -set $0 \"$prop\"", \
- p, winid, NULL } }
+#define SETPROP(p, q) { .v = (char *[]){ "/bin/sh", "-c", \
+ "prop=\"`xprop -id $2 $0 | cut -d '\"' -f 2 | dmenu`\" &&" \
+ "xprop -id $2 -f $1 8s -set $1 \"$prop\"", \
+ p, q, winid, NULL } }
#define MODKEY GDK_CONTROL_MASK
static Key keys[] = {
/* modifier keyval function arg Focus */
@@ -29,8 +29,8 @@ static Key keys[] = {
{ MODKEY, GDK_k, scroll, { .i = -1 } },
{ 0, GDK_Escape, stop, { 0 } },
{ MODKEY, GDK_o, source, { 0 } },
- { MODKEY, GDK_g, spawn, SETPROP("_SURF_URI") },
- { MODKEY, GDK_slash, spawn, SETPROP("_SURF_FIND") },
+ { MODKEY, GDK_g, spawn, SETPROP("_SURF_URI", "_SURF_GO") },
+ { MODKEY, GDK_slash, spawn, SETPROP("_SURF_FIND", "_SURF_FIND") },
{ MODKEY, GDK_n, find, { .b = TRUE } },
{ MODKEY|GDK_SHIFT_MASK,GDK_n, find, { .b = FALSE } },
};