diff options
author | Karel Kočí <cynerd@email.cz> | 2019-09-30 11:20:52 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2019-09-30 11:20:52 +0200 |
commit | e9bbc58fe1b54567738bc2720cd0332feb9ff3e2 (patch) | |
tree | 97f483d4912dfa1ad8adf839ba44ea4793c44ef6 /config.h | |
parent | 15facd86d007d6295cd7a03fecfcf5cba14cd59f (diff) | |
download | surf-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.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 } }, |