diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-09-20 23:43:58 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-09-20 23:43:58 +0200 |
| commit | 661b363fc7ac02c1c9a807596647a003d15eb7fb (patch) | |
| tree | f75f96b67187a4380dd09ce4919e4edc5a85d1b8 | |
| parent | 92a843a7a19d5c4bd3a550e476a96a1ace9915b3 (diff) | |
| download | dotfiles-661b363fc7ac02c1c9a807596647a003d15eb7fb.tar.gz dotfiles-661b363fc7ac02c1c9a807596647a003d15eb7fb.zip | |
Ctrl+mode_switch+hjkl for home/pagedown/pageup/end
| -rw-r--r-- | .config/xkb/symbols/vim_keys | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/.config/xkb/symbols/vim_keys b/.config/xkb/symbols/vim_keys index f64c41f..34f2ca5 100644 --- a/.config/xkb/symbols/vim_keys +++ b/.config/xkb/symbols/vim_keys @@ -1,10 +1,12 @@ // ~/.config/xkb/symbols/vim_keys -// Clear existing modifiers -default partial modifier_keys xkb_symbols "basic" { + include "us(basic)" + include "custom(altgr)" + clear lock; clear mod5; + clear control; // Define a custom modifier (Mode_switch) modifier_map Mod5 { <MDSW> }; @@ -22,6 +24,26 @@ xkb_symbols "basic" { key <AC08> { [ Up ] }; key <AC09> { [ Right ] }; + // Assign keys to the CtrlMod modifier + key <RCTL> { [ Control_R, Control_R ] }; + key <LCTL> { [ Control_L, Control_L ] }; + + // Define Ctrl+Mode_switch+J as PageDown + key <I194> { [ Control_R, ISO_Level3_Shift, Prior ] }; + key <I194> { [ Control_L, ISO_Level3_Shift, Prior ] }; + + // Define Ctrl+Mode_switch+K as PageUp + key <I196> { [ Control_R, ISO_Level3_Shift, Next ] }; + key <I196> { [ Control_L, ISO_Level3_Shift, Next ] }; + + // Define Ctrl+Mode_switch+H as Home + key <AC06> { [ Control_R, ISO_Level3_Shift, Home ] }; + key <AC06> { [ Control_L, ISO_Level3_Shift, Home ] }; + + // Define Ctrl+Mode_switch+L as End + key <AC09> { [ Control_R, ISO_Level3_Shift, End ] }; + key <AC09> { [ Control_L, ISO_Level3_Shift, End ] }; + // Make 'q' act as Escape when in Mode_switch key <AD03> { [ q, Q, Escape ] }; |
