blob: 06048e43ac7ff61ef9aee6aa1ef10a4ac1cd0bdc [file] [log] [blame]
Samuel Shuertdab963e2024-03-23 19:54:28 -04001/*
2This file is modified from https://github.com/Andrey0189/hyprland-rice/blob/main/config/waybar/style.css
3As such you can access it under the following license terms:
4
5MIT License
6
7Copyright (c) 2024 Andrew
8
9Permission is hereby granted, free of charge, to any person obtaining a copy
10of this software and associated documentation files (the "Software"), to deal
11in the Software without restriction, including without limitation the rights
12to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13copies of the Software, and to permit persons to whom the Software is
14furnished to do so, subject to the following conditions:
15
16The above copyright notice and this permission notice shall be included in all
17copies or substantial portions of the Software.
18
19THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25SOFTWARE.
26*/
27
28* {
29 border: none;
30 border-radius: 0;
31 /* `otf-font-awesome` is required to be installed for icons */
32 font-family: FontAwesome, JetBrains Mono Bold, sans-serif;
33 min-height: 20px;
34}
35
36window#waybar {
37 background: transparent;
38}
39
40window#waybar.hidden {
41 opacity: 0.2;
42}
43
44#workspaces {
45 margin-right: 8px;
46 border-radius: 10px;
47 transition: none;
48 background: @background;
49}
50
51#workspaces button {
52 transition: none;
53 color: @text;
54 background: transparent;
55 padding: 5px;
56 font-size: 18px;
57}
58
59#workspaces button.persistent {
60 color: @active;
61 font-size: 12px;
62}
63
64/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
65#workspaces button:hover {
66 transition: none;
67 box-shadow: inherit;
68 text-shadow: inherit;
69 border-radius: inherit;
70 color: @text;
71 background: @hover;
72}
73
74#workspaces button.active {
75 background: @active;
76 color: @altText;
77 border-radius: inherit;
78}
79
80#submap {
81 padding-left: 16px;
82 padding-right: 16px;
83 border-radius: 10px;
84 transition: none;
85 color: @text;
86 background: @background;
87}
88
89#clock {
90 padding-left: 16px;
91 padding-right: 16px;
92 border-radius: 10px 10px 10px 10px;
93 transition: none;
94 color: @text;
95 background: @background;
96}
97
98#pulseaudio {
99 margin-right: 8px;
100 padding-left: 16px;
101 padding-right: 16px;
102 border-radius: 10px;
103 transition: none;
104 color: @text;
105 background: @background;
106}
107
108#pulseaudio.muted {
109 background-color: @background;
110 color: @critical;
111}
112
113#custom-mem {
114 margin-right: 8px;
115 padding-left: 16px;
116 padding-right: 16px;
117 border-radius: 10px;
118 transition: none;
119 color: @text;
120 background: @background;
121}
122
123#cpu {
124 margin-right: 8px;
125 padding-left: 16px;
126 padding-right: 16px;
127 border-radius: 10px;
128 transition: none;
129 color: @text;
130 background: @background;
131}
132
133#temperature {
134 margin-right: 8px;
135 padding-left: 16px;
136 padding-right: 16px;
137 border-radius: 10px;
138 transition: none;
139 color: @text;
140 background: @background;
141}
142
143#temperature.critical {
144 background-color: @critical;
145 color: @altText
146}
147
148#backlight {
149 margin-right: 8px;
150 padding-left: 16px;
151 padding-right: 16px;
152 border-radius: 10px;
153 transition: none;
154 color: @text;
155 background: @background;
156}
157
158#battery {
159 margin-right: 8px;
160 padding-left: 16px;
161 padding-right: 16px;
162 border-radius: 10px;
163 transition: none;
164 color: @text;
165 background: @background;
166}
167
168#battery.charging {
169 color: @altText;
170 background-color: @charging;
171}
172
173#battery.warning:not(.charging) {
174 background-color: @warning;
175 color: @altText;
176}
177
178#battery.critical:not(.charging) {
179 background-color: @critical;
180 color: @altText;
181 animation-name: blink;
182 animation-duration: 0.5s;
183 animation-timing-function: linear;
184 animation-iteration-count: infinite;
185 animation-direction: alternate;
186}
187
188#tray {
189 padding-left: 16px;
190 padding-right: 16px;
191 border-radius: 10px;
192 margin-right: 10px;
193 transition: none;
194 color: @text;
195 background: @background;
196}
197
198@keyframes blink {
199 to {
200 background-color: @text;
201 color: #000000;
202 }
203}