openbsd-ports/x11/i3/patches/patch-i3_config_keycodes
dcoppa 3dc7d54c0b Into i3.config.keycodes, fix keycodes for the "Left", "Down", "Up"
and "Right" keys: for unknown reasons they're different between
Linux and OpenBSD.
Fix a pasto too: "bindsym" --> "bindcode".

Re-enable starting i3-config-wizard at first run, now that it works
properly.

From Juan Francisco Cantero Hurtado, with some tweaks by me.
2012-05-10 09:27:37 +00:00

78 lines
2.5 KiB
Plaintext

$OpenBSD: patch-i3_config_keycodes,v 1.7 2012/05/10 09:27:37 dcoppa Exp $
Fix keycodes for the "Left", "Down", "Up" and "Right" keys: they're
different between Linux and OpenBSD.
Fix a pasto too: "bindsym" --> "bindcode"
--- i3.config.keycodes.orig Wed Apr 25 23:21:25 2012
+++ i3.config.keycodes Thu May 10 11:00:55 2012
@@ -17,13 +17,13 @@ font -misc-fixed-medium-r-normal--13-120-75-75-C-70-is
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
# change focus
bindcode $mod+44 focus left
@@ -32,10 +32,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
@@ -44,10 +44,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
@@ -120,10 +120,10 @@ mode "resize" {
bindcode 47 resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
- bindsym 113 resize shrink width 10 px or 10 ppt
- bindsym 116 resize grow height 10 px or 10 ppt
- bindsym 111 resize shrink height 10 px or 10 ppt
- bindsym 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"
@@ -135,5 +135,5 @@ bindcode $mod+27 mode "resize"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
- status_command i3status
+ status_command ${LOCALBASE}/bin/i3status
}