From 8177b5e2a2cc2847a1179f204f6075cac7f80d41 Mon Sep 17 00:00:00 2001 From: Damocles Date: Wed, 22 Apr 2026 20:08:37 +0200 Subject: [PATCH] docs: add disk.warnThreshold to readme and hm-module --- README.md | 3 ++- nix/hm-module.nix | 11 ++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e6d9360..2315866 100644 --- a/README.md +++ b/README.md @@ -122,7 +122,8 @@ programs.nova-shell.modules = { battery.warning = 30; # % for warning notification battery.critical = 10; # % for critical blink + notification cpu.interval = 2000; # polling interval in ms - disk.interval = 60000; # polling interval in ms + disk.interval = 60000; # polling interval in ms + disk.warnThreshold = 85; # % usage to trigger warning color notifications.timeout = 3000; # popup auto-dismiss in ms notifications.maxPopups = 4; # max simultaneous popups (0 to disable) notifications.maxVisible = 10; # scrollable history limit in center diff --git a/nix/hm-module.nix b/nix/hm-module.nix index 59e729f..c64c8ac 100644 --- a/nix/hm-module.nix +++ b/nix/hm-module.nix @@ -144,7 +144,16 @@ in description = "Maximum notifications kept in history (-1 for unlimited)."; }; }; - disk = moduleOpt "disk" (intervalOpt 30000); + disk = moduleOpt "disk" ( + (intervalOpt 30000) + // { + warnThreshold = lib.mkOption { + type = lib.types.int; + default = 85; + description = "Usage percentage at which the disk module bar turns warning color."; + }; + } + ); backlight = moduleOpt "backlight" { step = lib.mkOption { type = lib.types.int;