summaryrefslogtreecommitdiff
path: root/symbols
diff options
context:
space:
mode:
authorRobert Czechowski <robert@code-intelligence.com>2022-12-01 14:56:58 +0100
committerSergey Udaltsov <sergey.udaltsov@gmail.com>2023-01-22 20:42:18 +0000
commit99cde1d678f0b5c46dce627f2dbede64998011cb (patch)
tree0d620401cc196a61b8c7a4f8c0715b3226fee077 /symbols
parentd77a7076d2787836bb55ed3cc1382aadacc9732b (diff)
downloadxkeyboard-config-99cde1d678f0b5c46dce627f2dbede64998011cb.tar.gz
rules: add option 'swap_ralt_rctl'
Diffstat (limited to 'symbols')
-rw-r--r--symbols/ctrl9
1 files changed, 9 insertions, 0 deletions
diff --git a/symbols/ctrl b/symbols/ctrl
index 5e44b4c..af7c523 100644
--- a/symbols/ctrl
+++ b/symbols/ctrl
@@ -83,6 +83,15 @@ xkb_symbols "swap_lalt_lctl" {
modifier_map Control { <LALT> };
};
+// Swap the functions of the right Alt key and the right Ctrl key.
+partial modifier_keys
+xkb_symbols "swap_ralt_rctl" {
+ replace key <RALT> { [ Control_R, Control_R ] };
+ replace key <RCTL> { [ Alt_R, Meta_R ] };
+ modifier_map Mod1 { <RCTL> };
+ modifier_map Control { <RALT> };
+};
+
// Swap the functions of the left Win key and the left Ctrl key.
partial modifier_keys
xkb_symbols "swap_lwin_lctl" {