-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
150 lines (135 loc) · 2.82 KB
/
style.css
File metadata and controls
150 lines (135 loc) · 2.82 KB
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
138
139
140
141
142
143
144
145
146
147
148
149
150
/* Keyframes */
@keyframes blink {
to {
background-color: #ffffff;
color: black;
}
}
@keyframes glare {
0% { background-position: 0% 0 }
70% { background-position: -200% 0 }
100% { background-position: -200% 0 }
}
/* Various colors */
@define-color bg #171712;
@define-color text #ffffff;
@define-color light #797a5e;
@define-color dark #4E4F3D;
@define-color darker #404630;
@define-color focus #a7c080;
@define-color highlight #458588;
@define-color module @dark;
@define-color battery #44d480;
@define-color battery-charging #afee27;
* { /* Reset all styles */
border: none;
border-radius: 4px;
min-height: 0;
}
window#waybar { /* The whole bar */
background: @bg;
color: @text;
font-family: "JetBrains Mono Nerd Font", sans-serif;
font-size: 14px;
border-radius: 0;
}
/* Vertical margin widgets
* Spacing variable in config occupies horizontal spacing */
widget > *:not(#tray) {
margin: 5px 0;
}
/* Fix small alignment issues */
.modules-left > widget:first-child > #network {
margin-left: 5px;
}
.modules-right > widget:last-child > * {
margin-right: 5px;
}
/* Workspaces */
#workspaces button {
font-weight: bold;
border-radius: 50%;
padding: 0 4.5px;
margin: 0 2.5px;
}
#workspaces button.focused { color: @focus; }
/* Occupied */
#workspaces button.persistent { color: @dark; }
/* Urgent */
#workspaces button.urgent { color: #eb4d4b }
/* Modules */
#clock,
#battery,
#cpu,
#memory,
#temperature,
#backlight,
#bluetooth,
#network,
#pulseaudio {
padding: 0 10px;
color: @text;
background-color: @module;
}
/* Highlight some in a lighter background */
#network,
#clock,
#backlight,
#bluetooth {
background-color: @light;
}
/* Current active window */
#window {
background-color: @dark;
}
/* Network */
#network.disconnected {
background-color: #eb4d4b;
}
/* Pulse */
#pulseaudio { background-color: @highlight }
#pulseaudio.muted {
background-color: #90b1b1;
}
/* Battery widgets */
#battery {
background-color: @highlight;
}
#battery.plugged {
background-color: @battery;
color: #000000;
}
#battery.charging {
color: #000000;
background-image: linear-gradient(
120deg,
@battery 50%,
@battery-charging 75%,
@battery 100%
);
background-size: 200%;
animation: glare 1.5s ease-in-out infinite;
}
#battery.discharging {
border: 2px solid #f53c3c;
}
battery.critical:not(.plugged) {
background-color: #f53c3c;
color: #ffffff;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
/* Tray */
#tray {
padding: 0 5px;
}
#tray > .passive {
-gtk-icon-effect: dim;
}
#tray > .needs-attention {
-gtk-icon-effect: highlight;
background-color: #eb4d4b;
}