Sunday, December 7, 2014

linux - Russian keyboard layout on French keyboard (debian 8.3)



I have laptop Lenovo Z51-70 with french keyboard (keys and their position, because french keyboard have little differ keys combination).



To use correctly "classic" qwerty-english layout i use "mac layout" (on another i have problem with missing ' on [%รน] button), to use azerty-french layout i use latin9 (legacy, alternative). But with russian biggest problem - i missing




, .


on [/?]/[.,] key (on my keyboard this key have icon [§!]) in Mac-layout or in Legacy layout.
Normally (windows style for normal keyboard) in english this button gives



/?



in russian in gives



,.


but mine in russian mode gives same keys like in english layout.



So: which layout i can use on french keyboard to have all russian keys on it? Or maybe it's possible to edit layout (change what key return)?


Answer



So.. solution how to get [.,] on [!§] key on french AZERTY keyboard with rus(legacy) layout:




via root open file /usr/share/X11/xkb/symbols/ru and add



key  { [       period,       comma  ] };


in section:



xkb_symbols "legacy" {



So finally it will be:



partial alphanumeric_keys
xkb_symbols "legacy" {

include "ru(common)"
name[Group1]= "Russian (legacy)";
key { [ period, comma ] };
};



After reboot french AZERTY keyboard on rus-legacy layout will work like russian/english keyboard on rus-legacy layout.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...