aboutsummaryrefslogtreecommitdiff
path: root/homes/floppydisk/waybar.nix
blob: 5592c05b01f0cf8a69c964861f9fa82ab7c47ce8 (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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
{
  mainBar = {
    layer = "top";
    position = "top";
    height = 27;
    fixed-center = true;
    modules-left = [
      "wlr/workspaces"
      "custom/notification"
      "tray"
    ];
    modules-center = [
    ];
    modules-right = [
      "battery"
      "cpu"
      "memory"
      "pulseaudio"
      "network"
      "clock"
    ];

    "custon/sep_r" = {
      format = " ";
    };

    "custom/sep" = {
      format = " ";
    };

    "custom/sep_l" = {
      format = " ";
    };

    "custom/notification" = {
      tooltip = true;
      format = "{icon}";
      format-icons = {
        "notification" = "<span foreground='white'><sup></sup></span>";
        "none" = " ";
        "dnd-notification" = "<span foreground='white'><sup></sup></span>";
        "dnd-none" = " ";
      };
      return-type = "json";
      exec-if = "which swaync-client";
      exec = "swaync-client -swb";
      on-click = "swaync-client -t -sw";
      on-click-middle = "swaync-client -d -sw";
      on-click-right = "swaync-client -C";
      escape = true;
    };

    "wlr/workspaces" = {
      disable-scroll = false;
      all-outputs = false;
      format = "{icon}";
      active-only = false;
      format-icons = {
        "1" = "I";
        "2" = "II";
        "3" = "III";
        "4" = "IV";
        "5" = "V";
        "6" = "VI";
        "7" = "VII";
        "8" = "VIII";
        "9" = "IX";
        "10" = "X";
        "11" = "XI";
        "12" = "XII";
      };
    };

    "hyprland/language" = {
      format = "{}";
      format-tr = "TR";
    };

    "hyprland/window" = {
      format = "{}";
      seperate-outputs = true;
    };

    "keyboard-state" = {
      interval = 1;
      numlock = false;
      capslock = false;
      format = "{icon}";
      format-icons = {
        "locked" = " ";
        "unlocked" = "";
      };
    };

    "idle_inhibitor" = {
      format = "{icon}";
      format-icons = {
        "activated" = "";
        "deactivated" = "";
      };
    };

    "tray" = {
      icon-size = 16;
      spacing = 6;
    };

    "clock" = {
      timezone = "Europe/London";
      format = "{:  %H:%M}";
      format-alt = "{:  %H:%M    %d/%m/%Y}";
      tooltip-format = "{:  %H:%M    %d/%m/%Y}";
      today-format = "<span color='#aaaaaa'><b><u>{}</u></b></span>";
      calendar-weeks-pos = "right";
      format-calendar = "<span color='#aaaaaa'><b><u>{}</u></b></span>";
      format-calendar-weeks = "<span color='#aaaaaa'><b><u>{}</u></b></span>";
      format-calendar-weekdays = "<span color='#ffffff'><b>{}</b></span>";
      interval = 10;
      on-click-middle = "kalendar";
    };

    "cpu" = {
      format = " {usage}%";
      tooltip = false;
    };

    "memory" = {
      format = " {}%";
    };

    "battery" = {
      states = {
        "good" = 80;
        "warning" = 30;
        "critical" = 5;
      };
      format = "{icon}{capacity}%  ";
      format-charging = " {capacity}%  ";
      format-plugged = " {capacity}%  ";
      format-alt = "{icon}{time}";
      format-icoms = ["  " "  " "  " "  " "  "];
    };

    "network" = {
      format-wifi = "  Connected";
      format-ethernet = "  Connected";
      format-disconnected = "  Disconnected";
      tooltip-format-wifi = "{essid} | Signal Strenght: {signalStrength}% | Down Speed: {bandwidthDownBits}, Up Speed: {bandwidthUpBits}";
      tooltip-format = "{ifname} via {gwaddr} ";
      tooltip-format-ethernet = "{ipaddr}  ";
      format-linked = "{ifname} (No IP) ";
      format-alt = "{ifname}: {ipaddr}/{cidr}";
    };

    "pulseaudio" = {
      on-click = "pavucontrol";
      format = "{icon}{volume}%";
      format-icons = {
        "default" = [" " " " " "];
      };
    };

    "disk" = {
      interval = 90;
      format = " {free} (/)";
      tooltip-format = "{used} / {total} ({percentage_used}%)";
      path = "/";
    };

    "custom/power" = {
      format = " ";
      on-click = "wlogout";
    };
  };
}