You are not logged in.

#1 2024-01-13 09:05:19

millus
Member
Registered: 2019-07-21
Posts: 244

[SOLVED] xmodmap: key and CTRL+key are the same, ignoring the mapping

I just wanted to experiment a bit with key bindings and did

xmodmap -e "keycode 35 = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15"

to rebind the "plus" key.
However, it doesn't work for CTRL shiftkey specifically. When pressing CTRL and plus, it produces "1", ie same as if just pressing plus w/o the CTRL modifier.
I tried some other keys instead of plus and it's always the same: CTRL and key are same as just the key.
SHIFT and ALT work fine.
What am I missing? How can I make CTRL and a key produce a different result than just the key itself?

SOLUTION:
CTRL is not a shift key, somehow D: So can't remap normal L_CTRL+key combos to produce different results.

Last edited by millus (2024-01-13 21:01:36)

Offline

#2 2024-01-13 09:45:30

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,381

Re: [SOLVED] xmodmap: key and CTRL+key are the same, ignoring the mapping

Nothing.
Unlike shift and altgr (ISO_Level3_Shift, that's not the "Alt" modifier!), ctrl isn't a level shift.
You can define an ISO_Level5_Shift key (ctrl is a stupid idea if you've only one of them, you'll still need the state modifier for copy and pasting wink) and use that.

setxbkmap -option lv5:rctrl_switch

will turn the right ctrl into ISO_Level5_Shift

Offline

#3 2024-01-13 20:48:02

millus
Member
Registered: 2019-07-21
Posts: 244

Re: [SOLVED] xmodmap: key and CTRL+key are the same, ignoring the mapping

Oh thanks, didn't know CTRL was not actually a shift key! It's like, EVERYTHING is a frigging shiftkey usually =_=.
Edit: Feels like I'm missing some fundamental intrinsics of this whole keycode system there o_o

Last edited by millus (2024-01-13 21:00:09)

Offline

#4 2024-01-13 20:54:47

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,381

Re: [SOLVED] xmodmap: key and CTRL+key are the same, ignoring the mapping

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB