You are not logged in.
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
In what application? By 'US keyboard' do you mean the piece of hardware with keys or locale settings? Post the output of 'localectl'.
Offline
@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:raltNow 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
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
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