17
17
@define-color urgent @pink ;
18
18
@define-color critical @red ;
19
19
20
+ @keyframes urgent-animation {
21
+ 50% {
22
+ background: @urgent ;
23
+ }
24
+ }
25
+
26
+ @keyframes critical-animation {
27
+ 50% {
28
+ background: @critical ;
29
+ }
30
+ }
31
+
20
32
* {
21
33
border : none;
22
34
border-radius : 0 ;
@@ -58,7 +70,7 @@ tooltip label {
58
70
}
59
71
60
72
# workspaces button .urgent {
61
- background : @ urgent ;
73
+ animation : urgent-animation 1 s steps ( 3 ) infinite ;
62
74
}
63
75
64
76
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
@@ -127,6 +139,12 @@ tooltip label {
127
139
background: @light-blue ;
128
140
}
129
141
142
+ # custom-right-spacer-information {
143
+ color: @blue ;
144
+ padding : 0 ;
145
+ font-size : 20px ;
146
+ }
147
+
130
148
# tray {
131
149
padding : 0 4px ;
132
150
}
@@ -141,7 +159,7 @@ tooltip label {
141
159
142
160
# tray > .needs-attention {
143
161
-gtk-icon-effect : highlight;
144
- background-color : @ urgent ;
162
+ animation : urgent-animation 0.5 s steps ( 10 ) infinite ;
145
163
}
146
164
147
165
# privacy {
@@ -160,6 +178,12 @@ tooltip label {
160
178
background: @purple-alt ;
161
179
}
162
180
181
+ # custom-yubikey {
182
+ color: @yellow ;
183
+ font-size : 20px ;
184
+ animation : urgent-animation 0.5s steps (10 ) infinite;
185
+ }
186
+
163
187
# custom-weather ,
164
188
# custom-crypto {
165
189
background: @blue ;
@@ -169,12 +193,6 @@ tooltip label {
169
193
font-family : cryptocoins, monospace;
170
194
}
171
195
172
- # custom-right-spacer-information {
173
- color: @blue ;
174
- padding : 0 ;
175
- font-size : 20px ;
176
- }
177
-
178
196
# pulseaudio ,
179
197
# memory ,
180
198
# cpu ,
@@ -202,13 +220,8 @@ tooltip label {
202
220
203
221
# temperature .critical ,
204
222
# temperature .gpu .critical {
205
- background: @critical ;
206
223
color: @blue ;
207
- animation-name : blink;
208
- animation-duration : 0.5s ;
209
- animation-timing-function : linear;
210
- animation-iteration-count : infinite;
211
- animation-direction : alternate;
224
+ animation : critical-animation 0.5s steps (10 ) infinite;
212
225
}
213
226
214
227
# disk {
@@ -254,11 +267,6 @@ tooltip label {
254
267
}
255
268
256
269
# battery .critical : not (.charging ) {
257
- background: @critical ;
258
270
color: @blue ;
259
- animation-name : blink;
260
- animation-duration : 0.5s ;
261
- animation-timing-function : linear;
262
- animation-iteration-count : infinite;
263
- animation-direction : alternate;
271
+ animation : critical-animation 0.5s steps (10 ) infinite;
264
272
}
0 commit comments