Do you use let's encrypt?





8472 votes ~ 28 comments

 

XML Logo

Posted by olden on Sat 20 Sep 2008 at 13:58
Tags: none.
I want to share the experience of xkb for not cyclical switch keyboard layouts. By linuxforum.ru and with the direct assistance of a tamoshnih administrators.

This implies that after following the implementation of switch keyboard layouts will be as follows:
CapsLock - English
Shift-CapsLock - Russian
Ctrl-CapsLock - Ukrainian
Alt-CapsLock - Dvorak
Ctrl + Shift + CapsLock - a normal shift mode CapsLock

Create a file three_groups in the directory / usr/share/X11/xkb/keymap:

xkb_keymap {
xkb_keycodes { include "xfree86" };
xkb_geometry { include "pc" };
xkb_types { include "complete"
type "THREE_GROUPS" {
modifiers = Shift+Control+Alt;
map[None] = Level1;
map[Shift] = Level2;
map[Control] = Level3;
map[Control+Shift] = Level4;
map[Alt] = Level5;
level_name[Level1] = "Base";
level_name[Level2] = "Shift";
level_name[Level3] = "Ctrl";
level_name[Level4] = "Ctrl Shift";
level_name[Level5] = "Alt";
};
};
xkb_compat { include "complete" };
xkb_symbols
{
//include "pc+us+ru(typewriter):2+ua:3+us(dvorak):4+level3(menu_switch)+my(spec)"
// include "pc+us+ru(winkeys):2+ua(winkeys):3+us(dvorak):4+level3(menu_switch)"
// include "pc+us+ru(os_winkeys):2+ua(winkeys):3+us(dvorak):4+level3(menu_switch)"
include "pc+us+ru:2+ua:3+us(dvorak):4+level3(menu_switch)"
replace key <CAPS>
{
type = "THREE_GROUPS",
actions[Group1]=[LockGroup(group=1), LockGroup(group=2), LockGroup(group=3), LockMods(modifiers=Lock), LockGroup(group=4)]
};
//replace key <RALT>
//{
// actions[Group1]=[ ],
// actions[Group2]=[ SetGroup(group=-1) ],
// actions[Group3]=[ SetGroup(group=-2) ],
// actions[Group4]=[ SetGroup(group=-3) ]
//};
key <AD07>
{
symbols[Group3]=[Cyrillic_ghe, Cyrillic_GHE,
Ukrainian_ghe_with_upturn, Ukrainian_GHE_WITH_UPTURN]
};
replace key <KPDL> { [ ellipsis, KP_Decimal ] };
replace key <KP0> { [ emdash, KP_0 ] };
replace key <KP1> { [ guillemotleft, KP_1 ] };
replace key <KP2> { [ guillemotright, KP_2 ] };
replace key <KP3> { [ doublelowquotemark, KP_3 ] };
replace key <KP4> { [ 0x100201C, KP_4 ] };
//replace key <KP5> { [ endash, KP_5 ] };
};
};

Create a file 60xkb-lang directory in / etc/X11/Xsession.d:
(
cd /usr/share/X11/xkb/ && xkbcomp keymap/three_groups $DISPLAY &>/dev/null
)
true


Restart X-server.