From 9c1c3d3f1d90d4246588b3f08d4ffbd2b1efd616 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 6 May 2019 22:50:44 -0700 Subject: [PATCH] [xkb] Add keymap that swaps lwin and lalt and uses ralt as hyper --- dotfiles/xkb/keymap/ivanm-dfinity-razr | 7 +++++++ dotfiles/xkb/symbols/imalison | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100644 dotfiles/xkb/keymap/ivanm-dfinity-razr diff --git a/dotfiles/xkb/keymap/ivanm-dfinity-razr b/dotfiles/xkb/keymap/ivanm-dfinity-razr new file mode 100644 index 00000000..e4458964 --- /dev/null +++ b/dotfiles/xkb/keymap/ivanm-dfinity-razr @@ -0,0 +1,7 @@ +xkb_keymap { + xkb_keycodes { include "evdev+aliases(qwerty)" }; + xkb_types { include "complete" }; + xkb_compat { include "complete" }; + xkb_symbols { include "pc+us+inet(evdev)+altwin(swap_lalt_lwin)+imalison(ralt_as_hyper)+capslock(ctrl_modifier)" }; + xkb_geometry { include "pc(pc105)" }; +}; diff --git a/dotfiles/xkb/symbols/imalison b/dotfiles/xkb/symbols/imalison index 59692418..5fc0099b 100644 --- a/dotfiles/xkb/symbols/imalison +++ b/dotfiles/xkb/symbols/imalison @@ -9,3 +9,9 @@ xkb_symbols "home_as_hyper" { replace key { [ Hyper_L ] }; modifier_map Mod3 { , Hyper_L, Hyper_R }; }; + +partial modifier_keys +xkb_symbols "ralt_as_hyper" { + replace key { [ Hyper_L, Hyper_L ] }; + modifier_map Mod3 { , Hyper_L }; +};