system/packages-gui: move light to brightnessctl in home
Some checks failed
CI / Build linux-lava for x86_64-linux (push) Has been cancelled

This commit is contained in:
Cilly Leang 2026-03-20 22:43:04 +11:00
parent 2239c1cc64
commit d11d080c94
Signed by: cilly
GPG key ID: 6500251E087653C9
3 changed files with 7 additions and 7 deletions

View file

@ -10,7 +10,6 @@
libva-vdpau-driver
libvdpau-va-gl
];
programs.light.enable = true;
hardware.opentabletdriver.enable = true;
hardware.keyboard.qmk.enable = true;
programs.steam = {

View file

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }:
let
kblight = "light -s sysfs/leds/${config.me.kbBacklightDevice}";
kblight = "brightnessctl -d ${config.me.kbBacklightDevice}";
in
{
home.packages = [ config.services.hypridle.package ];
@ -16,18 +16,18 @@ in
listener = lib.optionals (config.me.kbBacklightDevice != null) [
{
timeout = 120;
on-timeout = "${kblight} -O && ${kblight} -S 0";
on-resume = "${kblight} -I";
on-timeout = "${kblight} -s && ${kblight} 0";
on-resume = "${kblight} -r";
}
] ++ [
{
timeout = 150;
on-timeout = "light -O && light -T 0.5";
on-resume = "light -I";
on-timeout = "brightnessctl -s && brightnessctl 50%-";
on-resume = "brightnessctl -r";
}
{
timeout = 180;
on-timeout = "light -I && loginctl lock-session";
on-timeout = "brightnessctl -r && loginctl lock-session";
}
{
timeout = 195;

View file

@ -26,6 +26,7 @@ in {
nodePackages_latest.pnpm
] ++ lib.optionals config.me.gui [
android-studio
brightnessctl
drawio
element-desktop
evince