summaryrefslogtreecommitdiff
path: root/modules/hm/wayland/waybar.nix
blob: 17a2f4651793c686f0938f003f91de6c35d2a69a (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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
{ lib, pkgs, ... }:
{
  programs.waybar = {
    enable = true;
    # settings = [
    #   {
    #     layer = "top";
    #     position = "top";
    #
    #     modules-center = [ "niri/workspaces" ];
    #     modules-right = [
    #       "idle_inhibitor"
    #       "pulseaudio"
    #       "disk"
    #       "battery"
    #       "custom/notification"
    #       "tray"
    #       "clock"
    #     ];
    #
    #     "niri/workspaces" = {
    #       format = "{icon} {value}";
    #       format-icons = {
    #         active = "";
    #         default = "";
    #       };
    #     };
    #
    #     "niri/window" = {
    #       icon = true;
    #     };
    #
    #     "pulseaudio" = {
    #       format = "{icon}";
    #       format-bluetooth = "{icon} ";
    #       format-muted = "󰝟";
    #       format-icons = {
    #         headphone = "";
    #         default = [
    #           ""
    #           ""
    #         ];
    #       };
    #       scroll-step = 1;
    #       on-click = "${lib.getExe pkgs.pwvucontrol}";
    #     };
    #
    #     clock = {
    #       format = "{:%H:%M}  ";
    #       format-alt = "{:%A; %B %d, %Y (%R)}  ";
    #       tooltip-format = "<tt><small>{calendar}</small></tt>";
    #       calendar = {
    #         mode = "year";
    #         mode-mon-col = 3;
    #         weeks-pos = "right";
    #         on-scroll = 1;
    #         on-click-right = "mode";
    #         format = {
    #           months = "<span color='#ffead3'><b>{}</b></span>";
    #           days = "<span color='#ecc6d9'><b>{}</b></span>";
    #           weeks = "<span color='#99ffdd'><b>W{}</b></span>";
    #           weekdays = "<span color='#ffcc66'><b>{}</b></span>";
    #           today = "<span color='#ff6699'><b><u>{}</u></b></span>";
    #         };
    #       };
    #       actions = {
    #         on-click-right = "mode";
    #         on-click-forward = "tz_up";
    #         on-click-backward = "tz_down";
    #         on-scroll-up = "shift_up";
    #         on-scroll-down = "shift_down";
    #       };
    #     };
    #
    #     battery = {
    #       format = "{icon}";
    #
    #       format-icons = [
    #         "󰁺"
    #         "󰁻"
    #         "󰁼"
    #         "󰁽"
    #         "󰁾"
    #         "󰁿"
    #         "󰂀"
    #         "󰂁"
    #         "󰂂"
    #         "󰁹"
    #       ];
    #       states = {
    #         battery-10 = 10;
    #         battery-20 = 20;
    #         battery-30 = 30;
    #         battery-40 = 40;
    #         battery-50 = 50;
    #         battery-60 = 60;
    #         battery-70 = 70;
    #         battery-80 = 80;
    #         battery-90 = 90;
    #         battery-100 = 100;
    #       };
    #
    #       format-plugged = "󰚥";
    #       format-charging-battery-10 = "󰢜";
    #       format-charging-battery-20 = "󰂆";
    #       format-charging-battery-30 = "󰂇";
    #       format-charging-battery-40 = "󰂈";
    #       format-charging-battery-50 = "󰢝";
    #       format-charging-battery-60 = "󰂉";
    #       format-charging-battery-70 = "󰢞";
    #       format-charging-battery-80 = "󰂊";
    #       format-charging-battery-90 = "󰂋";
    #       format-charging-battery-100 = "󰂅";
    #       tooltip-format = "{capacity}% {timeTo}";
    #     };
    #
    #     "custom/notification" = {
    #       format = "{icon}  {}  ";
    #       tooltip-format = "Left: Open Notification Center\nRight: Toggle Do not Disturb\nMiddle: Clear Notifications";
    #       format-icons = {
    #         notification = "<span foreground='red'><sup></sup></span>";
    #         none = "";
    #         dnd-notification = "<span foreground='red'><sup></sup></span>";
    #         dnd-none = "";
    #         inhibited-notification = "<span foreground='red'><sup></sup></span>";
    #         inhibited-none = "";
    #         dnd-inhibited-notification = "<span foreground='red'><sup></sup></span>";
    #         dnd-inhibited-none = "";
    #       };
    #       return-type = "json";
    #       exec-if = "which swaync-client";
    #       exec = "swaync-client -swb";
    #       on-click = "swaync-client -t -sw";
    #       on-click-right = "swaync-client -d -sw";
    #       on-click-middle = "swaync-client -C";
    #       escape = true;
    #     };
    #
    #     tray = {
    #       icon-size = 21;
    #       spacing = 10;
    #     };
    #   }
    # ];
    # style = ''
    #   #workspaces button {
    #       color: @base05;
    #   }
    # '';
  };
}