This commit is contained in:
Yuri Zamyatin 2024-12-21 10:21:58 +00:00
parent d9e176d810
commit 695b3da45c
3 changed files with 33 additions and 2 deletions

View File

@ -8,7 +8,7 @@ set $right o
################ inputs ####################
input "type:keyboard" {
xkb_layout us(colemak_yz),us(basic),ru
xkb_layout us(yz),ru(yz)
}
bindsym --to-code ISO_Level3_Shift+Shift input "type:keyboard" xkb_switch_layout next
input "type:touchpad" {

View File

@ -0,0 +1,31 @@
xkb_symbols "yz" {
include "ru(common)"
# functional
key.type = "ONE_LEVEL";
replace key <CAPS> { [ BackSpace ] };
replace key <RALT> { [ Escape ] };
# modifiers
key.type = "ONE_LEVEL";
replace key <RTSH> { [ Control_L ] };
modifier_map Control { <RTSH> };
replace key <LCTL> { [ Super_L ] };
modifier_map Mod4 { <LCTL> };
replace key <LALT> { [ ISO_Level3_Shift ] };
modifier_map Mod3 { <LALT> };
replace key <RCTL> { [ Alt_L ] };
modifier_map Mod1 { <RCTL> };
# layer3
# TODO: migrate to type=ALPHANUMERIC
# This would fix caps lock which i dont use anyway
key.type = "FOUR_LEVEL";
# navigation
key <AC07> { [ Cyrillic_o, Cyrillic_O, Left, eacute] };
key <AC08> { [ Cyrillic_el, Cyrillic_EL, Up, eacute ] };
key <AC09> { [ Cyrillic_de, Cyrillic_DE, Down, iacute ] };
key <AC10> { [ Cyrillic_zhe, Cyrillic_ZHE, Right, oacute ] };
};

View File

@ -1,4 +1,4 @@
xkb_symbols "colemak_yz" {
xkb_symbols "yz" {
include "us(colemak_dh)"