docs: add disk.warnThreshold to readme and hm-module
This commit is contained in:
parent
4b5272c124
commit
8177b5e2a2
2 changed files with 12 additions and 2 deletions
|
|
@ -122,7 +122,8 @@ programs.nova-shell.modules = {
|
||||||
battery.warning = 30; # % for warning notification
|
battery.warning = 30; # % for warning notification
|
||||||
battery.critical = 10; # % for critical blink + notification
|
battery.critical = 10; # % for critical blink + notification
|
||||||
cpu.interval = 2000; # polling interval in ms
|
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.timeout = 3000; # popup auto-dismiss in ms
|
||||||
notifications.maxPopups = 4; # max simultaneous popups (0 to disable)
|
notifications.maxPopups = 4; # max simultaneous popups (0 to disable)
|
||||||
notifications.maxVisible = 10; # scrollable history limit in center
|
notifications.maxVisible = 10; # scrollable history limit in center
|
||||||
|
|
|
||||||
|
|
@ -144,7 +144,16 @@ in
|
||||||
description = "Maximum notifications kept in history (-1 for unlimited).";
|
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" {
|
backlight = moduleOpt "backlight" {
|
||||||
step = lib.mkOption {
|
step = lib.mkOption {
|
||||||
type = lib.types.int;
|
type = lib.types.int;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue