mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-22 11:54:27 +02:00
keyboard: use XKB groups to switch between layouts
The use of XKB groups allow to switch between layouts with a key combination (RCTRL + RSHIFT in our case). I don't need kbdd since I am not really interested in switching keyboard layout per window.
This commit is contained in:
parent
dad27fe5d0
commit
63eb3ff794
3 changed files with 4 additions and 42 deletions
|
@ -23,12 +23,13 @@ local execute = {
|
|||
"xrdb -merge " .. awful.util.getdir("config") .. "/Xresources",
|
||||
}
|
||||
|
||||
-- Keyboard/Mouse configuration
|
||||
if config.hostname == "naruto" then
|
||||
execute = awful.util.table.join(
|
||||
execute, {
|
||||
-- Keyboard and mouse
|
||||
"xset m 4 3", -- Mouse acceleration
|
||||
"setxkbmap us,fr '' compose:rwin ctrl:nocaps",
|
||||
"setxkbmap us,fr '' compose:rwin ctrl:nocaps grp:rctrl_rshift_toggle",
|
||||
"xmodmap -e 'keysym Pause = XF86ScreenSaver'",
|
||||
})
|
||||
elseif config.hostname == "neo" then
|
||||
|
@ -36,14 +37,14 @@ elseif config.hostname == "neo" then
|
|||
execute, {
|
||||
-- Keyboard and mouse
|
||||
"xset m 3 3", -- Mouse acceleration
|
||||
"setxkbmap us,fr '' compose:rwin ctrl:nocaps",
|
||||
"setxkbmap us,fr '' compose:rwin ctrl:nocaps grp:rctrl_rshift_toggle",
|
||||
"xmodmap -e 'keysym Pause = XF86ScreenSaver'",
|
||||
})
|
||||
elseif config.hostname == "guybrush" then
|
||||
execute = awful.util.table.join(
|
||||
execute, {
|
||||
-- Keyboard and mouse
|
||||
"setxkbmap us,fr '' compose:rctrl ctrl:nocaps",
|
||||
"setxkbmap us,fr '' compose:ralt ctrl:nocaps grp:rctrl_rshift_toggle",
|
||||
"xmodmap -e 'keysym XF86AudioPlay = XF86ScreenSaver'",
|
||||
-- Wheel emulation
|
||||
"xinput set-int-prop 'TPPS/2 IBM TrackPoint' 'Evdev Wheel Emulation' 8 1",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue