Skip to content

Commit ae3185f

Browse files
committed
feat(graphics): add higher level idle management option
- Add idleManagement option to graphics profile - Default to true for enabling swayidle functionality in labwc Signed-off-by: Kajus Naujokaitis <kajus.naujokaitis@unikie.com>
1 parent 27bc575 commit ae3185f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

modules/profiles/graphics.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,17 @@ in
4444
Choose one of: ${lib.concatStringsSep "," renderers}
4545
'';
4646
};
47+
idleManagement = {
48+
enable = mkOption {
49+
type = types.bool;
50+
default = true;
51+
description = ''
52+
Enable or disable system idle management using swayidle.
53+
54+
When enabled, this will handle automatic screen dimming, locking, and suspending.
55+
'';
56+
};
57+
};
4758
};
4859

4960
config = mkIf cfg.enable {
@@ -68,6 +79,7 @@ in
6879

6980
ghaf.graphics = {
7081
labwc.enable = cfg.compositor == "labwc";
82+
labwc.autolock.enable = cfg.idleManagement.enable;
7183
};
7284
};
7385
}

0 commit comments

Comments
 (0)