Awesome WM ignores input in non-us layout

I started using Awesome WM and found it annoying that it ignores entering the Launch widget ( mod+R ) when the current layout is not US , say RU . In addition, it ignores any input (mouse klicks, keyboard - not even mock keys, such as Esc!) In its launcher / mainmenu and the "list of clients", etc. I am using Arch Linux, and ~/.xinitrc has the following line:

 setxkbmap -layout "us, ru" -option "grp:caps_toggle, grp_led:caps" 

Awesome rc.lua default config has neither layout nor drop-specific stuff, but I tried to isolate the problem and removed the caplock switch option from my xinitrc. It did not help.

xev output shows that only the thing changes when I switch the layout (with the capsule) - this is the "state":

- left-click (current layout: USA, everything is in order) -

 LeaveNotify event, serial 33, synthetic NO, window 0x1600001, root 0x95, subw 0x0, time 13419931, (151,498), root:(835,518), mode NotifyGrab, detail NotifyAncestor, same_screen YES, focus YES, state 256 EnterNotify event, serial 33, synthetic NO, window 0x1600001, root 0x95, subw 0x0, time 13419931, (151,498), root:(835,518), mode NotifyUngrab, detail NotifyAncestor, same_screen YES, focus YES, state 256 KeymapNotify event, serial 33, synthetic NO, window 0x0, keys: 4294967189 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ButtonPress event, serial 33, synthetic NO, window 0x1600001, root 0x95, subw 0x0, time 13419931, (151,498), root:(835,518), state 0x0, button 1, same_screen YES ButtonRelease event, serial 33, synthetic NO, window 0x1600001, root 0x95, subw 0x0, time 13420028, (151,498), root:(835,518), state 0x100, button 1, same_screen YES 

- lock locks (change location US → RU) -

 KeyPress event, serial 33, synthetic NO, window 0x1600001, root 0x95, subw 0x0, time 13420911, (151,498), root:(835,518), state 0x0, keycode 66 (keysym 0xfe08, ISO_Next_Group), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 33, synthetic NO, window 0x1600001, root 0x95, subw 0x0, time 13420998, (151,498), root:(835,518), state 0x2000, keycode 66 (keysym 0xfe08, ISO_Next_Group), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False 

- left click (now Awesome cannot see mouse clicks in its widgets / dialogs ...) -

 LeaveNotify event, serial 33, synthetic NO, window 0x1600001, root 0x95, subw 0x0, time 13422624, (151,498), root:(835,518), mode NotifyGrab, detail NotifyAncestor, same_screen YES, focus YES, state 8448 EnterNotify event, serial 33, synthetic NO, window 0x1600001, root 0x95, subw 0x0, time 13422625, (151,498), root:(835,518), mode NotifyUngrab, detail NotifyAncestor, same_screen YES, focus YES, state 8448 KeymapNotify event, serial 33, synthetic NO, window 0x0, keys: 4294967189 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ButtonPress event, serial 33, synthetic NO, window 0x1600001, root 0x95, subw 0x0, time 13422624, (151,498), root:(835,518), state 0x0, button 1, same_screen YES ButtonRelease event, serial 33, synthetic NO, window 0x1600001, root 0x95, subw 0x0, time 13422721, (151,498), root:(835,518), state 0x2100, button 1, same_screen YES 

- locks of locks (change of layout RU → US) -

 KeyPress event, serial 33, synthetic NO, window 0x1600001, root 0x95, subw 0x0, time 13423836, (151,498), root:(835,518), state 0x2000, keycode 66 (keysym 0xfe08, ISO_Next_Group), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 33, synthetic NO, window 0x1600001, root 0x95, subw 0x0, time 13423947, (151,498), root:(835,518), state 0x0, keycode 66 (keysym 0xfe08, ISO_Next_Group), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False 

- escape (for example, closes the amazing main menu) -

 KeyPress event, serial 33, synthetic NO, window 0x1600001, root 0x95, subw 0x0, time 13426419, (151,498), root:(835,518), state 0x0, keycode 9 (keysym 0xff1b, Escape), same_screen YES, XLookupString gives 1 bytes: (1b) "" XmbLookupString gives 1 bytes: (1b) "" XFilterEvent returns: False KeyRelease event, serial 33, synthetic NO, window 0x1600001, root 0x95, subw 0x0, time 13426514, (151,498), root:(835,518), state 0x0, keycode 9 (keysym 0xff1b, Escape), same_screen YES, XLookupString gives 1 bytes: (1b) "" XFilterEvent returns: False 

- lock locks (change location US → RU) -

 KeyPress event, serial 33, synthetic NO, window 0x1600001, root 0x95, subw 0x0, time 13427017, (151,498), root:(835,518), state 0x0, keycode 66 (keysym 0xfe08, ISO_Next_Group), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 33, synthetic NO, window 0x1600001, root 0x95, subw 0x0, time 13427096, (151,498), root:(835,518), state 0x2000, keycode 66 (keysym 0xfe08, ISO_Next_Group), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False 

- escape (ignored) -

 KeyPress event, serial 33, synthetic NO, window 0x1600001, root 0x95, subw 0x0, time 13427782, (151,498), root:(835,518), state 0x2000, keycode 9 (keysym 0xff1b, Escape), same_screen YES, XLookupString gives 1 bytes: (1b) "" XmbLookupString gives 1 bytes: (1b) "" XFilterEvent returns: False KeyRelease event, serial 33, synthetic NO, window 0x1600001, root 0x95, subw 0x0, time 13427877, (151,498), root:(835,518), state 0x2000, keycode 9 (keysym 0xff1b, Escape), same_screen YES, XLookupString gives 1 bytes: (1b) "" XFilterEvent returns: False 

PS: I also wonder where to find key abscesses for awesome (e.g. Shift_R) and what exactly do these Mod1, Mod2, etc. mean.

UPD: this is basically the same problem that is described in this question , but the author said only about switching to the hood, and not about switching by default (Alt-Shift).

+6
source share
2 answers

I duplicate the comment on the answer accepted here for better visibility.

The workaround is to edit the file /usr/share/X11/xkb/compat/basic and delete or comment out the lines:

 group 2 = AltGr; group 3 = AltGr; group 4 = AltGr; 

as suggested here

+2
source

Source: https://habr.com/ru/post/943758/


All Articles