summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2019-09-30 11:20:52 +0200
committerKarel Kočí <cynerd@email.cz>2019-09-30 11:20:52 +0200
commite9bbc58fe1b54567738bc2720cd0332feb9ff3e2 (patch)
tree97f483d4912dfa1ad8adf839ba44ea4793c44ef6 /config.h
parent15facd86d007d6295cd7a03fecfcf5cba14cd59f (diff)
downloadsurf-e9bbc58fe1b54567738bc2720cd0332feb9ff3e2.tar.gz
surf-e9bbc58fe1b54567738bc2720cd0332feb9ff3e2.tar.bz2
surf-e9bbc58fe1b54567738bc2720cd0332feb9ff3e2.zip
Add surf-pass to access user names and passwords from surf
Diffstat (limited to 'config.h')
-rw-r--r--config.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/config.h b/config.h
index 17af18a..8e11734 100644
--- a/config.h
+++ b/config.h
@@ -106,6 +106,11 @@ static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE |
} \
}
+/* Pass */
+#define PASS(VAL) { \
+ .v = (const char *[]){ "./surf-pass", winid, VAL, NULL } \
+}
+
/* styles */
/*
* The iteration will stop at the first match, beginning at the beginning of
@@ -138,6 +143,9 @@ static Key keys[] = {
{ MODKEY, GDK_KEY_f, spawn, SETPROP("_SURF_FIND", "_SURF_FIND", PROMPT_FIND) },
{ MODKEY, GDK_KEY_slash, spawn, SETPROP("_SURF_FIND", "_SURF_FIND", PROMPT_FIND) },
+ { MODKEY, GDK_KEY_w, spawn, PASS("NAME") },
+ { MODKEY|GDK_SHIFT_MASK, GDK_KEY_w, spawn, PASS("PASS") },
+
{ 0, GDK_KEY_Escape, stop, { 0 } },
{ MODKEY, GDK_KEY_c, stop, { 0 } },