Alt
( AltGr
) and the corresponding key on the keyboard. Believe me, you can get used to this method in a week - and then enjoy your whole life./usr/share/X11/xkb/symbols/typo
). Two years ago (since I have not tried) the modified file lived strictly until the next X update. Perhaps it will be convenient for someone to change this file, make a backup copy and overwrite it every time a new “system” version rolls in, I don’t know. But I choose a more elegant way. $ sudo cp /usr/share/X11/xkb/symbols/typo /usr/share/X11/xkb/symbols/mytypo $ sudo vi /usr/share/X11/xkb/symbols/mytypo
// $XKeyboardConfig$ // typographic keyboard // Sergei Stolyarov <sergei@regolit.com> // // Initial contribution by Alexey Ten <alexeyten+deb@gmail.com> // // Based on the layout proposed by Ilya Birman, // http://ilyabirman.ru/typography-layout/ // // default layout default partial xkb_symbols "base" { // 1st keyboard row key <TLDE> { [NoSymbol, NoSymbol, NoSymbol, approxeq] }; key <AE01> { [NoSymbol, NoSymbol, onesuperior] }; key <AE02> { [NoSymbol, NoSymbol, twosuperior, onehalf] }; key <AE03> { [NoSymbol, NoSymbol, threesuperior, onethird] }; key <AE04> { [NoSymbol, NoSymbol, dollar, onequarter] }; key <AE05> { [NoSymbol, NoSymbol, U2030] }; key <AE07> { [NoSymbol, NoSymbol, ampersand] }; key <AE08> { [NoSymbol, NoSymbol, enfilledcircbullet, oneeighth] }; key <AE11> { [NoSymbol, NoSymbol, emdash, hyphen] }; key <AE12> { [NoSymbol, NoSymbol, notequal, plusminus] }; // 2nd keyboard row // …
AltGr
key held down) and the fourth (with the Shift
and AltGr
keys AltGr
) in each line. NoSymbol
in the first two columns do not need to touch ! - this is an additional layout that affects only the third level. Let's add some character to the Shift+AltGr+1
key combination (in lower case, “onesuperior” is the mnemonic for “to the power of 1” - “”, and the upper one is just free). Let it be a sign of approximate equality (≈). Fortunately, mnemonics do not need to be remembered: instead of them, you can simply enter the numeric values of characters in the format “0x100XXXX”, where XXXX is the Unicode value in hexadecimal notation. The value "≈" = 2248; just replace the line: key <AE01> { [NoSymbol, NoSymbol, onesuperior] };
key <AE01> { [NoSymbol, NoSymbol, onesuperior, 0x1002248] };
~/.kde/share/config/kxkbrc
. Open it in the editor and (surprise) replace typo
with mytypo
: [Layout] DisplayNames=, IndicatorOnly=false LayoutList=us,ru LayoutLoopCount=-1 Model=pc104 ⇓⇓ Options=grp:alt_shift_toggle,grp_led:scroll,lv3:ralt_switch,misc:mytypo,numpad:microsoft,altwin:menu,keypad:oss ResetOldOptions=true ⇑⇑ ShowFlag=true ShowLayoutIndicator=true ShowSingle=true SwitchMode=WinClass Use=true
~/.gconf/desktop/gnome/peripherals/keyboard/kbd/%gconf.xml
. Open it in the editor and (surprise) replace typo
with mytypo
: <?xml version="1.0"?> <gconf> <entry name="options" mtime="1301471398" type="list" ltype="string"> <li type="string"> <stringvalue>grp grp:alt_shift_toggle</stringvalue> </li> <li type="string"> <stringvalue>lv3 lv3:ralt_switch</stringvalue> </li> <li type="string"> <stringvalue>keypad keypad:future</stringvalue> </li> <li type="string"> <stringvalue>grp_led grp_led:scroll</stringvalue> </li> <li type="string"> <stringvalue>nbsp nbsp:level3</stringvalue> </li> <li type="string"> <stringvalue>compat numpad:microsoft</stringvalue> </li> <li type="string"> ⇓⇓ <stringvalue>compat misc:mytypo</stringvalue> </li> ⇑⇑ </entry> <entry name="layouts" mtime="1301471472" type="list" ltype="string"> <li type="string"> <stringvalue>ru</stringvalue> </li> <li type="string"> <stringvalue>us</stringvalue> </li> </entry> </gconf>
Source: https://habr.com/ru/post/116485/
All Articles