From e9bbc58fe1b54567738bc2720cd0332feb9ff3e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 30 Sep 2019 11:20:52 +0200 Subject: Add surf-pass to access user names and passwords from surf --- config.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'config.h') 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 } }, -- cgit v1.2.3