mirror of
https://github.com/semere-meb/dotfiles-nix.git
synced 2026-08-03 10:24:36 +00:00
added back simple desktop stack as alternatives
This commit is contained in:
parent
febd23355d
commit
552ae67f6a
9 changed files with 153 additions and 2 deletions
23
modules/swayidle.nix
Normal file
23
modules/swayidle.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
userVars,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
home-manager.users."${userVars.username}" = {
|
||||
services.swayidle = {
|
||||
enable = true;
|
||||
events = {
|
||||
before-sleep = "${pkgs.swaylock}/bin/swaylock -f";
|
||||
lock = "${pkgs.swaylock}/bin/swaylock -f";
|
||||
};
|
||||
timeouts = [
|
||||
{ timeout = 300; command = "${pkgs.swaylock}/bin/swaylock -f"; }
|
||||
{ timeout = 600; command = "niri msg action power-off-monitors"; }
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue