2020-09-02 04:37:42 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
programs.i3status-rust = { enable = true; };
|
|
|
|
|
2023-05-07 13:42:55 +02:00
|
|
|
test.stubs.i3status-rust = { version = "0.31.2"; };
|
2020-09-02 04:37:42 +02:00
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.config/i3status-rust/config-default.toml
|
|
|
|
assertFileContent home-files/.config/i3status-rust/config-default.toml \
|
|
|
|
${
|
|
|
|
pkgs.writeText "i3status-rust-expected-config" ''
|
|
|
|
[[block]]
|
2023-05-07 13:42:55 +02:00
|
|
|
alert = 10.0
|
2020-09-02 04:37:42 +02:00
|
|
|
block = "disk_space"
|
|
|
|
info_type = "available"
|
|
|
|
interval = 60
|
|
|
|
path = "/"
|
2023-05-07 13:42:55 +02:00
|
|
|
warning = 20.0
|
2020-09-02 04:37:42 +02:00
|
|
|
|
|
|
|
[[block]]
|
|
|
|
block = "memory"
|
2023-03-16 12:48:55 +01:00
|
|
|
format = " $icon mem_used_percents "
|
|
|
|
format_alt = " $icon $swap_used_percents "
|
2020-09-02 04:37:42 +02:00
|
|
|
|
|
|
|
[[block]]
|
|
|
|
block = "cpu"
|
|
|
|
interval = 1
|
|
|
|
|
|
|
|
[[block]]
|
|
|
|
block = "load"
|
2023-03-16 12:48:55 +01:00
|
|
|
format = " $icon $1m "
|
2020-09-02 04:37:42 +02:00
|
|
|
interval = 1
|
|
|
|
|
|
|
|
[[block]]
|
|
|
|
block = "sound"
|
|
|
|
|
|
|
|
[[block]]
|
|
|
|
block = "time"
|
2023-03-16 12:48:55 +01:00
|
|
|
format = " $timestamp.datetime(f:'%a %d/%m %R') "
|
2020-09-02 04:37:42 +02:00
|
|
|
interval = 60
|
2023-03-16 12:48:55 +01:00
|
|
|
|
|
|
|
[icons]
|
|
|
|
icons = "none"
|
|
|
|
|
|
|
|
[theme]
|
|
|
|
theme = "plain"
|
2022-04-26 23:04:50 +02:00
|
|
|
''
|
2020-09-02 04:37:42 +02:00
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|