blob: bd6cc96121dd8108250d91265a0975bf3e077547 (
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
|
{ lib, ... }:
{
programs.waybar = {
systemd = {
enable = true;
target = "hyprland-session.target";
};
settings.mainBar = {
layer = "top";
position = "right";
# width = 40;
reload_style_on_change = true;
modules-left = [ "hyprland/workspaces" ];
modules-right = [
"battery#capacity"
"battery#power"
"network"
"cpu"
"memory"
"temperature"
"backlight"
"clock"
"tray"
];
# TODO: fix clock format
clock = {
format = "{:%H:%M}";
};
"battery#capacity" = {
format = lib.concatStringsSep "\n" [
"{icon}"
"{capacity}%"
];
format-icons = [
""
""
""
""
""
""
""
""
""
""
];
};
"battery#power" = {
format = lib.concatStringsSep "\n" [
""
"{power:4.1f}W"
];
interval = 1;
};
# TODO: human readable bandwidth formatting
# See: https://github.com/Alexays/Waybar/issues/2162
# network = {
# format-ethernet = lib.concatStringsSep "\n" ["Eth" ""];
# };
keyboard-state = {
numlock = true;
capslock = true;
format = "{name} {icon}";
format-icons = {
locked = "";
unlocked = "";
};
};
}; # end of settings.mainBar
style = builtins.readFile ./waybar.css;
};
}
|