You are not logged in.

#1 2015-01-12 12:44:58

technolog
Member
From: Europe / Slovenia / Grosuplje
Registered: 2012-01-28
Posts: 117

Keyboard shortcuts for č ž š

Hello,

I am a person from Slovenia who recently decided to switch to US keyboard. We have three special characters (č, ž, š). I'd like to have shortcuts like this:

Hold Z + press X  >>  Ž
Hold C + press V >> Č
Hold S + press D >> Š

Basically, you hold the base letter and you press the key next to it. How to achieve this?

Last edited by technolog (2015-01-12 12:59:55)

Offline

#2 2015-01-12 13:48:52

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Keyboard shortcuts for č ž š

In what application? By 'US keyboard' do you mean the piece of hardware with keys or locale settings? Post the output of 'localectl'.

Offline

#3 2015-01-12 14:00:07

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: Keyboard shortcuts for č ž š

@karol: He means US keyboard layout, as in "setxkbmap us".

@technolog: I very much doubt doing it the way you want is possible. What is possible is using composition. First designate ralt (right Alt; AltGr on a Slovenian keyboard) as the compose key:

setxbmap -option compose:ralt

Now you can type those letters by pressing (and releasing) AltGr, then c, then the letter you want. For example, AltGr-c-s will produce a š.

To permanently map the compose key to ralt, copy /usr/share/X11/xorg.conf.d/10-evdev.conf to /etc/X11/xorg.conf.d, open it there and add this line to the keyboard section:

        Option          "XkbOptions"    "compose:ralt"

Last edited by Gusar (2015-01-12 14:01:17)

Offline

#4 2015-01-12 17:38:40

technolog
Member
From: Europe / Slovenia / Grosuplje
Registered: 2012-01-28
Posts: 117

Re: Keyboard shortcuts for č ž š

Would it be possible to use just AltGr + Z, withot the immediate C key?

It takes 4 keystrokes to input just one uppercase letter.

Last edited by technolog (2015-01-12 18:14:47)

Offline

#5 2015-01-12 18:38:27

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,019

Re: Keyboard shortcuts for č ž š

You could e.g. copy /usr/share/X11/xkb/symbols/pl to /usr/share/X11/xkb/symbols/si2, edit the first table in /usr/share/X11/xkb/symbols/si2 to your liking (the third element in an array is obtained by using Alt Gr+key, the fourth one by using Alt Gr+Shift+key) and then run "setxkbmap si2" to load it.

Offline

Board footer

Powered by FluxBB