HalosGhost / enlighten

An expressive, sysfs-based backlight brightness manager
GNU General Public License v3.0
18 stars 2 forks source link

Allow multiple paths in $BACKLIGHT_SEARCH_PATH #15

Closed HalosGhost closed 5 years ago

HalosGhost commented 5 years ago

This would change the specification of $BACKLIGHT_SEARCH_PATH, technically, in a backwards-incompatible fashion.

Namely, if your $BACKLIGHT_SEARCH_PATH currently includes a :, this change would cause unexpected behavior.

The proposal is to make $BACKLIGHT_SEARCH_PATH :-aware (like $PATH), thus allowing users to define multiple paths to search for candidates. The default value is then likely to become /sys/class/backlight:/sys/class/leds (which, for example, would allow for modifying the keyboard backlight rather than the screen backlight only needing to change one environment variable, rather than two).

Work necessary to complete this:

HalosGhost commented 5 years ago

via d7b0bef771ad023c36e5ba98f97e180e58d3523d