diff options
author | Franck Cuny <franck@fcuny.net> | 2022-02-13 12:52:43 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-02-13 12:52:43 -0800 |
commit | 03b0e9e2fa5514171a25f85d9c4190297d73eca9 (patch) | |
tree | 35c5459417a589847738f1b86c4b5be64aa8f425 /users/fcuny/desktop/sway/sway-idle.nix | |
parent | home-manager: the clown car (diff) | |
download | world-03b0e9e2fa5514171a25f85d9c4190297d73eca9.tar.gz |
sway: run swayidle and waybar via systemd
Diffstat (limited to 'users/fcuny/desktop/sway/sway-idle.nix')
-rw-r--r-- | users/fcuny/desktop/sway/sway-idle.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/users/fcuny/desktop/sway/sway-idle.nix b/users/fcuny/desktop/sway/sway-idle.nix new file mode 100644 index 0000000..7db37bf --- /dev/null +++ b/users/fcuny/desktop/sway/sway-idle.nix @@ -0,0 +1,11 @@ +{ pkgs, config, ... }: + +{ + services.swayidle = { + enable = true; + timeouts = [{ + timeout = 300; + command = "${pkgs.swaylock}/bin/swaylock -fF -c 1D2021"; + }]; + }; +} |