aboutsummaryrefslogtreecommitdiff
path: root/home/rices/schrottkatze/swayidle.nix
diff options
context:
space:
mode:
authorNatasha Moongrave <natasha@256phi.eu>2026-04-10 19:20:58 +0200
committerNatasha Moongrave <natasha@256phi.eu>2026-04-10 19:20:58 +0200
commitadcc6ca839c4780a8adb82de712ec3c9e4da33f3 (patch)
treecafb7b744316ad79aef2bb2c899f920c4ae2cc83 /home/rices/schrottkatze/swayidle.nix
parenta414126dbda913dcc33d5f9546a9f99859d1557f (diff)
parent84d39cf904e7008434c1e5ed8257cf09b1875bea (diff)
Merge branch 'schrott-extract-rice'
Diffstat (limited to 'home/rices/schrottkatze/swayidle.nix')
-rw-r--r--home/rices/schrottkatze/swayidle.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/home/rices/schrottkatze/swayidle.nix b/home/rices/schrottkatze/swayidle.nix
new file mode 100644
index 0000000..6d8525c
--- /dev/null
+++ b/home/rices/schrottkatze/swayidle.nix
@@ -0,0 +1,15 @@
+{pkgs, ...}: {
+ services.swayidle = {
+ enable = true;
+ events = [
+ {
+ event = "before-sleep";
+ command = "${pkgs.swaylock}/bin/swaylock -fF -c 442244";
+ }
+ {
+ event = "lock";
+ command = "swaylock -c 441144";
+ }
+ ];
+ };
+}