add:udev rules
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
# env
|
||||
export GTK_THEME=tokyonight-dark
|
||||
export XCURSOR_THEME=catppuccin-mocha-dark-cursors
|
||||
export XCURSOR_SIZE=24
|
||||
|
||||
# bspwm
|
||||
# exec startx
|
||||
|
||||
1
etc-udev-rules.d/98-backlight.rules
Normal file
1
etc-udev-rules.d/98-backlight.rules
Normal file
@@ -0,0 +1 @@
|
||||
ACTION=="add", SUBSYSTEM=="backlight", RUN+="/bin/chgrp video $sys$devpath/brightness", RUN+="/bin/chmod g+w $sys$devpath /brightness"
|
||||
1
etc-udev-rules.d/99-hid-apple.rules
Normal file
1
etc-udev-rules.d/99-hid-apple.rules
Normal file
@@ -0,0 +1 @@
|
||||
ACTION=="add", SUBSYSTEM=="hid", DRIVER=="apple", RUN+="/bin/sh -c 'echo 2 > /sys/module/hid_apple/parameters/fnmode'"
|
||||
6
etc-udev-rules.d/README.md
Normal file
6
etc-udev-rules.d/README.md
Normal file
@@ -0,0 +1,6 @@
|
||||
sudo udevadm control --reload-rules
|
||||
sudo udevadm trigger
|
||||
|
||||
|
||||
- backlight: for backlight fn key
|
||||
- apple thing: for lofree keyboard
|
||||
Reference in New Issue
Block a user