You are not logged in.

#1 2021-12-30 21:18:29

upper-dev
Member
Registered: 2021-12-30
Posts: 7

[SOLVED] custom keymap not Working

i'm trying to make a custom keyboard layout of de_CH-latin1 but only flip the y and z
i followed the wiki of making a custom keyboard layout but all i got was errors neither did i understand the tutorial well

so i copied the original keymap file (de_CH-latin1) and added these 2 lines

keycode  89 = z
keycode  90 = y

which in theory should switch the z and y keys but that didn't work either it loaded the keymap but didn't change the keys. it didn't show any errors or anything

any help would be greatly appreciated

Last edited by upper-dev (2021-12-31 14:15:28)

Offline

#2 2021-12-31 09:15:39

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

Re: [SOLVED] custom keymap not Working

Do you want to change the keymap
a) on the console
b) on x11
c) on wayland?

Offline

#3 2021-12-31 11:29:53

upper-dev
Member
Registered: 2021-12-30
Posts: 7

Re: [SOLVED] custom keymap not Working

seth wrote:

Do you want to change the keymap
a) on the console
b) on x11
c) on wayland?

as of current time only console.
i also use x11 but i'll try to make a keymap for that until i finish with console keymap

Offline

#4 2021-12-31 13:29:17

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

Re: [SOLVED] custom keymap not Working

/usr/share/kbd/keymaps/i386/qwertz/ch_qwerty-latin1.map

include "de_CH-latin1.map"

keycode  21 = y
keycode  44 = z
sudo loadkeys ch_qwerty-latin1

Should do for the console?

Offline

#5 2021-12-31 14:12:24

upper-dev
Member
Registered: 2021-12-30
Posts: 7

Re: [SOLVED] custom keymap not Working

seth wrote:

/usr/share/kbd/keymaps/i386/qwertz/ch_qwerty-latin1.map

include "de_CH-latin1.map"

keycode  21 = y
keycode  44 = z
sudo loadkeys ch_qwerty-latin1

Should do for the console?

thank you, apparently it was the keycodes i was changing that was wrong. i used the wrong keycode map to configure the keymap

Offline

#6 2021-12-31 14:14:45

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

Re: [SOLVED] custom keymap not Working

You can check out the codes w/ "sudo showkey"

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