feat(tazjin/home): configure screen locking with swayidle
Change-Id: I73e42071710f481c0f1acf965e18446c18e7c94b Reviewed-on: https://cl.tvl.fyi/c/depot/+/12430 Autosubmit: tazjin <tazjin@tvl.su> Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
This commit is contained in:
parent
32cc8016df
commit
200d49a0e1
1 changed files with 8 additions and 0 deletions
|
@ -72,6 +72,14 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.swayidle = let cmd = "${pkgs.swaylock}/bin/swaylock -fFkl -c 008080"; in {
|
||||||
|
enable = true;
|
||||||
|
events = [
|
||||||
|
{ event = "before-sleep"; command = cmd; }
|
||||||
|
{ event = "lock"; command = cmd; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
# Enable the dunst notification daemon, but force the
|
# Enable the dunst notification daemon, but force the
|
||||||
# configuration file separately instead of going via the strange
|
# configuration file separately instead of going via the strange
|
||||||
# Nix->dunstrc encoding route.
|
# Nix->dunstrc encoding route.
|
||||||
|
|
Loading…
Reference in a new issue