diff options
author | Joursoir <chat@joursoir.net> | 2022-03-07 19:46:27 +0300 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2022-03-07 19:46:27 +0300 |
commit | ba999a16bd6441c10779b8a531adfe6db45042dc (patch) | |
tree | a8a130e44ccc54654b976432512c4389c6f68811 /kbd | |
download | dotfiles-ba999a16bd6441c10779b8a531adfe6db45042dc.tar.gz dotfiles-ba999a16bd6441c10779b8a531adfe6db45042dc.tar.bz2 dotfiles-ba999a16bd6441c10779b8a531adfe6db45042dc.zip |
add keyboard settings
Diffstat (limited to 'kbd')
-rwxr-xr-x | kbd/set-up-kbd.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/kbd/set-up-kbd.sh b/kbd/set-up-kbd.sh new file mode 100755 index 0000000..f0cdbf3 --- /dev/null +++ b/kbd/set-up-kbd.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash + +# Settings for Keychron K3 v2 +# +# Settings for Keychron keyboards: https://github.com/kurgol/keychron +# Some shortcuts: https://blog.colinwaddell.com/keychron-function-keys-configuration/ +# +# NOTE: Keychron keyboards use the hid_apple driver. + +if [[ $EUID -ne 0 ]]; then + echo "This script must be run as root" + exit 1 +fi + +# Function keys: +# +# fnmode: +# 0 = fn key disabled +# 1 = fn key pressed by default +# 2 = fn key released by default + +echo "options hid_apple fnmode=2" >> /etc/modprobe.d/hid_apple.conf +echo "Reboot your system or notify hid_apple to reload its configuration" |