hand7s: migrate from ${pkgs}/bin/ paths to ${lib.getExe pkgs}

Signed-off-by: s0me1newithhand7s <117505144+s0me1newithhand7s@users.noreply.github.com>
This commit is contained in:
s0me1newithhand7s 2025-06-13 13:06:24 +03:00
parent fc182636e3
commit e897fb4e87
No known key found for this signature in database
13 changed files with 86 additions and 86 deletions

View file

@ -14,35 +14,35 @@
events = [
{
event = "lock";
command = "${pkgs.swaylock}/bin/swaylock";
command = "${lib.getExe pkgs.swaylock}";
}
{
event = "before-sleep";
command = "${pkgs.sway}/bin/swaymsg 'output * power off'";
command = "${lib.getExe' pkgs.sway "swaymsg"} 'output * power off'";
}
{
event = "after-resume";
command = "${pkgs.sway}/bin/swaymsg 'output * power on'";
command = "${lib.getExe' pkgs.sway "swaymsg"} 'output * power on'";
}
];
timeouts = [
{
timeout = 300;
command = "${pkgs.brightnessctl}/bin/brightnessctl -s set 10";
resumeCommand = "${pkgs.brightnessctl}/bin/brightnessctl -r";
command = "${libgetExe pkgs.brightnessctl} -s set 10";
resumeCommand = "${libgetExe pkgs.brightnessctl} -r";
}
{
timeout = 600;
command = "${pkgs.swaylock}/bin/swaylock";
command = "${lib.getExe pkgs.swaylock}";
}
{
timeout = 900;
command = "${pkgs.systemd}/bin/systemctl suspend";
command = "${lib.getExe' pkgs.systemd "systemctl"} suspend";
}
];
};