Move modules folders

This commit is contained in:
Filippo Berto 2025-09-11 14:00:31 +02:00
parent 914909009c
commit c1101e7b45
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED
183 changed files with 327 additions and 327 deletions

30
hm/swayidle.nix Normal file
View 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";
}
];
};
}