From ead87aaab840116bd5461bb5f5b7948bf2231605 Mon Sep 17 00:00:00 2001 From: DuckDuckWhale Date: Sat, 10 Oct 2020 16:56:24 -0700 Subject: [PATCH] Add: fn mode setting for Mac --- mac/fnmode-once.sh | 2 ++ mac/fnmode-persistent.sh | 3 +++ 2 files changed, 5 insertions(+) create mode 100755 mac/fnmode-once.sh create mode 100755 mac/fnmode-persistent.sh diff --git a/mac/fnmode-once.sh b/mac/fnmode-once.sh new file mode 100755 index 0000000..0fd707d --- /dev/null +++ b/mac/fnmode-once.sh @@ -0,0 +1,2 @@ +#!/bin/sh +echo 2 | sudo tee /sys/module/hid_apple/parameters/fnmode >> /dev/null diff --git a/mac/fnmode-persistent.sh b/mac/fnmode-persistent.sh new file mode 100755 index 0000000..6072240 --- /dev/null +++ b/mac/fnmode-persistent.sh @@ -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