Add new file: fn-keys

Description: Change function key mode for Keychron
K2 Keyboard
This commit is contained in:
Arkaprabha Chakraborty
2023-10-04 22:55:53 +05:30
parent 40352a0e4f
commit 778372ac9e

6
fn-keys Executable file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/sh
sudo touch /etc/modprobe.d/hid_apple.conf # create conf file
sudo echo "options hid_apple fnmode=2" >> /etc/modprobe.d/hid_apple.conf # append options to the config file
sudo update-initramfs -u # loads changes
echo "\nPlease reboot to apply changes\n" # echos reboot message