You are not logged in.
Hi! My keyboard has a broken key (Q q), I'm trying to remap it to Caps Lock. I'm using rukbi keyboard layout with typographic characters (https://aur.archlinux.org/packages/rukbi/).
I opened file 'rukbi_en' in /usr/share/X11/xkb/symbols and tried to add a line
key <CAPS> {[q, Q]};saved the file, then I executed:
setxkbmap rukbi_enbut Caps Lock still works as Caps Lock. I tried to change other lines just to make sure I was editing the proper file and the following change worked:
key <AD02> {[d, D]};So key W w now makes D d. But the trick still does not work with Caps Lock. Also I tried xmodmap, but result was even worse. What should I do for the proper remapping?
Last edited by Vir (2020-11-08 15:30:24)
Offline
I think the problem is trying to use a modifier key - CapsLock. You could try it with the Windows key, it might work. Otherwise I would suggest using a punctuation key that you don't really need.
Offline
It's weird because I've already tried this method with other distro on the same laptop (Parrot OS) and it worked with Caps Lock.
Offline
It's possible to remap caps this way.
Please post the file you created as well as the output of "setxkbmap -print -query"
Offline
Thanks, seth! I tried
setxkbmap -print -queryand got the following:
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+rukbi_en+inet(evdev)+group(shift_caps_toggle)+group(alt_space_toggle)+group(ctrl_shift_toggle)" };
xkb_geometry { include "pc(pc105)" };
};
rules: evdev
model: pc105
layout: rukbi_en
options: grp:alt_space_toggle,grp:shift_caps_toggle,grp:ctrl_shift_toggleI noticed option 'grp:shift_caps_toggle', deleted it and everything now works just perfect! Thank you!
Offline
I know this is old, but consider using https://github.com/rvaiya/keyd. It is a system wide solution that should work everywhere.
Offline
Do you intend to now necrobump each and every long solved remotely keymap related thread to plug this tool?
In case: stop.
Consider and feel free to write a wiki article about it, but the forum isn't a billboard.
Offline
I know this is old, but consider using https://github.com/rvaiya/keyd. It is a system wide solution that should work everywhere.
One more time, and we will ban your account. It appears you signed up for the sole purpose of spamming the accounts with that project.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Do you intend to now necrobump each and every long solved remotely keymap related thread to plug this tool?
In case: stop.
Consider and feel free to write a wiki article about it, but the forum isn't a billboard.
Apologies. I am trying to seed interest by demonstrating its utility for various use cases. Since the author of this post expressed interest in precisely what the tool was intended for I thought it was relevant enough to warrant posting.
Offline
Aetnaeus wrote:I know this is old, but consider using https://github.com/rvaiya/keyd. It is a system wide solution that should work everywhere.
One more time, and we will ban your account. It appears you signed up for the sole purpose of spamming the accounts with that project.
Noted. For what it is worth I have been a member of the arch community for more than a decade and have a different account. Spamming the forum wasn't my intention.
Offline
Spamming the forum wasn't my intention.
Fair enough. Thanks.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline