keys: remap Carbon X1 keys

Well, many keys are missing. Let's try to recover the useful ones.

 1. Replace Esc by backquote/tilde. The escape key is at the wrong
    position. However, there is no other key to replace escape. So, we just
    don't bind it. There is only one shortcut using escape. I think I
    can live without it.
 2. Replace the previous backquote/tilde key (between alt and ctrl) by
    insert. I use this key for pasting into terminals.
 3. Replace both Home and End by Ctrl_L. It seems that End is hardly
    used. Maybe there is a way to replace it by something else.
This commit is contained in:
Vincent Bernat 2014-06-08 23:09:18 +02:00
parent 21f9dd0237
commit 41d21fb10a
2 changed files with 8 additions and 5 deletions

View file

@ -55,8 +55,11 @@ elseif config.hostname == "zoro" then
execute, {
-- Keyboard and mouse
"setxkbmap us,fr '' compose:ralt grp:rctrl_rshift_toggle",
"xmodmap -e 'keysym Home = Control_L'",
"xmodmap -e 'keysym End = Control_L'",
"xmodmap -e 'keycode 110 = Control_L'", -- home
"xmodmap -e 'keycode 115 = Control_L'", -- end
"xmodmap -e 'add control Control_L Control_R'",
"xmodmap -e 'keycode 49 = Insert", -- between alt_l and ctrl_l
"xmodmap -e 'keycode 9 = grave asciitilde'", -- escape
-- Wheel emulation
"xinput set-prop 'TPPS/2 IBM TrackPoint' 'Evdev Wheel Emulation' 1",
"xinput set-prop 'TPPS/2 IBM TrackPoint' 'Evdev Wheel Emulation Button' 2",

View file

@ -100,7 +100,7 @@ shifty.init()
config.keys.global = awful.util.table.join(
config.keys.global,
keydoc.group("Tag management"),
awful.key({ modkey }, "Escape", awful.tag.history.restore, "Switch to previous tag"),
awful.key({ modkey, "Control" }, "`", awful.tag.history.restore, "Switch to previous tag"),
awful.key({ modkey }, "Left", awful.tag.viewprev),
awful.key({ modkey }, "Right", awful.tag.viewnext),
awful.key({ modkey, "Shift"}, "o",