blob: 2fc63acb9c5f40df3f4bd06130c4ea7d0b2926a6 (
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
|
{ config, pkgs, ... }:
{
programs.waybar = {
settings = {
main = {
layer = "top";
position = "top";
height = 32;
output = [ "DP-3" ];
modules-left = [ "cpu" "memory" "mpris" ];
modules-center = [ "sway/workspaces" ];
modules-right = [ "network" "disk" "keyboard-state" "pulseaudio" "clock" ];
# Left
"cpu" = {
interval = 5;
format = "{usage}% {avg_frequency} GHz";
};
"memory" = {
interval = 5;
format = "{used} GiB";
tooltip-format = "{used}/{total} GiB ({percentage}%)";
};
"mpris" = {
format = " {status_icon} {title} - {artist}";
tooltip-format = "[{status}] {dynamic} ({player})";
status-icons = {
playing = "";
paused = "";
stopped = "";
};
};
# Center
"sway/workspaces" = {
disable-scroll = true;
all-outputs = true;
format = "{icon}";
format-icons = {
"0:Main" = "";
"1:Terminal" = "";
"2:Browser" = "";
"3:Chat" = "";
"4:Gaming" = "";
"5" = "";
"6" = "";
"7" = "";
"8:Meow" = "";
"9:Music" = "";
"10:Misc" = "";
};
};
# Right
"network" = {
interval = 10;
format-ethernet = " {ifname}";
format-wifi = "{icon} {ifname}";
format-icons = [ "" "" "" "" "" ];
};
};
};
};
}
|