mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 02:28:37 +02:00
caelestia: separate idle settings per device
This commit is contained in:
@@ -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'")"
|
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
|
flake.homeModules.caelestia = _: let
|
||||||
sisyphe = ../../assets/sisyphe.gif;
|
sisyphe = ../../assets/sisyphe.gif;
|
||||||
pepe-music = ../../assets/pepe-music.gif;
|
pepe-music = ../../assets/pepe-music.gif;
|
||||||
@@ -101,25 +130,6 @@
|
|||||||
];
|
];
|
||||||
criticalLevel = 3;
|
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 = {
|
background = {
|
||||||
desktopClock = {
|
desktopClock = {
|
||||||
|
|||||||
@@ -53,6 +53,7 @@
|
|||||||
inputs.caelestia-shell.homeManagerModules.default
|
inputs.caelestia-shell.homeManagerModules.default
|
||||||
anki
|
anki
|
||||||
caelestia
|
caelestia
|
||||||
|
caelestia-laptop
|
||||||
cursor
|
cursor
|
||||||
development
|
development
|
||||||
eza
|
eza
|
||||||
|
|||||||
Reference in New Issue
Block a user