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:
parent
fc182636e3
commit
e897fb4e87
13 changed files with 86 additions and 86 deletions
|
|
@ -13,25 +13,25 @@
|
|||
|
||||
settings = {
|
||||
general = {
|
||||
before_sleep_cmd = "${pkgs.hyprland}/bin/hyprctl dispatch dpms off";
|
||||
after_sleep_cmd = "${pkgs.hyprland}/bin/hyprctl dispatch dpms on";
|
||||
before_sleep_cmd = "${lib.getExe' pkgs.hyprland "hyprctl"} dispatch dpms off";
|
||||
after_sleep_cmd = "${lib.getExe' pkgs.hyprland "hyprctl"} dispatch dpms on";
|
||||
};
|
||||
|
||||
listener = [
|
||||
{
|
||||
timeout = 300;
|
||||
on-timeout = "${pkgs.brightnessctl}/bin/brightnessctl -s set 10";
|
||||
on-resume = "${pkgs.brightnessctl}/bin/brightnessctl -r";
|
||||
on-timeout = "${lib.getExe pkgs.brightnessctl} -s set 10";
|
||||
on-resume = "${lib.getExe pkgs.brightnessctl} -r";
|
||||
}
|
||||
|
||||
{
|
||||
timeout = 600;
|
||||
on-timeout = "${pkgs.hyprlock}/bin/hyprlock";
|
||||
on-timeout = "${lib.getExe pkgs.hyprlock}";
|
||||
}
|
||||
|
||||
{
|
||||
timeout = 900;
|
||||
on-timeout = "${pkgs.systemd}/bin/systemctl suspend";
|
||||
on-timeout = "${lib.getExe' pkgs.systemd "systemctl"} suspend";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue