backlight: use brightnessctl instead of removed light binary

nixpkgs 26.05 dropped the 'light' package. Switch BacklightService to brightnessctl and bundle it in the wrapper PATH. Bump flake nixpkgs to nixos-26.05.
This commit is contained in:
müde 2026-06-13 15:47:20 +02:00
commit 0d0a3fd718
4 changed files with 9 additions and 7 deletions

View file

@ -14,12 +14,12 @@ QtObject {
function adjust(delta) {
const step = NS.ModulesService.backlightStep || 5;
_adjProc.cmd = delta > 0 ? "light -A " + step : "light -U " + step;
_adjProc.cmd = delta > 0 ? "brightnessctl set " + step + "%+" : "brightnessctl set " + step + "%-";
_adjProc.running = true;
}
function setPercent(pct) {
_adjProc.cmd = "light -S " + Math.round(Math.max(0, Math.min(100, pct)));
_adjProc.cmd = "brightnessctl set " + Math.round(Math.max(0, Math.min(100, pct))) + "%";
_adjProc.running = true;
}