Krolyxon
Commit 28b8728

Branches

Refs →

dotfiles-x11.configwaybarstyle.css

269 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#workspaces button:hover {
107 transition-duration: .2s;
108 color: @base;
109 box-shadow: inherit;
110 /* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
111 text-shadow: inherit;
112}
113
114/* non-empty persistent workspaces */
115#workspaces button.persistent {
116 background-color: #4c566a;
117}
118
119/* empty persistent workspaces */
120#workspaces button.empty {
121 background-color: @base;
122 box-shadow: none;
123}
124
125/* active or visible workspaces */
126#workspaces button.active,
127#workspaces button.visible {
128 /* background-color: #4c566a; */
129 color: @crust;
130 background-color: #7da6ff;
131 /* box-shadow: inset 0 -4px #eceff4; */
132}
133
134#workspaces button.urgent {
135 color: #bf616a;
136}
137
138/**************/
139
140#mode {
141 background-color: #64727D;
142 border-bottom: 3px solid #ffffff;
143}
144
145#clock,
146#custom-date,
147#custom-gpumode,
148#battery,
149#backlight,
150#cpu,
151#memory,
152#disk,
153#temperature,
154#network,
155#pulseaudio,
156#wireplumber,
157#mpris,
158#custom-media,
159#tray,
160#window,
161#custom-notification,
162#mpd {
163 background-color: @base;
164 border-radius: 8px;
165 padding: 0 12px 0 12px;
166 margin: 5px 5px 5px 0;
167}
168
169/* If workspaces is the leftmost module, omit left margin */
170.modules-left>widget:first-child>#workspaces {
171 margin-left: 0;
172}
173
174/* If workspaces is the rightmost module, omit right margin */
175.modules-right>widget:last-child>#workspaces {
176 margin-right: 0;
177}
178
179#window {
180 color: @text
181}
182
183#clock {
184 color: #eceff4;
185}
186
187#custom-date {
188 color: #b48ead;
189}
190
191#battery {
192 color: #ebcb8b;
193}
194
195#backlight {
196 color: @teal
197}
198
199@keyframes blink {
200 to {
201 background-color: #ffffff;
202 color: black;
203 }
204}
205
206#battery.critical:not(.charging) {
207 background-color: #bf616a;
208 color: #ffffff;
209 animation-name: blink;
210 animation-duration: 0.5s;
211 animation-timing-function: linear;
212 animation-iteration-count: infinite;
213 animation-direction: alternate;
214}
215
216label:focus {
217 background-color: black;
218}
219
220#cpu {
221 color: #bf616a;
222}
223
224#memory {
225 color: #a3be8c;
226}
227
228/* #disk {
229 background-color: #964B00;
230} */
231
232#network {
233 color: #5e81ac;
234}
235
236#network.disconnected {
237 color: #81a1c1;
238}
239
240#network.linked {
241 color: #bf616a;
242}
243
244#pulseaudio {
245 color: @text;
246}
247
248
249#temperature {
250 color: #d08770;
251}
252
253#temperature.critical {
254 color: #bf616a;
255}
256
257#tray {
258 color: @subtext0;
259
260}
261
262#tray>.passive {
263 -gtk-icon-effect: dim;
264}
265
266#tray>.needs-attention {
267 -gtk-icon-effect: highlight;
268 background-color: #bf616a;
269}