You are not logged in.
I want to make it so Left shift behaves as Left Control.
this is in my custom keymap file in `/usr/share/X11/xkb/symbols`. I just modified the dvorak layout in us file in same folder. I have remapped CapsLock, LControl, LAlt and they are working as expected, but making Left shift behave as Left Control isnt working.
partial alphanumeric_keys modifier_keys
xkb_symbols "sdv" {
include "us(dvorak)"
name[Group1] = "English (Suyog's Dvorak)";
// Unmodified Shift AltGr Shift+AltGr
... Other keymaps
// lower row, left side
key <LFSH> { [ Control_L ] };
key <AB01> { [ apostrophe, quotedbl, dead_acute ] };
// Space row
replace key <LCTL> { [ Caps_Lock ] };
replace key <LALT> { [ Shift_L ] };
//modifiers
modifier_map Control { <LFSH> };
modifier_map Shift { <LALT> };
modifier_map Lock { <LCTL> };
// do NOT hardcode this switch; use lv3:ralt_switch option instead!
//include "level3(ralt_switch)"
};I am checking the keys with xev. I dont really understand what that replace is doing, I added that by looking at other files like ctrl in the same dir same with modifiers.
I started messing around with layout after reading this
https://www.x.org/releases/current/doc/ … ncing.html
tho most of the things went over my head.
Last edited by suyog (2025-11-26 10:57:43)
Offline