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,15 +55,18 @@ elseif config.hostname == "zoro" then
execute, { execute, {
-- Keyboard and mouse -- Keyboard and mouse
"setxkbmap us,fr '' compose:ralt grp:rctrl_rshift_toggle", "setxkbmap us,fr '' compose:ralt grp:rctrl_rshift_toggle",
"xmodmap -e 'keysym Home = Control_L'", "xmodmap -e 'keycode 110 = Control_L'", -- home
"xmodmap -e 'keysym End = Control_L'", "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 -- Wheel emulation
"xinput set-prop 'TPPS/2 IBM TrackPoint' 'Evdev Wheel Emulation' 1", "xinput set-prop 'TPPS/2 IBM TrackPoint' 'Evdev Wheel Emulation' 1",
"xinput set-prop 'TPPS/2 IBM TrackPoint' 'Evdev Wheel Emulation Button' 2", "xinput set-prop 'TPPS/2 IBM TrackPoint' 'Evdev Wheel Emulation Button' 2",
"xinput set-prop 'TPPS/2 IBM TrackPoint' 'Evdev Wheel Emulation Axes' 6 7 4 5", "xinput set-prop 'TPPS/2 IBM TrackPoint' 'Evdev Wheel Emulation Axes' 6 7 4 5",
-- Make touchpad buttons work -- Make touchpad buttons work
"xinput set-prop 'SynPS/2 Synaptics TouchPad' 'Synaptics Soft Button Areas' 3656 5112 0 2200 2928 3656 0 2200", "xinput set-prop 'SynPS/2 Synaptics TouchPad' 'Synaptics Soft Button Areas' 3656 5112 0 2200 2928 3656 0 2200",
"xinput set-prop 'SynPS/2 Synaptics TouchPad' 'Synaptics Area' 0 0 2200 0"}) "xinput set-prop 'SynPS/2 Synaptics TouchPad' 'Synaptics Area' 0 0 2200 0"})
end end
os.execute(table.concat(execute, ";")) os.execute(table.concat(execute, ";"))

View file

@ -100,7 +100,7 @@ shifty.init()
config.keys.global = awful.util.table.join( config.keys.global = awful.util.table.join(
config.keys.global, config.keys.global,
keydoc.group("Tag management"), 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 }, "Left", awful.tag.viewprev),
awful.key({ modkey }, "Right", awful.tag.viewnext), awful.key({ modkey }, "Right", awful.tag.viewnext),
awful.key({ modkey, "Shift"}, "o", awful.key({ modkey, "Shift"}, "o",