From 8647eadecd09e3742b8e3c067559e1d0e35ca757 Mon Sep 17 00:00:00 2001 From: sefidel Date: Thu, 9 Mar 2023 22:03:04 +0900 Subject: feat(home/base): setup suspend on swayidle --- home/profiles/base/default.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'home') diff --git a/home/profiles/base/default.nix b/home/profiles/base/default.nix index 07f97ab..daae8db 100644 --- a/home/profiles/base/default.nix +++ b/home/profiles/base/default.nix @@ -296,6 +296,10 @@ in command = "${pkgs.sway}/bin/swaymsg 'output * dpms off'"; resumeCommand = "${pkgs.sway}/bin/swaymsg 'output * dpms on'"; } + { + timeout = 900; + command = "${pkgs.systemd}/bin/systemctl suspend"; + } ]; }; -- cgit 1.4.1