Skip to content

Instantly share code, notes, and snippets.

@antonpenev
Created July 30, 2019 14:17
Show Gist options
  • Save antonpenev/88f91631f0e4d06ed304bd88a230157f to your computer and use it in GitHub Desktop.
Save antonpenev/88f91631f0e4d06ed304bd88a230157f to your computer and use it in GitHub Desktop.
Keychron K2 keyboard - Ubuntu fix media keys switch
# Keychron is used like Apple keyboard in ubuntu:
# Reference: https://help.ubuntu.com/community/AppleKeyboard
#
# 0 = disabled : Disable the 'fn' key. Pressing 'fn'+'F8' will behave like you only press 'F8'
# 1 = fkeyslast : Function keys are used as last key. Pressing 'F8' key will act as a special key. Pressing 'fn'+'F8' will behave like a F8.
# 2 = fkeysfirst : Function keys are used as first key. Pressing 'F8' key will behave like a F8. Pressing 'fn'+'F8' will act as special key (play/pause).
echo 2 | sudo tee /sys/module/hid_apple/parameters/fnmode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment