summaryrefslogtreecommitdiff
path: root/common/home/programs/waybar/default.nix
blob: d02decb97a71f4e16e847256d9f8ce632538b882 (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
{ ... }:
{
  enable = true;
  systemd.enable = true;
  settings = {
    mainBar = {
      layer = "top";
      position = "left";
      width = 50;
      outputs = "*";
      spacing = 10;
      modules-left = [ "hyprland/workspaces" ];
      modules-center = [ ];
      modules-right = [
        "bluetooth"
        "pulseaudio"
        "battery"
        "tray"
      ];

      "hyprland/workspaces" = {
        format = "{icon}";
        all-outputs = true;
      };

      "hyprland/window" = {
        separate-outputs = true;
      };

      bluetooth = {
        format = "";
        format-disabled = "󰂲";
        format-off = "󰂲";
        format-on = "";
        format-connected = "󰂱";
        on-click = "blueberry";
      };

      battery = {
        states = {
          warning = 15;
          critical = 5;
        };
      };

      tray = {
        icon-size = 15;
        spacing = 10;
      };
    };
  };
  style = ./style.css;
}