-
Notifications
You must be signed in to change notification settings - Fork 0
/
i3status.nix
91 lines (87 loc) · 2.23 KB
/
i3status.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{ lib,config, pkgs,input, ... }:
{
programs= {
i3status={
enable=true;
enableDefault=false;
package=pkgs.i3status;
general={
colors = true;
color_good = "#e0e0e0";
color_degraded = "#d7ae00";
color_bad = "#f69d6a";
interval = 1;
};
modules={
"volume master"={
enable=true;
position=lib.mkDefault 1;
settings={
format = " %volume";
format_muted = " %volume";
device = "default";
mixer = "Master";
mixer_idx = 0;
};
};
#ipv6 = {
# enable=false;
# position = lib.mkDefault 1;
#};
#"wireless _first_" = {
# enable=false;
# position = lib.mkDefault 2;
# settings = {
# format_up =lib.mkDefault "W: (%quality at %essid) %ip";
# format_down = lib.mkDefault "W: down";
# };
#};
"ethernet _first_" = {
enable=true;
position = lib.mkDefault 2;
settings = {
#format_up = lib.mkDefault "E: %ip (%speed)";
format_up = lib.mkDefault "E: (%speed)";
format_down = lib.mkDefault "E: down";
};
};
#"battery all" = {
# enable=false;
# position = lib.mkDefault 4;
# settings = {
# format = lib.mkDefault "%status %percentage %remaining"; };
#};
"disk /" = {
enable=true;
position = lib.mkForce 3;
settings = {
format = lib.mkForce "%avail";
};
};
"load" = {
enable=true;
position = lib.mkDefault 4;
settings = {
format = lib.mkDefault "%1min";
};
};
"memory" = {
enable=true;
position = lib.mkDefault 5;
settings = {
format = lib.mkDefault "%used | %available";
threshold_degraded = lib.mkDefault "1G";
format_degraded = lib.mkDefault "MEMORY < %available";
};
};
"tztime local" = {
enable=true;
position = lib.mkDefault 6;
settings = {
format = lib.mkDefault "%Y-%m-%d %H:%M:%S";
};
};
};
};
};
}