I often use my computer in text-only mode, so no X11, no window manager, etc. I'd like to be able to adjust the screen brightness of my laptop while in text mode, which I can do by writing to the file
In order to write to the file, I either run the command through
sudo or change the permissions for the
I'd like to write a script which will change the brightness by increments, for which I would need permanent write access to the
brightness file. Unfortunately, since it's in
/sys, it's generated dynamically every time I boot up, so I need to change the file's permissions every time I restart.
I gather that I can change the permissions permanently by writing a
udev rule, which I've never done before. Would that be the best way to achieve what I'm trying to do, or is there a safer alternative? For example, putting something in