blob: a3adb3be13676b5322aee1d34b223a5f0dc1c155 (
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
|
{ config, lib, pkgs, ... }:
{
options.waybar.enable = lib.mkEnableOption "Enable and configure Waybar";
config = lib.mkIf config.waybar.enable {
programs.waybar = {
enable = true;
settings = {
mainBar = {
height = 15;
layer = "top";
position = "bottom";
modules-center = [ ];
modules-left = [ "sway/workspaces" ];
modules-right = [
"tray"
"privacy"
"battery"
"pulseaudio"
"network"
"bluetooth"
"clock"
];
tray = { spacing = 10; };
privacy = { icon-size = 16; };
network = {
format-disconnect = "";
format-ethernet = "";
format-wifi = "{icon} {signalStrength}";
format-icon = [ "" "" "" "" ];
tooltip-format-wifi = "{essid}";
tooltip-format-ethernet = "{ifname}";
};
bluetooth = {
format = " {status}";
format-disabled = "";
format-no-controller = "";
format-connected = " {device_alias}";
tooltip = false;
};
clock = {
format-alt = "{:%Y-%m-%d}";
tooltip-format = "{:%Y-%m-%d | %H:%M}";
};
pulseaudio = {
format = "{icon} {volume}%";
format-bluetooth = "{volume}% {icon}";
format-icons = {
default = [ "" "" "" ];
};
};
};
};
style = ''
* {
border: none;
border-radius: 0;
font-family: monospace;
font-size: 12px;
}
window#waybar {
background: rgba(0, 0, 0, 0.9);
}
#workspaces button {
padding-left: 5px;
padding-right: 5px;
}
#workspaces button.focused {
font-weight: bold;
}
#clock, #pulseaudio, #tray, #network, battery, bluetooth {
padding-left: 5px;
padding-right: 5px;
}
'';
};
};
}
|