diff options
author | sefidel <contact@sefidel.net> | 2023-03-09 22:03:04 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2023-03-09 22:03:04 +0900 |
commit | 8647eadecd09e3742b8e3c067559e1d0e35ca757 (patch) | |
tree | 16b4c7c7d1c562db8875b3d15d41800ff7c05ffb | |
parent | 0d84c3aa26eca53abc1b2fb066b02e69d8da374f (diff) | |
download | nixrc-8647eadecd09e3742b8e3c067559e1d0e35ca757.tar.gz nixrc-8647eadecd09e3742b8e3c067559e1d0e35ca757.zip |
feat(home/base): setup suspend on swayidle
-rw-r--r-- | home/profiles/base/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
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"; + } ]; }; |