Swayidle: Difference between revisions
Fix swaymsg package (prior to this change: `swaymsg: command not found`) |
m Added install through config/sway |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
Swayidle is an idle management daemon for Wayland. | [https://github.com/swaywm/swayidle Swayidle] is an idle management daemon for Wayland. | ||
== Installation == | == Installation == | ||
=== Standalone === | |||
{{File|3=environment.systemPackages = with pkgs; [ | |||
swayidle | |||
];|name=/etc/nixos/configuration.nix|lang=nix}} | |||
{{ | === Home Manager - Standalone === | ||
{{File|3=services.swayidle.enable = true;|name=/etc/nixos/home.nix|lang=nix}} | |||
}} | |||
=== Home Manager - Through Sway === | |||
{{File|3=programs.sway.extraPackages = with pkgs; [swayidle];|name=/etc/nixos/home.nix|lang=nix}} | |||
== Configuration == | == Configuration == | ||
| Line 18: | Line 23: | ||
# Suspend the system | # Suspend the system | ||
which could be set using {{ic|services.swayidle.timeouts}}. {{ic|services.swayidle.events}} is useful to make the behavior consistent with the above in case {{ic|systemctl suspend}}, {{ic|loginctl lock-session}} are manually run. | which could be set using {{ic|services.swayidle.timeouts}}. {{ic|services.swayidle.events}} is useful to make the behavior consistent with the above in case {{ic|systemctl suspend}}, {{ic|loginctl lock-session}} are manually run. | ||
Additional options may be found within the Home Manager Appendix under [https://nix-community.github.io/home-manager/options.xhtml#opt-services.swayidle.enable services.swayidle]. | |||
{{file|~/.config/home-manager/home.nix|nix|3= | {{file|~/.config/home-manager/home.nix|nix|3= | ||
| Line 77: | Line 84: | ||
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. | ||
[[Category:Wayland]] | |||