add wluma to control backlight

This commit is contained in:
ulic-youthlic 2025-01-15 16:45:19 +08:00
parent 605f5c9b20
commit e3e25560ca
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
7 changed files with 100 additions and 1 deletions

View file

@ -9,6 +9,7 @@
{
imports = [
./niri
./wluma
];
youthlic.programs = {

View file

@ -0,0 +1,25 @@
# [als.iio]
# path = "/sys/bus/iio/devices"
# thresholds = { 0 = "night", 20 = "dark", 80 = "dim", 250 = "normal", 500 = "bright", 800 = "outdoors" }
[als.webcam]
video = 0
thresholds = { 0 = "night", 15 = "dark", 30 = "dim", 45 = "normal", 60 = "bright", 75 = "outdoors" }
# [als.time]
# thresholds = { 0 = "night", 7 = "dark", 9 = "dim", 11 = "normal", 13 = "bright", 16 = "normal", 18 = "dark", 20 = "night" }
# [als.none]
[[output.backlight]]
name = "eDP-1"
path = "/sys/class/backlight/intel_backlight"
capturer = "wayland"
# [[output.ddcutil]]
# name = "Dell Inc. DELL P2415Q"
# capturer = "none"
[[keyboard]]
name = "keyboard-asus"
path = "/sys/bus/platform/devices/asus-nb-wmi/leds/asus::kbd_backlight"

View file

@ -0,0 +1,4 @@
{ ... }:
{
youthlic.programs.wluma.config = ./config.toml;
}