You are not logged in.

#1 2022-01-21 10:55:46

Pena
Member
Registered: 2019-10-04
Posts: 78

[closed]Map a key while having shift and caps with different behaviour

So im still deciding where to put the < and > key's, and i think ive decided how preferbly i would want z to output z, shift z to output >, shift x to output <, while the caps of both would imprint Z and X respectively
is this possible i rarely use X when im writting and i don't remember writting Z in a long long while.

I've tried using xmodmap but every time i do so weirdly shift z doesn't work and the caps lock behaves to upper the key, worse is that xmodmap weirdly ruins whatever was already set when i do setxkbmap so...

Weirder is that the control+z has been broke for a long time(2+ years) and when i started it was a minor thing until i got lazy and never figured out why i can't control z in any application, inicially i installed KDE but right now im on openbox

Last edited by Pena (2022-01-26 13:27:19)

Offline

#2 2022-01-21 14:34:52

seth
Member
Registered: 2012-09-03
Posts: 51,039

Re: [closed]Map a key while having shift and caps with different behaviour

caps lock is distriguishable from shift, but iirc not w/ xmodmap - you'll have to derive an xkb map.
Eg. /usr/share/X11/xkb/symbols/de has

    key <AE11> {type[Group1]="FOUR_LEVEL_PLUS_LOCK",  symbols[Group1]=
                  [ssharp, question, backslash, questiondown, 0x1001E9E ]};

what has:
1. ß
2. ?
3. \
4. ¿
5. UTF-8 1E9E which is the borderline useless capital "ẞ" which is reached w/ caps_lock active

Online

#3 2022-01-26 13:26:08

Pena
Member
Registered: 2019-10-04
Posts: 78

Re: [closed]Map a key while having shift and caps with different behaviour

seth wrote:

caps lock is distriguishable from shift, but iirc not w/ xmodmap - you'll have to derive an xkb map.
Eg. /usr/share/X11/xkb/symbols/de has

    key <AE11> {type[Group1]="FOUR_LEVEL_PLUS_LOCK",  symbols[Group1]=
                  [ssharp, question, backslash, questiondown, 0x1001E9E ]};

what has:
1. ß
2. ?
3. \
4. ¿
5. UTF-8 1E9E which is the borderline useless capital "ẞ" which is reached w/ caps_lock active

I ended up just switching two keys

Offline

#4 2022-01-26 13:38:46

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: [closed]Map a key while having shift and caps with different behaviour

Please do not mark a thread [closed] -- that is used by staff when a thread is not open for further replies. If you would like a thread closed or deleted, please use the Report button. If your problem is solved, mark the thread [SOLVED].

Offline

Board footer

Powered by FluxBB