| 1 | @import url('../../.cache/wal/colors-waybar.css'); |
| 2 | |
| 3 | * { |
| 4 | font-family: "Fira Code", "FontAwesome"; |
| 5 | font-weight: bold; |
| 6 | min-height: 0; |
| 7 | /* set font-size to 100% if font scaling is set to 1.00 using nwg-look */ |
| 8 | font-size: 96%; |
| 9 | font-feature-settings: '"zero", "ss01", "ss02", "ss03", "ss04", "ss05", "cv31"'; |
| 10 | /* padding: 0.03125rem; */ |
| 11 | } |
| 12 | |
| 13 | window#waybar { |
| 14 | transition-property: background-color; |
| 15 | transition-duration: 0.5s; |
| 16 | /* background: transparent; */ |
| 17 | background: @background; |
| 18 | /*border: 2px solid @overlay0;*/ |
| 19 | /*background: @theme_base_color;*/ |
| 20 | /* border-radius: 10px; */ |
| 21 | } |
| 22 | |
| 23 | window#waybar.hidden { |
| 24 | opacity: 0.2; |
| 25 | } |
| 26 | |
| 27 | #waybar.empty #window { |
| 28 | background: none; |
| 29 | } |
| 30 | |
| 31 | |
| 32 | /**************/ |
| 33 | /* Workspaces */ |
| 34 | /**************/ |
| 35 | |
| 36 | #workspaces { |
| 37 | /* border-radius: 8px; */ |
| 38 | /* padding: 0 3px 0 8px; */ |
| 39 | /* margin: 5px 5px 5px 0; */ |
| 40 | transition: all 0.2s ease; |
| 41 | } |
| 42 | |
| 43 | /* non-empty workspaces */ |
| 44 | #workspaces button { |
| 45 | background-color: @background; |
| 46 | |
| 47 | border: none; |
| 48 | border-radius: 0; |
| 49 | |
| 50 | color: @foreground; |
| 51 | transition: all 0.2s ease; |
| 52 | text-shadow: none; |
| 53 | |
| 54 | /* center the icon, no clue why this is necessary */ |
| 55 | padding-left: 5px; |
| 56 | padding-right: 10px; |
| 57 | /* padding-top: 1px; */ |
| 58 | |
| 59 | box-shadow: inset 0 -1px @cursor; |
| 60 | } |
| 61 | |
| 62 | /* the first and last buttons should be rounded */ |
| 63 | #workspaces button:first-child { |
| 64 | /* border-top-left-radius: 8px; */ |
| 65 | /* border-bottom-left-radius: 8px; */ |
| 66 | } |
| 67 | #workspaces button:last-child { |
| 68 | /* border-top-right-radius: 8px; */ |
| 69 | /* border-bottom-right-radius: 8px; */ |
| 70 | } |
| 71 | |
| 72 | /* empty persistent workspaces */ |
| 73 | #workspaces button.empty { |
| 74 | background-color: @background; |
| 75 | box-shadow: none; |
| 76 | } |
| 77 | |
| 78 | #workspaces button:hover { |
| 79 | /* transition-duration: .3s; */ |
| 80 | color: @background; |
| 81 | background-color: @color7; |
| 82 | box-shadow: inset 0 -1px @foreground; |
| 83 | /* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */ |
| 84 | text-shadow: inherit; |
| 85 | } |
| 86 | |
| 87 | /* non-empty persistent workspaces */ |
| 88 | #workspaces button.persistent { |
| 89 | background-color: @color1; |
| 90 | } |
| 91 | |
| 92 | |
| 93 | |
| 94 | /* active or visible workspaces */ |
| 95 | #workspaces button.active, |
| 96 | #workspaces button.visible { |
| 97 | /* background-color: #4c566a; */ |
| 98 | color: @color0; |
| 99 | background-color: @color7; |
| 100 | /* box-shadow: inset 0 -4px #eceff4; */ |
| 101 | } |
| 102 | |
| 103 | #workspaces button.urgent { |
| 104 | color: @color3; |
| 105 | } |
| 106 | |
| 107 | /**************/ |
| 108 | |
| 109 | #mode { |
| 110 | background-color: @color2; |
| 111 | border-bottom: 3px solid @foreground; |
| 112 | } |
| 113 | |
| 114 | #clock, |
| 115 | #custom-date, |
| 116 | #custom-gpumode, |
| 117 | #battery, |
| 118 | #backlight, |
| 119 | #cpu, |
| 120 | #memory, |
| 121 | #disk, |
| 122 | #temperature, |
| 123 | #network, |
| 124 | #pulseaudio, |
| 125 | #wireplumber, |
| 126 | #mpris, |
| 127 | #custom-media, |
| 128 | #tray, |
| 129 | #window, |
| 130 | #custom-notification, |
| 131 | #mpd { |
| 132 | background-color: @background; |
| 133 | padding: 0 12px 0 12px; |
| 134 | margin-left: 10px; |
| 135 | |
| 136 | } |
| 137 | |
| 138 | /* If workspaces is the leftmost module, omit left margin */ |
| 139 | .modules-left>widget:first-child>#workspaces { |
| 140 | margin-left: 0; |
| 141 | } |
| 142 | |
| 143 | /* If workspaces is the rightmost module, omit right margin */ |
| 144 | .modules-right>widget:last-child>#workspaces { |
| 145 | margin-right: 0; |
| 146 | } |
| 147 | |
| 148 | #window { |
| 149 | color: @foreground |
| 150 | } |
| 151 | |
| 152 | #clock { |
| 153 | color: @foreground; |
| 154 | box-shadow: inset 0 -1px @cursor; |
| 155 | } |
| 156 | |
| 157 | #custom-date { |
| 158 | color: @foreground; |
| 159 | box-shadow: inset 0 -1px @cursor; |
| 160 | } |
| 161 | |
| 162 | #custom-gpumode{ |
| 163 | color: @foreground; |
| 164 | box-shadow: inset 0 -1px @cursor; |
| 165 | } |
| 166 | |
| 167 | |
| 168 | #battery { |
| 169 | color: @foreground; |
| 170 | box-shadow: inset 0 -1px @cursor; |
| 171 | } |
| 172 | |
| 173 | #backlight { |
| 174 | color: @foreground; |
| 175 | box-shadow: inset 0 -1px @cursor; |
| 176 | } |
| 177 | |
| 178 | @keyframes blink { |
| 179 | to { |
| 180 | background-color: #ffffff; |
| 181 | color: black; |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | #battery.critical:not(.charging) { |
| 186 | background-color: @color5; |
| 187 | color: @foreground; |
| 188 | animation-name: blink; |
| 189 | animation-duration: 0.5s; |
| 190 | animation-timing-function: linear; |
| 191 | animation-iteration-count: infinite; |
| 192 | animation-direction: alternate; |
| 193 | } |
| 194 | |
| 195 | label:focus { |
| 196 | background-color: black; |
| 197 | } |
| 198 | |
| 199 | #cpu { |
| 200 | color: @foreground; |
| 201 | box-shadow: inset 0 -1px @cursor; |
| 202 | } |
| 203 | |
| 204 | #memory { |
| 205 | color: @foreground; |
| 206 | box-shadow: inset 0 -1px @cursor; |
| 207 | } |
| 208 | |
| 209 | /* #disk { |
| 210 | background-color: #964B00; |
| 211 | } */ |
| 212 | |
| 213 | #network { |
| 214 | color: @color13; |
| 215 | } |
| 216 | |
| 217 | #network.disconnected { |
| 218 | color: @color13; |
| 219 | } |
| 220 | |
| 221 | #network.linked { |
| 222 | color: @color10; |
| 223 | } |
| 224 | |
| 225 | #pulseaudio { |
| 226 | color: @foreground; |
| 227 | box-shadow: inset 0 -1px @cursor; |
| 228 | } |
| 229 | |
| 230 | |
| 231 | #temperature { |
| 232 | color: @foreground; |
| 233 | } |
| 234 | |
| 235 | #temperature.critical { |
| 236 | color: @color2; |
| 237 | } |
| 238 | |
| 239 | #tray { |
| 240 | color: @color15; |
| 241 | box-shadow: inset 0 -1px @subtext0; |
| 242 | |
| 243 | } |
| 244 | |
| 245 | #tray>.passive { |
| 246 | -gtk-icon-effect: dim; |
| 247 | } |
| 248 | |
| 249 | #tray>.needs-attention { |
| 250 | -gtk-icon-effect: highlight; |
| 251 | background-color: #bf616a; |
| 252 | } |