Make Keychron C2 udev rule actually work

This commit is contained in:
fruchti 2023-03-19 12:19:45 +01:00
parent ff291dd912
commit 581b5bc140

View file

@ -2,6 +2,6 @@
{
services.udev.extraRules = ''
# Keychron C2 function key fix
SUBSYSTEMS=="input", ATTRS{name}==Keychron C2", RUN+="${pkgs.coreutils}/bin/echo 0 | ${pkgs.coreutils}/bin/tee /sys/module/hid_apple/parameters/fnmode"
SUBSYSTEMS=="input", ATTRS{name}=="Keychron Keychron C2", RUN+="${pkgs.bash}/bin/bash -c 'echo 0 > /sys/module/hid_apple/parameters/fnmode'"
'';
}