summaryrefslogtreecommitdiff
path: root/home/wayland/modules/sway/i3status.nix
blob: 909faf08246a5fa005b4e4531ae3cd05cae0f343 (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
{ ... }: {
  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 = 20;
          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 = 30;
        settings = {
          format = "󰕾  %volume";
          format_muted = "󰖁  %volume";
        };
      };

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

      "disk /" = {
        position = 10;
        settings.format = "󰋊  %avail";
      };

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