sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 4eedefccfcaf2e03ef25bda3f5039a09deccaa20
parent 9563f5b379bc189a2f76baea6903153a4fec1d81
Author: Steven Dee <steve@smartercode.net>
Date:   Thu, 15 May 2014 17:01:28 -0700

Patch for alternate keybindings

Diffstat:
Asurf.suckless.org/patches/chromekeys.md | 21+++++++++++++++++++++
Asurf.suckless.org/patches/surf-0.6-chromekeys.diff | 35+++++++++++++++++++++++++++++++++++
2 files changed, 56 insertions(+), 0 deletions(-)

diff --git a/surf.suckless.org/patches/chromekeys.md b/surf.suckless.org/patches/chromekeys.md @@ -0,0 +1,21 @@ +chrome keys +=========== + +Description +----------- + +This patch offers alternative keybindings that are both more Vim-like +and more Chrome-like. Specifically, mod-{h,j,k,l} (small jump) and +mod-{b,f} (page jump) are mapped to navigation within the current +window, mod-o and mod-i navigate the history (as they do in Vim), +mod-u is view source, and mod-shift-u opens the inspector. + +Download +-------- + +* [surf-0.6-chromekeys.diff](surf-0.6-chromekeys.diff) (1908) (20140515) + +Author +------ + +* Steven Dee (mrdomino) <[steve@smartercode.net](mailto:steve@smartercode.net)> diff --git a/surf.suckless.org/patches/surf-0.6-chromekeys.diff b/surf.suckless.org/patches/surf-0.6-chromekeys.diff @@ -0,0 +1,35 @@ +diff --git a/config.def.h b/config.def.h +index 80a0feb..f8dc533 100644 +--- a/config.def.h ++++ b/config.def.h +@@ -71,23 +71,23 @@ static Key keys[] = { + { MODKEY, GDK_minus, zoom, { .i = -1 } }, + { MODKEY, GDK_plus, zoom, { .i = +1 } }, + +- { MODKEY, GDK_l, navigate, { .i = +1 } }, +- { MODKEY, GDK_h, navigate, { .i = -1 } }, ++ { MODKEY, GDK_i, navigate, { .i = +1 } }, ++ { MODKEY, GDK_o, navigate, { .i = -1 } }, + + { MODKEY, GDK_j, scroll_v, { .i = +1 } }, + { MODKEY, GDK_k, scroll_v, { .i = -1 } }, + { MODKEY, GDK_b, scroll_v, { .i = -10000 } }, ++ { MODKEY, GDK_f, scroll_v, { .i = +10000 } }, + { MODKEY, GDK_space, scroll_v, { .i = +10000 } }, +- { MODKEY, GDK_i, scroll_h, { .i = +1 } }, +- { MODKEY, GDK_u, scroll_h, { .i = -1 } }, ++ { MODKEY, GDK_l, scroll_h, { .i = +1 } }, ++ { MODKEY, GDK_h, scroll_h, { .i = -1 } }, + + { 0, GDK_F11, fullscreen, { 0 } }, + { 0, GDK_Escape, stop, { 0 } }, +- { MODKEY, GDK_o, source, { 0 } }, +- { MODKEY|GDK_SHIFT_MASK,GDK_o, inspector, { 0 } }, ++ { MODKEY, GDK_u, source, { 0 } }, ++ { MODKEY|GDK_SHIFT_MASK,GDK_u, inspector, { 0 } }, + + { MODKEY, GDK_g, spawn, SETPROP("_SURF_URI", "_SURF_GO") }, +- { MODKEY, GDK_f, spawn, SETPROP("_SURF_FIND", "_SURF_FIND") }, + { MODKEY, GDK_slash, spawn, SETPROP("_SURF_FIND", "_SURF_FIND") }, + + { MODKEY, GDK_n, find, { .b = TRUE } },