hand7s: upstream
Signed-off-by: s0me1newithhand7s <git+me@hand7s.org>
This commit is contained in:
parent
e6c9d19b0f
commit
e4222e5423
48 changed files with 282 additions and 1097 deletions
23
hand7s/services/hyprsunset.nix
Normal file
23
hand7s/services/hyprsunset.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
_: {
|
||||
services = {
|
||||
hyprsunset = {
|
||||
enable = true;
|
||||
settings = {
|
||||
max-gamma = 150;
|
||||
|
||||
profile = [
|
||||
{
|
||||
time = "6:00";
|
||||
identity = true;
|
||||
}
|
||||
|
||||
{
|
||||
time = "22:00";
|
||||
temperature = 4000;
|
||||
gamma = 1.1;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,51 +0,0 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
services = {
|
||||
swayidle = {
|
||||
enable =
|
||||
lib.mkIf (
|
||||
config.home.gui.sessionType == "Sway"
|
||||
)
|
||||
true;
|
||||
|
||||
events = [
|
||||
{
|
||||
event = "lock";
|
||||
command = "${lib.getExe pkgs.swaylock}";
|
||||
}
|
||||
|
||||
{
|
||||
event = "before-sleep";
|
||||
command = "${lib.getExe' pkgs.sway "swaymsg"} 'output * power off'";
|
||||
}
|
||||
|
||||
{
|
||||
event = "after-resume";
|
||||
command = "${lib.getExe' pkgs.sway "swaymsg"} 'output * power on'";
|
||||
}
|
||||
];
|
||||
|
||||
timeouts = [
|
||||
{
|
||||
timeout = 300;
|
||||
command = "${lib.getExe pkgs.brightnessctl} -s set 10";
|
||||
resumeCommand = "${lib.getExe pkgs.brightnessctl} -r";
|
||||
}
|
||||
|
||||
{
|
||||
timeout = 600;
|
||||
command = "${lib.getExe pkgs.swaylock}";
|
||||
}
|
||||
|
||||
{
|
||||
timeout = 900;
|
||||
command = "${lib.getExe' pkgs.systemd "systemctl"} suspend";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue