awesomeWM / awesome

awesome window manager
https://awesomewm.org/
GNU General Public License v2.0
6.39k stars 597 forks source link

Mode_switch (mod5) + space not working #3754

Open ad-on-is opened 1 year ago

ad-on-is commented 1 year ago

Output of awesome --version:

awesome v4.3-1585-g1239cdf4b (Too long) • Compiled against Lua 5.4.4 (running with 0.9.2) • API level: 4 • D-Bus support: yes • xcb-errors support: no • execinfo support: yes • xcb-randr version: 1.6 • LGI version: /usr/share/lua/5.4/lgi/version.lua • Transparency enabled: yes • Custom search paths: no

How to reproduce the issue:

I configured my right Windows-key to act as Mode_switch. Awesomewm recognizes it as "mod5". Most of the keybindings work with that modifier, except for the space bar.

Assign a keybinding

awful.key(
    { "Mod5" }, "space", 
        function() awful.spawn( "kitty" ) end
)

Actual result:

Space is inserted.

Expected result:

kitty should open

ghost commented 1 year ago

Which key are you calling meta? Mod5 (with capital 'M') is usually AltGr: https://awesomewm.org/apidoc/input_handling/awful.key.html#modifiers

ad-on-is commented 1 year ago

Which key are you calling meta? Mod5 (with capital 'M') is usually AltGr: https://awesomewm.org/apidoc/input_handling/awful.key.html#modifiers

Oh sorry... I meant "Mode_switch" not meta key...

ghost commented 1 year ago

Ok so just use a capital 'M', it should work as expected


awful.key(
    { "Mod5" }, "space", 
        function() awful.spawn( "kitty" ) end
)
ad-on-is commented 1 year ago

I should really double-read my texts before/after posting. I have it as "Mod5", not "mod5" as written.

ghost commented 1 year ago

Oh ok (I missed your first edit sorry), so a minimal config file with this problem would help.

I tested on my machine, on which the config is close to stock awesome, it works fine, although to me Mod5 is AltGr not right windows since I don't have that key.

Maybe your keymap (and any changes you made to it) could be helpful too.

unai-ndz commented 1 year ago

Could it be xfce-shortcuts or any other key binding software overriding awesomewm? I had this recently.

actionless commented 1 year ago

comment out the shortcut in AwesomeWM config and check with xev - is it still binded to something or not anymore