blob: 02410b420a44cb47576f3d4fc1e4dc4fb171f917 (
plain) (
blame)
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
|
{
programs.waybar = {
enable = true;
systemd.enable = true;
settings = {
mainBar = {
layer = "bottom";
position = "top";
height = 20;
modules-left = ["sway/workspaces" "sway/mode" "sway/window"];
modules-right = ["tray" "battery" "clock"];
"sway/workspaces" = {
format = "{name}";
disable-scroll = true;
};
"sway/mode" = {
format = " {}";
};
"sway/window" = {
max-length = 80;
tooltip = false;
};
clock = {
format = "{:%a %d %I:%M}";
tooltip = false;
};
battery = {
format = "{capacity}% {icon}";
format-alt = "{time} {icon}";
format-icons = ["" "" "" "" ""];
format-charging = "{capacity}% ";
interval = 30;
states = {
warning = 25;
critical = 10;
};
tooltip = false;
};
tray = {
icon-size = 18;
};
};
};
style = ./waybar.css;
};
}
|