keyboard: use kbdd for keyboard switching

A popup is used to indicate the current keyboard layout. Maybe we
could use a widget instead.
This commit is contained in:
Vincent Bernat 2012-07-14 12:29:48 +02:00
parent 0250299134
commit 5d55609657
3 changed files with 59 additions and 8 deletions

View file

@ -24,23 +24,17 @@ local execute = {
if config.hostname == "naruto" then
execute = awful.util.table.join(
execute, {
-- Keyboard configuration
"xset m 4 3", -- Mouse acceleration
"setxkbmap us '' compose:rwin ctrl:nocaps",
"xmodmap -e 'keysym Pause = XF86ScreenSaver'" })
})
elseif config.hostname == "neo" then
execute = awful.util.table.join(
execute, {
-- Keyboard configuration
"xset m 3 3", -- Mouse acceleration
"setxkbmap us '' compose:rwin ctrl:nocaps",
"xmodmap -e 'keysym Pause = XF86ScreenSaver'"})
})
elseif config.hostname == "guybrush" then
execute = awful.util.table.join(
execute, {
-- Keyboard configuration
"setxkbmap us '' compose:rctrl ctrl:nocaps",
"xmodmap -e 'keysym XF86AudioPlay = 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",