commit 8cff930c93e3bbc018eec4271d390b4c3d3bbf7f
parent d7065de5b1fe02200121c9229cd3e1574d77c064
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Thu, 2 Jul 2020 07:14:21 +0200
Sort keybindings alphabetically
Diffstat:
M | config.h | | | 66 | ++++++++++++++++++++++++++++-------------------------------------- |
1 file changed, 28 insertions(+), 38 deletions(-)
diff --git a/config.h b/config.h
@@ -175,59 +175,49 @@ static SiteSpecific certs[] = {
*/
static Key keys[] = {
/* modifier keyval function arg */
- { MODKEY, GDK_KEY_o, spawn, SETPROP("_SURF_URI", "_SURF_GO", PROMPT_GO) },
{ MODKEY, GDK_KEY_slash, spawn, SETPROP("_SURF_FIND", "_SURF_FIND", PROMPT_FIND) },
- { MODKEY, GDK_KEY_f, spawn, FIREFOX("_SURF_URI") },
-
{ 0, GDK_KEY_Escape, stop, { 0 } },
- { MODKEY, GDK_KEY_c, stop, { 0 } },
-
- { MODKEY|GDK_SHIFT_MASK, GDK_KEY_r, reload, { .i = 1 } },
- { MODKEY, GDK_KEY_r, reload, { .i = 0 } },
+ { MODKEY, GDK_KEY_space, scrollv, { .i = +50 } },
+ { MODKEY|GDK_SHIFT_MASK, XK_Next, zoom, { .i = -1 } },
+ { MODKEY|GDK_SHIFT_MASK, XK_Prior, zoom, { .i = +1 } },
+ { MODKEY|GDK_SHIFT_MASK, XK_Home, zoom, { .i = 0 } },
- { MODKEY, GDK_KEY_l, navigate, { .i = +1 } },
- { MODKEY, GDK_KEY_h, navigate, { .i = -1 } },
+ { 0, GDK_KEY_F11, togglefullscreen, { 0 } },
- /* vertical and horizontal scrolling, in viewport percentage */
- { MODKEY, GDK_KEY_j, scrollv, { .i = +10 } },
- { MODKEY, GDK_KEY_k, scrollv, { .i = -10 } },
+ { MODKEY|GDK_SHIFT_MASK, GDK_KEY_a, togglecookiepolicy, { 0 } },
{ MODKEY, GDK_KEY_b, spawn, BOOKMARKURI("_SURF_URI") },
- { MODKEY, GDK_KEY_e, spawn, EDITSRC("_SURF_URI") },
- { MODKEY, GDK_KEY_space, scrollv, { .i = +50 } },
+ { MODKEY|GDK_SHIFT_MASK, GDK_KEY_b, toggle, { .i = ScrollBars } },
+ { MODKEY, GDK_KEY_c, stop, { 0 } },
+ { MODKEY|GDK_SHIFT_MASK, GDK_KEY_c, toggle, { .i = CaretBrowsing } },
{ MODKEY, GDK_KEY_d, scrollv, { .i = +50 } },
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_d, scrollv, { .i = +100 } },
- { MODKEY, GDK_KEY_u, scrollv, { .i = -50 } },
+ { MODKEY, GDK_KEY_e, spawn, EDITSRC("_SURF_URI") },
+ { MODKEY, GDK_KEY_f, spawn, FIREFOX("_SURF_URI") },
+ { MODKEY|GDK_SHIFT_MASK, GDK_KEY_f, toggle, { .i = FrameFlattening } },
{ MODKEY, GDK_KEY_g, spawn, PLUMBER("_SURF_URI") },
+ { MODKEY, GDK_KEY_h, navigate, { .i = -1 } },
{ MODKEY, GDK_KEY_i, scrollh, { .i = +10 } },
+ { MODKEY|GDK_SHIFT_MASK, GDK_KEY_i, toggle, { .i = LoadImages } },
+ { MODKEY, GDK_KEY_j, scrollv, { .i = +10 } },
+ { MODKEY, GDK_KEY_k, scrollv, { .i = -10 } },
+ { MODKEY, GDK_KEY_l, navigate, { .i = +1 } },
+ { MODKEY|GDK_SHIFT_MASK, GDK_KEY_l, toggle, { .i = Geolocation } },
{ MODKEY, GDK_KEY_m, spawn, VIDEOPLAYTABBED("_SURF_URI") },
-
-
- { MODKEY|GDK_SHIFT_MASK, XK_Next, zoom, { .i = -1 } },
- { MODKEY|GDK_SHIFT_MASK, XK_Prior, zoom, { .i = +1 } },
- { MODKEY|GDK_SHIFT_MASK, XK_Home, zoom, { .i = 0 } },
-
- { MODKEY, GDK_KEY_p, clipboard, { .i = 1 } },
- { MODKEY, GDK_KEY_y, clipboard, { .i = 0 } },
-
+ { MODKEY|GDK_SHIFT_MASK, GDK_KEY_m, toggle, { .i = Style } },
{ MODKEY, GDK_KEY_n, find, { .i = +1 } },
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_n, find, { .i = -1 } },
-
- { MODKEY|GDK_SHIFT_MASK, GDK_KEY_p, print, { 0 } },
- { MODKEY, GDK_KEY_t, showcert, { 0 } },
-
- { MODKEY|GDK_SHIFT_MASK, GDK_KEY_a, togglecookiepolicy, { 0 } },
- { 0, GDK_KEY_F11, togglefullscreen, { 0 } },
+ { MODKEY, GDK_KEY_o, spawn, SETPROP("_SURF_URI", "_SURF_GO", PROMPT_GO) },
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_o, toggleinspector, { 0 } },
-
- { MODKEY|GDK_SHIFT_MASK, GDK_KEY_c, toggle, { .i = CaretBrowsing } },
- { MODKEY|GDK_SHIFT_MASK, GDK_KEY_f, toggle, { .i = FrameFlattening } },
- { MODKEY|GDK_SHIFT_MASK, GDK_KEY_l, toggle, { .i = Geolocation } },
+ { MODKEY, GDK_KEY_p, clipboard, { .i = 1 } },
+ { MODKEY|GDK_SHIFT_MASK, GDK_KEY_p, print, { 0 } },
+ { MODKEY|GDK_SHIFT_MASK, GDK_KEY_r, reload, { .i = 1 } },
+ { MODKEY, GDK_KEY_r, reload, { .i = 0 } },
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_s, toggle, { .i = JavaScript } },
- { MODKEY|GDK_SHIFT_MASK, GDK_KEY_i, toggle, { .i = LoadImages } },
- { MODKEY|GDK_SHIFT_MASK, GDK_KEY_v, toggle, { .i = Plugins } },
- { MODKEY|GDK_SHIFT_MASK, GDK_KEY_b, toggle, { .i = ScrollBars } },
+ { MODKEY, GDK_KEY_t, showcert, { 0 } },
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_t, toggle, { .i = StrictTLS } },
- { MODKEY|GDK_SHIFT_MASK, GDK_KEY_m, toggle, { .i = Style } },
+ { MODKEY, GDK_KEY_u, scrollv, { .i = -50 } },
+ { MODKEY|GDK_SHIFT_MASK, GDK_KEY_v, toggle, { .i = Plugins } },
+ { MODKEY, GDK_KEY_y, clipboard, { .i = 0 } },
};
/* button definitions */