regolith-linux / regolith-desktop

Meta package for the Regolith Desktop Environment
1.5k stars 31 forks source link

Sway: Keyboard Layout Handling differs to I3 For Shortcut Help #1004

Closed aykborstelmann closed 5 months ago

aykborstelmann commented 5 months ago

Describe the bug On the German keyboard layout the questionmark is on the US underscore keybinding. Since in the sway/config.d/20_ilia bindsym --to-code is used for the help keyboard shortcut, this shortcut would need to be executed via Super+Shift+minus (from German perspective). Strangly pressing the original US shortcut (Super+Shift+minus from German perspective) does nothing at all. In turn the decrease gaps shortcut lies on the German Super+? which is quite confusing. When using regolith with i3 this is not the case. bindsym --to-code are also not in place in the corresponding i3/config.d folder.

image

To Reproduce Select German keyboard layout and try to invoke the help.

Expected behavior The help window opens, which it does not.

Installation Details

Additional context Add any other context about the problem here.

SoumyaRanjanPatnaik commented 5 months ago

Try setting XKB_DEFAULT_LAYOUT=de in .config/environment.d/kb_layout.conf where de is the layout code for your keyboard.

aykborstelmann commented 5 months ago

Ah, thank you ! That's what indeed solves the problem. I had already rewritten the config files myself.

But why does this not occur on I3 ? And did I overlooked something in the regolith documentation ?