Move modules folders
This commit is contained in:
parent
914909009c
commit
c1101e7b45
183 changed files with 327 additions and 327 deletions
30
hm/swayidle.nix
Normal file
30
hm/swayidle.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ pkgs, config, ... }:
|
||||
{
|
||||
home.packages = builtins.attrValues { inherit (pkgs) brillo; };
|
||||
|
||||
services.swayidle = {
|
||||
enable = true;
|
||||
events = [
|
||||
{
|
||||
event = "before-sleep";
|
||||
command = "${config.programs.hyprlock.package}/bin/hyprlock";
|
||||
}
|
||||
{
|
||||
event = "lock";
|
||||
command = "${config.programs.hyprlock.package}/bin/hyprlock";
|
||||
}
|
||||
];
|
||||
timeouts = [
|
||||
{
|
||||
timeout = 60;
|
||||
command = "${pkgs.brillo}/bin/brillo -e -O; ${pkgs.brillo}/bin/brillo -e -S 10 -u 1000000";
|
||||
resumeCommand = "${pkgs.brillo}/bin/brillo -e -I";
|
||||
}
|
||||
{
|
||||
timeout = 120;
|
||||
command = "${pkgs.brillo}/bin/brillo -e -S 0; ${config.programs.hyprlock.package}/bin/hyprlock";
|
||||
resumeCommand = "${pkgs.brillo}/bin/brillo -e -S 100";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue