2025-04-22 08:21:55 +02:00
|
|
|
{{- if and (eq .chezmoi.os "linux") (eq .chezmoi.arch "arm64") }}
|
2025-04-12 14:30:51 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
echo "Ändere Apple Funktionstaste mit der Kontrolltaste!!!"
|
2025-04-12 14:43:05 +02:00
|
|
|
echo "Ändere Apple Commandtaste mit der Altasten!!!"
|
2025-04-12 14:30:51 +02:00
|
|
|
|
|
|
|
# Temporäre Änderung
|
2025-04-12 14:43:05 +02:00
|
|
|
# Command (⌘) und Alt (⌥) tauschen
|
|
|
|
echo 1 | sudo tee /sys/module/hid_apple/parameters/swap_opt_cmd
|
|
|
|
|
|
|
|
# Fn und linke Control-Taste tauschen
|
2025-04-12 14:30:51 +02:00
|
|
|
echo 1 | sudo tee /sys/module/hid_apple/parameters/swap_fn_leftctrl
|
|
|
|
|
|
|
|
# Dauerhafte Konfiguration
|
2025-04-12 16:29:26 +02:00
|
|
|
echo -e "options hid_apple swap_opt_cmd=1\noptions hid_apple swap_fn_leftctrl=1" | sudo tee /etc/modprobe.d/hid_apple.conf
|
2025-04-12 19:15:17 +02:00
|
|
|
sudo dracut -f
|
2025-04-22 08:21:55 +02:00
|
|
|
{{- end }}
|