From c57131f4e914f909dd28f5b099f2db53c7f33dcf Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Sat, 12 Apr 2025 14:43:05 +0200 Subject: [PATCH] switch Apple Keyboard --- run_onchange_apple-keyboard-swap.sh.tmpl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/run_onchange_apple-keyboard-swap.sh.tmpl b/run_onchange_apple-keyboard-swap.sh.tmpl index 43257f8..be32860 100755 --- a/run_onchange_apple-keyboard-swap.sh.tmpl +++ b/run_onchange_apple-keyboard-swap.sh.tmpl @@ -8,9 +8,14 @@ if [[ "$(uname -s)" != "Linux" || "$(uname -m)" != "aarch64" ]]; then fi echo "Ändere Apple Funktionstaste mit der Kontrolltaste!!!" +echo "Ändere Apple Commandtaste mit der Altasten!!!" # Temporäre Änderung +# Command (⌘) und Alt (⌥) tauschen +echo 1 | sudo tee /sys/module/hid_apple/parameters/swap_opt_cmd + +# Fn und linke Control-Taste tauschen echo 1 | sudo tee /sys/module/hid_apple/parameters/swap_fn_leftctrl # Dauerhafte Konfiguration -echo 'options hid-apple swap_fn_leftctrl=1' | sudo tee /etc/modprobe.d/keyboard.conf >/dev/null +echo -e "options hid-apple swap_opt_cmd=1\noptions hid-apple swap_fn_leftctrl=1" | sudo tee /etc/modprobe.d/hid_apple.conf