caelestia: separate idle settings per device

This commit is contained in:
2026-06-08 16:38:06 +02:00
parent c128995bea
commit fdbc3e1a79
2 changed files with 30 additions and 19 deletions
+29 -19
View File
@@ -10,6 +10,35 @@
quickshell # we have it but adding it there solves "WARN qt.qpa.services: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: App info not found for 'org.quickshell'")"
];
};
flake.homeModules.caelestia-desktop = _: {
# for some reason nvidia drivers or I don't know what break the lock. (activate even when use, crash, etc.)
programs.caelestia.settings.general.idle = {
lockBeforeSleep = false;
inhibitWhenAudio = true;
timeouts = [];
};
};
flake.homeModules.caelestia-laptop = _: {
programs.caelestia.settings.general.idle = {
lockBeforeSleep = true;
inhibitWhenAudio = true;
timeouts = [
{
timeout = 180;
idleAction = "lock";
}
{
timeout = 300;
idleAction = "dpms off"; # what's that?
returnAction = "dpms on";
}
{
timeout = 600;
idleAction = ["systemctl" "suspend-then-hibernate"];
}
];
};
};
flake.homeModules.caelestia = _: let
sisyphe = ../../assets/sisyphe.gif;
pepe-music = ../../assets/pepe-music.gif;
@@ -101,25 +130,6 @@
];
criticalLevel = 3;
};
idle = {
lockBeforeSleep = true;
inhibitWhenAudio = true;
timeouts = [
{
timeout = 180;
idleAction = "lock";
}
{
timeout = 300;
idleAction = "dpms off"; # what's that?
returnAction = "dpms on";
}
{
timeout = 600;
idleAction = ["systemctl" "suspend-then-hibernate"];
}
];
};
};
background = {
desktopClock = {
+1
View File
@@ -53,6 +53,7 @@
inputs.caelestia-shell.homeManagerModules.default
anki
caelestia
caelestia-laptop
cursor
development
eza