Skip to content

Instantly share code, notes, and snippets.

@sonovice
Created September 9, 2022 18:02
Show Gist options
  • Save sonovice/8d54608bcf8bc3a76213a21550de3dd8 to your computer and use it in GitHub Desktop.
Save sonovice/8d54608bcf8bc3a76213a21550de3dd8 to your computer and use it in GitHub Desktop.
Invert FN Function Keys (except F11 and F12) for Razer Pro Type Ultra
# Razer Pro Type Ultra Keyboard
# Hardware Database file that switches the media keys and F1-F10
# (F11 and F12 keypress events are not propagated through USB without the FN key)
#
# Instructions:
# save the content of this file to "/etc/udev/hwdb.d/50-razer-pro-type-ultra.hwdb"
# apply (persistent) changes using "sudo systemd-hwdb update && sudo udevadm trigger"
evdev:input:b*v1532p027B*
KEYBOARD_KEY_c00e2=f1
KEYBOARD_KEY_c00ea=f2
KEYBOARD_KEY_c00e9=f3
KEYBOARD_KEY_c018a=f4
KEYBOARD_KEY_c0227=f5
KEYBOARD_KEY_c00b6=f6
KEYBOARD_KEY_c00cd=f7
KEYBOARD_KEY_c00b5=f8
KEYBOARD_KEY_c0192=f9
KEYBOARD_KEY_c0194=f10
KEYBOARD_KEY_7003a=mute
KEYBOARD_KEY_7003b=volumedown
KEYBOARD_KEY_7003c=volumeup
KEYBOARD_KEY_7003d=mail
KEYBOARD_KEY_7003e=refresh
KEYBOARD_KEY_7003f=previoussong
KEYBOARD_KEY_70040=playpause
KEYBOARD_KEY_70041=nextsong
KEYBOARD_KEY_70042=calc
KEYBOARD_KEY_70043=file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment