Skip to content

Commit 17bc411

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 17bc411

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

modules/profiles/graphics.nix

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

4958
config = mkIf cfg.enable {
@@ -68,6 +77,7 @@ in
6877

6978
ghaf.graphics = {
7079
labwc.enable = cfg.compositor == "labwc";
80+
labwc.autolock.enable = cfg.idleManagement;
7181
};
7282
};
7383
}

0 commit comments

Comments
 (0)