Krolyxon
Commit 3ff9631

Branches

Refs →

dotfiles-x11.configwaybarstyle.css

272 lines · 4.7 KB · CSS

1/*
2*
3* Catppuccin Mocha palette
4* Maintainer: rubyowo
5*
6*/
7@define-color base #1e1e2e;
8@define-color mantle #181825;
9@define-color crust #11111b;
10
11@define-color text #cdd6f4;
12@define-color subtext0 #a6adc8;
13@define-color subtext1 #bac2de;
14
15@define-color surface0 #313244;
16@define-color surface1 #45475a;
17@define-color surface2 #585b70;
18
19@define-color overlay0 #6c7086;
20@define-color overlay1 #7f849c;
21@define-color overlay2 #9399b2;
22
23@define-color blue #89b4fa;
24@define-color lavender #b4befe;
25@define-color sapphire #74c7ec;
26@define-color sky #89dceb;
27@define-color teal #94e2d5;
28@define-color green #a6e3a1;
29@define-color yellow #f9e2af;
30@define-color peach #fab387;
31@define-color maroon #eba0ac;
32@define-color red #f38ba8;
33@define-color mauve #cba6f7;
34@define-color pink #f5c2e7;
35@define-color flamingo #f2cdcd;
36@define-color rosewater #f5e0dc;
37
38* {
39font-family: "JetBrainsMono Nerd Font", "FontAwesome";
40font-weight: bold;
41min-height: 0;
42/* set font-size to 100% if font scaling is set to 1.00 using nwg-look */
43font-size: 97%;
44font-feature-settings: '"zero", "ss01", "ss02", "ss03", "ss04", "ss05", "cv31"';
45padding: 0.03125rem;
46}
47
48window#waybar {
49 transition-property: background-color;
50 transition-duration: 0.5s;
51 background: transparent;
52 /*border: 2px solid @overlay0;*/
53 /*background: @theme_base_color;*/
54 border-radius: 10px;
55}
56
57window#waybar.hidden {
58 opacity: 0.2;
59}
60
61#waybar.empty #window {
62 background: none;
63}
64
65
66/**************/
67/* Workspaces */
68/**************/
69
70#workspaces {
71 /* border-radius: 8px; */
72 padding: 0 3px 0 8px;
73 margin: 5px 5px 5px 0;
74 transition: all 0.2s ease;
75}
76
77/* non-empty workspaces */
78#workspaces button {
79 background-color: @base;
80
81 border: none;
82 border-radius: 0;
83
84 color: @text;
85 transition: all 0.2s ease;
86 text-shadow: none;
87
88 /* center the icon, no clue why this is necessary */
89 padding-left: 5px;
90 padding-right: 10px;
91 padding-top: 1px;
92
93 box-shadow: inset 0 -1px #e3e3e3;
94}
95
96/* the first and last buttons should be rounded */
97#workspaces button:first-child {
98 border-top-left-radius: 8px;
99 border-bottom-left-radius: 8px;
100}
101#workspaces button:last-child {
102 border-top-right-radius: 8px;
103 border-bottom-right-radius: 8px;
104}
105
106/* empty persistent workspaces */
107#workspaces button.empty {
108 background-color: @base;
109 box-shadow: none;
110}
111
112#workspaces button:hover {
113 /* transition-duration: .3s; */
114 color: @base;
115 background-color: #7da6ff;
116 box-shadow: inset 0 -1px #ffffff;
117 /* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
118 text-shadow: inherit;
119}
120
121/* non-empty persistent workspaces */
122#workspaces button.persistent {
123 background-color: #4c566a;
124}
125
126
127
128/* active or visible workspaces */
129#workspaces button.active,
130#workspaces button.visible {
131 /* background-color: #4c566a; */
132 color: @crust;
133 background-color: #7da6ff;
134 /* box-shadow: inset 0 -4px #eceff4; */
135}
136
137#workspaces button.urgent {
138 color: #bf616a;
139}
140
141/**************/
142
143#mode {
144 background-color: #64727D;
145 border-bottom: 3px solid #ffffff;
146}
147
148#clock,
149#custom-date,
150#custom-gpumode,
151#battery,
152#backlight,
153#cpu,
154#memory,
155#disk,
156#temperature,
157#network,
158#pulseaudio,
159#wireplumber,
160#mpris,
161#custom-media,
162#tray,
163#window,
164#custom-notification,
165#mpd {
166 background-color: @base;
167 border-radius: 8px;
168 padding: 0 12px 0 12px;
169 margin: 5px 5px 5px 0;
170}
171
172/* If workspaces is the leftmost module, omit left margin */
173.modules-left>widget:first-child>#workspaces {
174 margin-left: 0;
175}
176
177/* If workspaces is the rightmost module, omit right margin */
178.modules-right>widget:last-child>#workspaces {
179 margin-right: 0;
180}
181
182#window {
183 color: @text
184}
185
186#clock {
187 color: #eceff4;
188}
189
190#custom-date {
191 color: #b48ead;
192}
193
194#battery {
195 color: #ebcb8b;
196}
197
198#backlight {
199 color: @teal
200}
201
202@keyframes blink {
203 to {
204 background-color: #ffffff;
205 color: black;
206 }
207}
208
209#battery.critical:not(.charging) {
210 background-color: #bf616a;
211 color: #ffffff;
212 animation-name: blink;
213 animation-duration: 0.5s;
214 animation-timing-function: linear;
215 animation-iteration-count: infinite;
216 animation-direction: alternate;
217}
218
219label:focus {
220 background-color: black;
221}
222
223#cpu {
224 color: #bf616a;
225}
226
227#memory {
228 color: #a3be8c;
229}
230
231/* #disk {
232 background-color: #964B00;
233} */
234
235#network {
236 color: #5e81ac;
237}
238
239#network.disconnected {
240 color: #81a1c1;
241}
242
243#network.linked {
244 color: #bf616a;
245}
246
247#pulseaudio {
248 color: @text;
249}
250
251
252#temperature {
253 color: #d08770;
254}
255
256#temperature.critical {
257 color: #bf616a;
258}
259
260#tray {
261 color: @subtext0;
262
263}
264
265#tray>.passive {
266 -gtk-icon-effect: dim;
267}
268
269#tray>.needs-attention {
270 -gtk-icon-effect: highlight;
271 background-color: #bf616a;
272}