[wiki] [sites] Patch for alternate keybindings || Steven Dee

From: <git_AT_suckless.org>
Date: Fri, 16 May 2014 02:02:18 +0200

commit 4eedefccfcaf2e03ef25bda3f5039a09deccaa20
Author: Steven Dee <steve_AT_smartercode.net>
Date: Thu May 15 17:01:28 2014 -0700

    Patch for alternate keybindings

diff --git a/surf.suckless.org/patches/chromekeys.md b/surf.suckless.org/patches/chromekeys.md
new file mode 100644
index 0000000..98809f1
--- /dev/null
+++ b/surf.suckless.org/patches/chromekeys.md
_AT_@ -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_AT_smartercode.net](mailto:steve_AT_smartercode.net)>
diff --git a/surf.suckless.org/patches/surf-0.6-chromekeys.diff b/surf.suckless.org/patches/surf-0.6-chromekeys.diff
new file mode 100644
index 0000000..ce8ddee
--- /dev/null
+++ b/surf.suckless.org/patches/surf-0.6-chromekeys.diff
_AT_@ -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
+_AT_@ -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 } },
Received on Fri May 16 2014 - 02:02:18 CEST

This archive was generated by hypermail 2.3.0 : Thu Jun 18 2015 - 17:38:47 CEST