From df1927e497ad54f5cfa684efb8adda0bf145d5ee Mon Sep 17 00:00:00 2001 From: Von Random Date: Wed, 21 Jan 2015 02:08:40 +0300 Subject: [PATCH] move the workaround for awesome from files that are managed by the package manager to the wm config --- rc.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rc.lua b/rc.lua index 54fa161..92848b9 100644 --- a/rc.lua +++ b/rc.lua @@ -662,8 +662,13 @@ client.connect_signal('unfocus', function(c) c.border_color = beautiful.border_n -- {{{ Autostart -- don't forget you sync this file -- 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 +awful.util.spawn_with_shell('xkbcomp $DISPLAY - | egrep -v "group . = AltGr;" | xkbcomp - $DISPLAY') +---- populate xrdb with .Xresources config awful.util.spawn_with_shell('xrdb /home/von/.Xresources') +---- execute all the other shit, installation specific if exists('/home/von/.autostart') then awful.util.spawn_with_shell('/home/von/.autostart') end