feat(keyboard): add swapRightCommandAndRightOption
This commit is contained in:
parent
57ff7cbd20
commit
3f0f0ece39
2 changed files with 19 additions and 0 deletions
|
|
@ -38,6 +38,12 @@ in
|
|||
description = "Whether to swap the left Command key and left Alt key.";
|
||||
};
|
||||
|
||||
system.keyboard.swapRightCommandAndRightOption = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "Whether to swap the right Command key and right Option key.";
|
||||
};
|
||||
|
||||
system.keyboard.swapCapsLockAndEscape = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
|
|
@ -86,6 +92,14 @@ in
|
|||
HIDKeyboardModifierMappingSrc = 30064771298;
|
||||
HIDKeyboardModifierMappingDst = 30064771299;
|
||||
})
|
||||
(mkIf cfg.swapRightCommandAndRightOption {
|
||||
HIDKeyboardModifierMappingSrc = 30064771303;
|
||||
HIDKeyboardModifierMappingDst = 30064771302;
|
||||
})
|
||||
(mkIf cfg.swapRightCommandAndRightOption {
|
||||
HIDKeyboardModifierMappingSrc = 30064771302;
|
||||
HIDKeyboardModifierMappingDst = 30064771303;
|
||||
})
|
||||
(mkIf cfg.swapLeftCtrlAndFn {
|
||||
HIDKeyboardModifierMappingSrc = 30064771296;
|
||||
HIDKeyboardModifierMappingDst = 1095216660483;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue