add:udev rules

This commit is contained in:
2025-12-07 14:28:43 +09:00
parent f13af3b019
commit 0207079449
4 changed files with 9 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
# env
export GTK_THEME=tokyonight-dark
export XCURSOR_THEME=catppuccin-mocha-dark-cursors
export XCURSOR_SIZE=24
# bspwm
# exec startx

View File

@@ -0,0 +1 @@
ACTION=="add", SUBSYSTEM=="backlight", RUN+="/bin/chgrp video $sys$devpath/brightness", RUN+="/bin/chmod g+w $sys$devpath /brightness"

View File

@@ -0,0 +1 @@
ACTION=="add", SUBSYSTEM=="hid", DRIVER=="apple", RUN+="/bin/sh -c 'echo 2 > /sys/module/hid_apple/parameters/fnmode'"

View File

@@ -0,0 +1,6 @@
sudo udevadm control --reload-rules
sudo udevadm trigger
- backlight: for backlight fn key
- apple thing: for lofree keyboard