Add: fn mode setting for Mac

This commit is contained in:
DuckDuckWhale 2020-10-10 16:56:24 -07:00
parent da19c7dcf0
commit ead87aaab8
Signed by: DuckDuckWhale
GPG Key ID: E4B9FC170FFD71CE
2 changed files with 5 additions and 0 deletions

2
mac/fnmode-once.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
echo 2 | sudo tee /sys/module/hid_apple/parameters/fnmode >> /dev/null

3
mac/fnmode-persistent.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
echo options hid_apple fnmode=2 | sudo tee -a /etc/modprobe.d/hid_apple.conf
sudo update-initramfs -u -k all