mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-19 18:34:31 +02:00
keys: remove keyboard configuration from Lua code
Everything is now handled by inputplug.
This commit is contained in:
parent
3e9a3f8662
commit
a6506a223f
4 changed files with 35 additions and 20 deletions
20
rc/start.lua
20
rc/start.lua
|
@ -21,26 +21,6 @@ local execute = {
|
|||
"xdg-mime default gpicview.desktop image/png image/x-apple-ios-png image/jpeg image/jpg image/gif"
|
||||
}
|
||||
|
||||
-- Keyboard/Mouse configuration
|
||||
if config.hostname == "zoro" then
|
||||
execute = awful.util.table.join(
|
||||
execute, {
|
||||
-- Keyboard and mouse
|
||||
"setxkbmap us,fr '' compose:ralt grp:rctrl_rshift_toggle",
|
||||
"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",
|
||||
"xinput set-prop 'TPPS/2 IBM TrackPoint' 'Evdev Wheel Emulation Axes' 6 7 4 5",
|
||||
-- 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 Area' 0 0 2200 0"})
|
||||
end
|
||||
|
||||
os.execute(table.concat(execute, ";"))
|
||||
|
||||
-- Spawn various X programs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue