mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-24 18:58:33 +02:00
keyboard: simplify configuration
xmodmap seems to modify the layout and will be kept if we switch to another layout. Therefore, we only need to call it on start. Just move the keyboard configuration to `start.lua`. `keyboard.lua` is just here to manage kbdd.
This commit is contained in:
parent
e66a4e79da
commit
f5aa2a1b51
2 changed files with 12 additions and 26 deletions
10
rc/start.lua
10
rc/start.lua
|
@ -26,17 +26,25 @@ local execute = {
|
|||
if config.hostname == "naruto" then
|
||||
execute = awful.util.table.join(
|
||||
execute, {
|
||||
-- Keyboard and mouse
|
||||
"xset m 4 3", -- Mouse acceleration
|
||||
"setxkbmap us,fr '' compose:rctrl ctrl:nocaps",
|
||||
"xmodmap -e 'keysym Pause = XF86ScreenSaver'",
|
||||
})
|
||||
elseif config.hostname == "neo" then
|
||||
execute = awful.util.table.join(
|
||||
execute, {
|
||||
-- Keyboard configuration
|
||||
-- Keyboard and mouse
|
||||
"xset m 3 3", -- Mouse acceleration
|
||||
"setxkbmap us,fr '' compose:rctrl ctrl:nocaps",
|
||||
"xmodmap -e 'keysym Pause = XF86ScreenSaver'",
|
||||
})
|
||||
elseif config.hostname == "guybrush" then
|
||||
execute = awful.util.table.join(
|
||||
execute, {
|
||||
-- Keyboard and mouse
|
||||
"setxkbmap us,fr '' compose:rwin ctrl:nocaps",
|
||||
"xmodmap -e 'keysym = XF86ScreenSaver'",
|
||||
-- Wheel emulation
|
||||
"xinput set-int-prop 'TPPS/2 IBM TrackPoint' 'Evdev Wheel Emulation' 8 1",
|
||||
"xinput set-int-prop 'TPPS/2 IBM TrackPoint' 'Evdev Wheel Emulation Button' 8 2",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue