You are not logged in.

#1 2024-09-11 15:35:13

redtilky
Member
Registered: 2024-09-10
Posts: 2

Creating custom keyboard layout, PROG-1 to umlaut a "ä"

Hi People,

I am new to Arch Linux, switched to Arch from Mr. Dictator Microsoft like 1 day ago and so far now I am learning it non stop. But at the same time I need to follow my school life and I need to use multilingual keyboard. I found tr_q-latin5.map.gz which has all the necessary keys (q, w, x, ğ, ß, ü, ç, ö, ş, ı) of the all 3 languages I use. But it is only missing umlaut a which is "ä".

I have a key called PROG-1 key, which was used in Microsoft Windows to launch programs. Its keycode = 149 and I want to attach "ä" to this key. So far I copied the layout "tr_q-latin5.map.gz" and using vim added this line at the end:

keycode 149 = ä

I tried several times this command:

sudo loadkeys my_tr_q-latin5.map.gz

but I kept getting this error code, each time I run it:

syntax error, unexpected ERROR, expecting EOL

Is there something I need to know about this special character, such as name or something else. Do I have to write it like this?

keycode 149 = Umlaut A

I would be happy if you guys help me. After testing my layout successfully I am planning to switching it completely by updating config.

I thank the all users in this post for their help.

Last edited by redtilky (2024-09-11 15:35:49)


"Eheheheheheheheheh big_smile" - a wise quote by redtilky

Offline

#3 2024-09-14 01:59:25

Julia
Member
From: Belgium
Registered: 2024-09-14
Posts: 13

Re: Creating custom keyboard layout, PROG-1 to umlaut a "ä"

Hi there!

Have a look at the packages xbindkeys and xdotool.
xbindkeys lets you launch shell commands with your keyboard, and xdotool lets you send keystrokes with shell commands.  Combining the two should be able to achieve what you're asking.

It is also possible to input any unicode character by pressing CTRL+SHIFT+U and typing the unicode hex value followed by space or enter.


Intel Pentium 4 Northwood C 3.4 GHz | NVIDIA GeForce2 MX | ASRock P4i65GV | 1.5 GB DDR333 | 80 GB WD HDD + 150 GB Maxtor HDD

Offline

#4 2024-09-14 05:39:03

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

Re: Creating custom keyboard layout, PROG-1 to umlaut a "ä"

Ctrl+shift+u is a gym/ibis thing and next to writing custom keyboard layouts, xcompose would be a reasonable approach (utilizing dead keys or the multi key)

Offline

Board footer

Powered by FluxBB