From d2ac7fb650e4d8f44b9fec2b7f3e9351f4092d18 Mon Sep 17 00:00:00 2001 From: sevenfourk Date: Sat, 31 Oct 2020 12:06:55 +0200 Subject: [PATCH 1/2] macbook: added option for swapped cmd and opt https://wiki.archlinux.org/index.php/Apple_Keyboard#Switching_Cmd_and_Alt/AltGr --- apple/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/apple/default.nix b/apple/default.nix index a2ee262..435ae84 100644 --- a/apple/default.nix +++ b/apple/default.nix @@ -2,6 +2,7 @@ { boot.kernelParams = [ + "hid_apple.swap_opt_cmd=1" "hid_apple.iso_layout=0" ]; From 6a0f1a9e845789565e78fee77f733ed29a4b53d8 Mon Sep 17 00:00:00 2001 From: Ivan Kovnatsky Date: Tue, 3 Nov 2020 10:15:34 +0200 Subject: [PATCH 2/2] macbook: add README.md to describe switching Cmd and Alt/AltGr --- apple/README.md | 11 +++++++++++ apple/default.nix | 1 - 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 apple/README.md diff --git a/apple/README.md b/apple/README.md new file mode 100644 index 0000000..c25d949 --- /dev/null +++ b/apple/README.md @@ -0,0 +1,11 @@ +## Switching Cmd and Alt/AltGr + +This will switch the left Alt and Cmd key as well as the right Alt/AltGr and Cmd key. + +```nix +boot.kernelParams = [ + "hid_apple.swap_opt_cmd=1" +]; +``` + +Reference: https://wiki.archlinux.org/index.php/Apple_Keyboard#Switching_Cmd_and_Alt/AltGr diff --git a/apple/default.nix b/apple/default.nix index 435ae84..a2ee262 100644 --- a/apple/default.nix +++ b/apple/default.nix @@ -2,7 +2,6 @@ { boot.kernelParams = [ - "hid_apple.swap_opt_cmd=1" "hid_apple.iso_layout=0" ];