about summary refs log tree commit diff
path: root/home/modules/profiles/base/config/waybar-settings.nix
blob: d563c4c8d83e26da1ea424c46639775c54609a75 (plain)
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
{
  layer = "bottom";
  position = "top";
  height = 21;
  modules-left = [ "sway/workspaces" ];
  modules-center = [ "clock" ];
  modules-right = [ "cpu" "memory" "custom/weather" "pulseaudio" "network" ];

  modules = {
    "sway/workspaces" = {
      all-outputs = true;

      persistent_workspaces = {
        "α" = [ ];
        "β" = [ ];
        "γ" = [ ];
        "δ" = [ ];
        "ε" = [ ];
        "ζ" = [ ];
        "η" = [ ];
        "θ" = [ ];
        "ι" = [ ];
        "κ" = [ ];
      };
    };

    "clock" = {
      interval = 10;
      format = "{:  %a %d %H:%M}";
    };

    "cpu" = {
      interval = 5;
      format = " {usage:3}%";
    };

    "custom/weather" = {
      format = "  {}";
      exec = "curl 'wttr.in/?format='%t+-+%x+%C++%w'&M'";
      interval = 3600;
    };

    "network" = {
      interval = 5;
      interface = "enp4s0";
      format = " {ifname}";
      format-wifi = " {essid}  {bandwidthUpBits}  {bandwidthDownBits}";
      format-ethernet = "   {bandwidthUpBits:>}  {bandwidthDownBits:>}";
      format-disconnected = " Disconnected";
      max-length = 50;
    };

    "pulseaudio" = {
      format = "{icon} {volume}%";
      format-muted = "ﱝ  Muted";
      format-icons.default = [ " " " " " " ];
    };

    "memory" = {
      interval = 5;
      format = " {used:0.2f}GiB";
    };
  };
}