This commit is contained in:
2026-07-30 15:24:55 +09:00
parent c566f426ec
commit 8dc9452d95
14 changed files with 218 additions and 102 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
{ lib, pkgs, ... }:
let
brightnessctl = lib.getExe pkgs.brightnessctl;
niri = lib.getExe pkgs.niri;
rm = "${pkgs.coreutils}/bin/rm";
systemctl = lib.getExe' pkgs.systemd "systemctl";
wlopm = lib.getExe pkgs.wlopm;
brightnessState = "$XDG_RUNTIME_DIR/swayidle-brightness";
skipIfOnAC = ''
@@ -37,7 +37,7 @@ let
'';
afterResume = pkgs.writeShellScript "swayidle-after-resume" ''
${niri} msg action power-on-monitors
${wlopm} --on '*'
${restoreBrightness}
'';
in
+1 -3
View File
@@ -1,5 +1,3 @@
{
description = "swayidle idle management for Niri";
includes = [ "applications.niri" ];
description = "swayidle idle management for Wayland sessions";
}