blob: 1637f5cfde0f356caf6f4c52e08182953f017c17 (
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
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
|
{ pkgs, ... }:
{
programs.waybar = {
enable = true;
systemd = { enable = true; };
settings = [{
layer = "bottom";
position = "top";
margin-top = 0;
margin-left = 0;
margin-right = 0;
margin-bottom = 0;
modules-left = [ "sway/workspaces" "sway/mode" ];
modules-right = [ "pulseaudio" "network" "battery" "clock" "tray" ];
modules = {
"sway/workspaces" = { format = "{name}"; };
"sway/mode" = { format = "{}"; };
tray = { spacing = 10; };
clock = { format = "{: %a %b %d %R}"; };
battery = {
states = {
warning = 30;
critical = 15;
};
format = "ac:{capacity}%";
tooltip = true;
tooltip-format = "{timeTo} ({capacity}%)";
};
pulseaudio = {
format = "vol:{volume}%";
format-bluetooth = "bt:{volume}% {icon} ({format_source})";
format-bluetooth-muted = "bt:{volume}%";
format-muted = "vol:{volume}%";
on-click = "pavucontrol";
};
"network" = {
format-wifi = "{essid}:{signalStrength}%";
format-ethernet = "{ipaddr}/{cidr}";
format-linked = "{ifname} (No IP)";
format-disconnected = "network unavailable";
format-alt = "{ifname}: {ipaddr}/{cidr}";
tooltip = false;
};
};
}];
style = ''
* {
border-radius: 0;
border: none;
margin: 0;
min-height: 0;
padding: 0;
}
#waybar {
background: #000000;
color: white;
font-family: Source Code Pro;
font-size: 15px;
}
#tray {
/* No styles */
}
#window {
font-weight: bold;
}
#workspaces button {
border-top: #333333;
background-color: #000000;
/* To compensate for the top border and still have vertical centering */
padding-bottom: 2px;
color: #ffffff;
}
#workspaces button.visible {
border-color: #333333;
background-color: #5f676a;
}
#workspaces button.focused {
border-color: #4c7899;
background-color: #285577;
}
#workspaces button.urgent {
border-color: #2f343a;
background-color: #900000;
}
#clock,
#battery,
#network,
#pulseaudio,
#tray,
#mode {
padding-left: 10px;
padding-right: 10px;
}
#mode {
background: #64727D;
border-top: 2px solid white;
/* To compensate for the top border and still have vertical centering */
padding-bottom: 2px;
}
#clock {
/* No styles */
}
#battery {
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
#battery.discharging {
color: #90a1ad;
}
#battery.charging {
color: #fffff8;
}
#battery.warning {
border-bottom: 2px solid #ff9e21;
}
#battery.critical {
border-bottom: 2px solid #ff3121;
}
#network {
/* No styles */
}
#network.disconnected {
color: orange;
}
#pulseaudio {
/* No styles */
}
#pulseaudio.muted {
color: #90a1ad;
}
'';
};
}
|