$OpenBSD: patch-i3_config_keycodes,v 1.11 2014/07/11 15:49:58 dcoppa Exp $

Fix keycodes for the "Left", "Down", "Up" and "Right" keys: they're
different between Linux and OpenBSD.

--- i3.config.keycodes.orig	Sun Jun 15 19:12:43 2014 
+++ i3.config.keycodes		Wed Jul  2 19:48:19 2014 
@@ -26,13 +26,13 @@ font pango:DejaVu Sans Mono 8
 floating_modifier $mod
 
 # start a terminal
-bindcode $mod+36 exec i3-sensible-terminal
+bindcode $mod+36 exec ${X11BASE}/bin/xterm
 
 # kill focused window
 bindcode $mod+Shift+24 kill
 
 # start dmenu (a program launcher)
-bindcode $mod+40 exec dmenu_run
+bindcode $mod+40 exec ${LOCALBASE}/bin/dmenu_run
 # There also is the (new) i3-dmenu-desktop which only displays applications
 # shipping a .desktop file. It is a wrapper around dmenu, so you need that
 # installed.
@@ -45,10 +45,10 @@ bindcode $mod+46 focus up
 bindcode $mod+47 focus right
 
 # alternatively, you can use the cursor keys:
-bindcode $mod+113 focus left
-bindcode $mod+116 focus down
-bindcode $mod+111 focus up
-bindcode $mod+114 focus right
+bindcode $mod+100 focus left
+bindcode $mod+104 focus down
+bindcode $mod+98 focus up
+bindcode $mod+102 focus right
 
 # move focused window
 bindcode $mod+Shift+44 move left
@@ -57,10 +57,10 @@ bindcode $mod+Shift+46 move up
 bindcode $mod+Shift+47 move right
 
 # alternatively, you can use the cursor keys:
-bindcode $mod+Shift+113 move left
-bindcode $mod+Shift+116 move down
-bindcode $mod+Shift+111 move up
-bindcode $mod+Shift+114 move right
+bindcode $mod+Shift+100 move left
+bindcode $mod+Shift+104 move down
+bindcode $mod+Shift+98 move up
+bindcode $mod+Shift+102 move right
 
 # split in horizontal orientation
 bindcode $mod+43 split h
@@ -133,10 +133,10 @@ mode "resize" {
         bindcode 47 resize grow width 10 px or 10 ppt
 
         # same bindings, but for the arrow keys
-        bindcode 113 resize shrink width 10 px or 10 ppt
-        bindcode 116 resize grow height 10 px or 10 ppt
-        bindcode 111 resize shrink height 10 px or 10 ppt
-        bindcode 114 resize grow width 10 px or 10 ppt
+        bindcode 100 resize shrink width 10 px or 10 ppt
+        bindcode 104 resize grow height 10 px or 10 ppt
+        bindcode 98 resize shrink height 10 px or 10 ppt
+        bindcode 102 resize grow width 10 px or 10 ppt
 
         # back to normal: Enter or Escape
         bindcode 36 mode "default"
