⚡️ (home/wayland) use the right hyprland package (from the flake) inside swayidle config
This commit is contained in:
parent
27cbe6a8d7
commit
139fa1c89b
|
@ -1,11 +1,17 @@
|
|||
{pkgs, ...}: {
|
||||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
hyprland_pkg = inputs.hyprland.packages."${pkgs.system}".hyprland;
|
||||
in {
|
||||
services.swayidle = {
|
||||
enable = true;
|
||||
systemdTarget = "hyprland-session.target";
|
||||
events = [
|
||||
{
|
||||
event = "after-resume";
|
||||
command = "${pkgs.hyprland}/bin/hyprctl dispatch dpms on";
|
||||
command = "${hyprland_pkg}/bin/hyprctl dispatch dpms on";
|
||||
}
|
||||
{
|
||||
event = "before-sleep";
|
||||
|
@ -19,7 +25,7 @@
|
|||
}
|
||||
{
|
||||
timeout = 150;
|
||||
command = "${pkgs.hyprland}/bin/hyprctl dispatch dpms off";
|
||||
command = "${hyprland_pkg}/bin/hyprctl dispatch dpms off";
|
||||
}
|
||||
{
|
||||
timeout = 300;
|
||||
|
|
Loading…
Reference in a new issue