1
0
Fork 0

workaround should be applied before setxbmap, duh

This commit is contained in:
Von Random 2015-01-24 17:38:22 +03:00
parent 7adf0670ce
commit a1342e39ea

4
rc.lua
View file

@ -662,10 +662,10 @@ client.connect_signal('unfocus', function(c) c.border_color = beautiful.border_n
-- {{{ Autostart -- {{{ Autostart
-- don't forget you sync this file -- don't forget you sync this file
-- this shit runs every time you restart your wm, dumbass. -- this shit runs every time you restart your wm, dumbass.
---- set keyboard layouts
awful.util.spawn_with_shell('setxkbmap -layout us,ru -variant altgr-intl,typewriter -option ctrl:nocaps,grp:win_space_toggle,compose:menu,grp_led:scroll')
---- apply the workaround to make mouse work outside en-us keyboard layout ---- apply the workaround to make mouse work outside en-us keyboard layout
awful.util.spawn_with_shell('xkbcomp $DISPLAY - | egrep -v "group . = AltGr;" | xkbcomp - $DISPLAY') awful.util.spawn_with_shell('xkbcomp $DISPLAY - | egrep -v "group . = AltGr;" | xkbcomp - $DISPLAY')
---- set keyboard layouts
awful.util.spawn_with_shell('setxkbmap -layout us,ru -variant altgr-intl,typewriter -option ctrl:nocaps,grp:win_space_toggle,compose:menu,grp_led:scroll')
---- populate xrdb with .Xresources config ---- populate xrdb with .Xresources config
awful.util.spawn_with_shell('xrdb /home/von/.Xresources') awful.util.spawn_with_shell('xrdb /home/von/.Xresources')
---- execute all the other shit, installation specific ---- execute all the other shit, installation specific