Swayidle: Difference between revisions

Crop (talk | contribs)
No edit summary
Fix swaymsg package (prior to this change: `swaymsg: command not found`)
 
Line 27: Line 27:
   # TODO: modify "display" function based on your window manager
   # TODO: modify "display" function based on your window manager
   # Sway
   # Sway
   display = status: "swaymsg 'output * power ${status}'";
   display = status: "${pkgs.sway}/bin/swaymsg 'output * power ${status}'";
   # Hyprland
   # Hyprland
   # display = status: "hyprctl dispatch dpms ${status}";
   # display = status: "hyprctl dispatch dpms ${status}";
Line 74: Line 74:
   ];
   ];
};
};
}}
|name=~/.config/home-manager/home.nix|lang=nix}}


See [https://man.archlinux.org/man/extra/swayidle/swayidle.1.en the man page] for further information.
See [https://man.archlinux.org/man/extra/swayidle/swayidle.1.en the man page] for further information.