mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 05:18:12 +09:00
labwc
This commit is contained in:
@@ -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,5 +1,3 @@
|
||||
{
|
||||
description = "swayidle idle management for Niri";
|
||||
|
||||
includes = [ "applications.niri" ];
|
||||
description = "swayidle idle management for Wayland sessions";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user