waycrate / swhkd

Sxhkd clone for Wayland (works on TTY and X11 too)
https://git.sr.ht/~shinyzenith/swhkd
BSD 2-Clause "Simplified" License
679 stars 47 forks source link

Implement altgr modifier #213

Closed samsonnagamani closed 1 year ago

samsonnagamani commented 1 year ago

Changes the behavior of the right alt key. Now the right alt key will be it's own independent modifier key. The right alt key is usually called the "alt graph" or "alt gr" keys on non-us English keyboards.

The alt gr key usually allows for typing foreign symbols, accented letters, äßöü, etc. However since swhkd treats the right alt the same as the left alt, there was no way to type these characters.

The changes made allow for users to keep using the left alt key to work as normal, but give the choice to users to utilise another "layer" of characters, or another "layer" of hotkeys. Hence, it does not remove any functionality, and not break any configuration files.

https://en.wikipedia.org/w/index.php?title=QWERTY&lang=en#United_States https://en.wikipedia.org/wiki/Alt_key?lang=en https://en.wikipedia.org/w/index.php?title=AltGr_key&lang=en

Shinyzenith commented 1 year ago

@samsonnagamani Thanks for contributing. I'll wait for a review from another team member, if they don't respond in time, I shall do the needful.

Shinyzenith commented 1 year ago

Merged as https://github.com/waycrate/swhkd/commit/0602847bc3fde8413baca5c9f2f68333273eb2f8