summaryrefslogtreecommitdiff
path: root/home/wayland/modules/sway/i3status.nix
blob: a7e4075cfd400dabb1bbcb978322a0d37b7c5fc5 (plain) (blame)
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
{ ... }: {
  programs.i3status = {
    enable = true;
    enableDefault = false;

    general = {
      output_format = "i3bar";
      separator = "";
      interval = 5;
    };

    modules = {
      "tztime local" = {
        position = 50;
        settings.format = "󱛡  %a,%e %b  %H:%M";
      };

      "battery all" = {
        position = 40;
        settings = {
          status_chr = "󰂄";
          status_bat = "󰂀";
          status_unk = "󰂃";
          status_full = "󱟨";
          last_full_capacity = true;
          low_threshold = 21;
          threshold_type = "percentage";
          format_percentage = "%.00f%s";
          path = "/sys/class/power_supply/BAT%d/uevent";
          format_down = "";
          format = "%status %percentage %remaining %consumption";
        };
      };

      "volume master" = {
        position = 40;
        settings = {
          format = "󰕾  %volume";
          format_muted = "󰖁  %volume";
        };
      };

      "cpu_temperature 0" = {
        position = 30;
        settings.format = "%degrees°C";
      };

      "cpu_usage" = {
        position = 20;
        settings.format = "  %usage";
      };

      "memory" = {
        position = 10;
        settings.format = "  %available";
      };

      "wireless _first_" = {
        position = 00;
        settings = {
          format_up = "󰤥  %quality";
          format_down = "";
        };
      };
    };
  };
}