Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Remap Greater-Than and Less-Than Keys on ThinkPad T14 with German (Macintosh) Layout in Ubuntu #912

Open
tarasowski opened this issue Jan 17, 2025 · 4 comments

Comments

@tarasowski
Copy link

I’m encountering a strange issue that I can’t seem to resolve, and I’m hoping someone can help me. I’m using a ThinkPad T14 with a US keyboard layout on Ubuntu. I’ve configured the German (Macintosh) layout, but I’m missing the greater-than (>) and less-than (<) keys that usually appear on the "view layout."

I’ve tried remapping other keys to the greater-than and less-than keys, but when I do, I get semicolon (;) and colon (:) instead. Is there a way to remap any other key to these greater-than and less-than symbols, or perhaps use macros to achieve this?

@lobre
Copy link

lobre commented Jan 17, 2025

Hey, can you please post a quick reproduction of a configuration that reflects the problem you have? This can help to see the problem in practice. Thanks a lot!

@tarasowski
Copy link
Author

tarasowski commented Jan 17, 2025

Hi Loric,

here is my default.conf:

[ids]

*

[main]


capslock = overload(control, esc)
esc = capslock
leftmeta = rightalt
leftalt = leftcontrol
rightalt = leftcontrol
sysrq = rightalt

a = >
b = <

after running sudo keyd reload when I type a, I get ; and when I type b I get :
So I'm not getting greater or lower as it supposed to be.

Thank you very much!

@lobre
Copy link

lobre commented Jan 17, 2025

Thanks!

I’ve configured the German (Macintosh) layout

What do you mean by that? The layout at the os level?

@tarasowski
Copy link
Author

tarasowski commented Jan 17, 2025

Yes exactly the layout at the os level, on my thinkpad the physical keyboard is US.
This is how I fixed it, but I'm wondering if something like this would work in keyd

sudo vi /usr/share/X11/xkb/symbols/de

# find this section
xkb_symbols "mac" {
    ...
   # add this at the end
   key <TLDE> { [ less, greater ] };
};


# run the command
sudo dpkg-reconfigure xkb-data

# log out and log in again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants