diff options
| author | jason | 2024-05-20 22:48:04 -0600 |
|---|---|---|
| committer | jason | 2024-05-21 10:13:13 -0600 |
| commit | f2175ea1b10497dd6fc8a7f1d690682df7a6292e (patch) | |
| tree | 1a9fd27605c41445dcd6bc95f2c39c4be7ffa430 | |
| parent | 20e475728998bd6d0714699c8519e3af2ece5f5a (diff) | |
| download | dotfiles-f2175ea1b10497dd6fc8a7f1d690682df7a6292e.tar.gz dotfiles-f2175ea1b10497dd6fc8a7f1d690682df7a6292e.zip | |
remove color from waybar
| -rw-r--r-- | sway/.config/sway/config | 4 | ||||
| -rw-r--r-- | sway/.config/waybar/config.jsonc | 2 | ||||
| -rw-r--r-- | sway/.config/waybar/style.css | 320 |
3 files changed, 324 insertions, 2 deletions
diff --git a/sway/.config/sway/config b/sway/.config/sway/config index 0fa72fb..47d74f9 100644 --- a/sway/.config/sway/config +++ b/sway/.config/sway/config | |||
| @@ -217,7 +217,9 @@ bindsym $mod+r mode "resize" | |||
| 217 | ############################################################################### | 217 | ############################################################################### |
| 218 | # Status Bar | 218 | # Status Bar |
| 219 | 219 | ||
| 220 | bar swaybar_command waybar | 220 | bar { |
| 221 | swaybar_command waybar | ||
| 222 | } | ||
| 221 | # # Read `man 5 sway-bar` for more information about this section. | 223 | # # Read `man 5 sway-bar` for more information about this section. |
| 222 | # bar { | 224 | # bar { |
| 223 | # position top | 225 | # position top |
diff --git a/sway/.config/waybar/config.jsonc b/sway/.config/waybar/config.jsonc index d1df43d..c21a006 100644 --- a/sway/.config/waybar/config.jsonc +++ b/sway/.config/waybar/config.jsonc | |||
| @@ -23,7 +23,7 @@ | |||
| 23 | // "temperature", | 23 | // "temperature", |
| 24 | "wireplumber", | 24 | "wireplumber", |
| 25 | "backlight", | 25 | "backlight", |
| 26 | "bluetooth", | 26 | // "bluetooth", |
| 27 | // "keyboard-state", | 27 | // "keyboard-state", |
| 28 | // "sway/language", | 28 | // "sway/language", |
| 29 | "battery", | 29 | "battery", |
diff --git a/sway/.config/waybar/style.css b/sway/.config/waybar/style.css new file mode 100644 index 0000000..ec30cc2 --- /dev/null +++ b/sway/.config/waybar/style.css | |||
| @@ -0,0 +1,320 @@ | |||
| 1 | * { | ||
| 2 | /* `otf-font-awesome` is required to be installed for icons */ | ||
| 3 | font-family: "JetBrains Mono"; | ||
| 4 | font-size: 12px; | ||
| 5 | } | ||
| 6 | |||
| 7 | window#waybar { | ||
| 8 | background-color: rgba(43, 48, 59, 0.5); | ||
| 9 | border-bottom: 3px solid rgba(100, 114, 125, 0.5); | ||
| 10 | color: #ffffff; | ||
| 11 | transition-property: background-color; | ||
| 12 | transition-duration: .5s; | ||
| 13 | } | ||
| 14 | |||
| 15 | window#waybar.hidden { | ||
| 16 | opacity: 0.2; | ||
| 17 | } | ||
| 18 | |||
| 19 | /* | ||
| 20 | window#waybar.empty { | ||
| 21 | background-color: transparent; | ||
| 22 | } | ||
| 23 | window#waybar.solo { | ||
| 24 | background-color: #FFFFFF; | ||
| 25 | } | ||
| 26 | */ | ||
| 27 | |||
| 28 | window#waybar.termite { | ||
| 29 | background-color: #3F3F3F; | ||
| 30 | } | ||
| 31 | |||
| 32 | window#waybar.chromium { | ||
| 33 | background-color: #000000; | ||
| 34 | border: none; | ||
| 35 | } | ||
| 36 | |||
| 37 | button { | ||
| 38 | /* Use box-shadow instead of border so the text isn't offset */ | ||
| 39 | box-shadow: inset 0 -3px transparent; | ||
| 40 | /* Avoid rounded borders under each button name */ | ||
| 41 | border: none; | ||
| 42 | border-radius: 0; | ||
| 43 | } | ||
| 44 | |||
| 45 | /* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */ | ||
| 46 | button:hover { | ||
| 47 | background: inherit; | ||
| 48 | box-shadow: inset 0 -3px #ffffff; | ||
| 49 | } | ||
| 50 | |||
| 51 | /* you can set a style on hover for any module like this */ | ||
| 52 | #pulseaudio:hover { | ||
| 53 | background-color: #a37800; | ||
| 54 | } | ||
| 55 | |||
| 56 | #workspaces button { | ||
| 57 | padding: 0 5px; | ||
| 58 | background-color: transparent; | ||
| 59 | color: #ffffff; | ||
| 60 | } | ||
| 61 | |||
| 62 | #workspaces button:hover { | ||
| 63 | background: rgba(0, 0, 0, 0.2); | ||
| 64 | } | ||
| 65 | |||
| 66 | #workspaces button.focused { | ||
| 67 | background-color: #64727D; | ||
| 68 | box-shadow: inset 0 -3px #ffffff; | ||
| 69 | } | ||
| 70 | |||
| 71 | #workspaces button.urgent { | ||
| 72 | background-color: #eb4d4b; | ||
| 73 | } | ||
| 74 | |||
| 75 | #mode { | ||
| 76 | background-color: #64727D; | ||
| 77 | box-shadow: inset 0 -3px #ffffff; | ||
| 78 | } | ||
| 79 | |||
| 80 | #clock, | ||
| 81 | #battery, | ||
| 82 | #cpu, | ||
| 83 | #memory, | ||
| 84 | #disk, | ||
| 85 | #temperature, | ||
| 86 | #backlight, | ||
| 87 | #network, | ||
| 88 | #pulseaudio, | ||
| 89 | #wireplumber, | ||
| 90 | #custom-media, | ||
| 91 | #tray, | ||
| 92 | #mode, | ||
| 93 | #idle_inhibitor, | ||
| 94 | #scratchpad, | ||
| 95 | #power-profiles-daemon, | ||
| 96 | #mpd { | ||
| 97 | padding: 0 10px; | ||
| 98 | color: #ffffff; | ||
| 99 | background-color: transparent; | ||
| 100 | } | ||
| 101 | |||
| 102 | #window, | ||
| 103 | #workspaces { | ||
| 104 | margin: 0 4px; | ||
| 105 | } | ||
| 106 | |||
| 107 | /* If workspaces is the leftmost module, omit left margin */ | ||
| 108 | .modules-left > widget:first-child > #workspaces { | ||
| 109 | margin-left: 0; | ||
| 110 | } | ||
| 111 | |||
| 112 | /* If workspaces is the rightmost module, omit right margin */ | ||
| 113 | .modules-right > widget:last-child > #workspaces { | ||
| 114 | margin-right: 0; | ||
| 115 | } | ||
| 116 | |||
| 117 | /*#battery.charging, #battery.plugged { | ||
| 118 | color: #ffffff; | ||
| 119 | background-color: #26A65B; | ||
| 120 | }*/ | ||
| 121 | |||
| 122 | @keyframes blink { | ||
| 123 | to { | ||
| 124 | background-color: #ffffff; | ||
| 125 | color: #000000; | ||
| 126 | } | ||
| 127 | } | ||
| 128 | |||
| 129 | /* Using steps() instead of linear as a timing function to limit cpu usage */ | ||
| 130 | #battery.critical:not(.charging) { | ||
| 131 | background-color: #f53c3c; | ||
| 132 | color: #ffffff; | ||
| 133 | animation-name: blink; | ||
| 134 | animation-duration: 0.5s; | ||
| 135 | animation-timing-function: steps(12); | ||
| 136 | animation-iteration-count: infinite; | ||
| 137 | animation-direction: alternate; | ||
| 138 | } | ||
| 139 | |||
| 140 | #power-profiles-daemon { | ||
| 141 | padding-right: 15px; | ||
| 142 | } | ||
| 143 | |||
| 144 | /*#power-profiles-daemon.performance { | ||
| 145 | background-color: #f53c3c; | ||
| 146 | color: #ffffff; | ||
| 147 | } | ||
| 148 | |||
| 149 | #power-profiles-daemon.balanced { | ||
| 150 | background-color: #2980b9; | ||
| 151 | color: #ffffff; | ||
| 152 | } | ||
| 153 | |||
| 154 | #power-profiles-daemon.power-saver { | ||
| 155 | background-color: #2ecc71; | ||
| 156 | color: #000000; | ||
| 157 | }*/ | ||
| 158 | |||
| 159 | label:focus { | ||
| 160 | background-color: #000000; | ||
| 161 | } | ||
| 162 | /* | ||
| 163 | #cpu { | ||
| 164 | background-color: #2ecc71; | ||
| 165 | color: #000000; | ||
| 166 | } | ||
| 167 | |||
| 168 | #memory { | ||
| 169 | background-color: #9b59b6; | ||
| 170 | } | ||
| 171 | |||
| 172 | #disk { | ||
| 173 | background-color: #964B00; | ||
| 174 | } | ||
| 175 | |||
| 176 | #backlight { | ||
| 177 | background-color: #90b1b1; | ||
| 178 | } | ||
| 179 | |||
| 180 | #network { | ||
| 181 | background-color: #2980b9; | ||
| 182 | } | ||
| 183 | |||
| 184 | #network.disconnected { | ||
| 185 | background-color: #f53c3c; | ||
| 186 | } | ||
| 187 | |||
| 188 | #pulseaudio { | ||
| 189 | background-color: #f1c40f; | ||
| 190 | color: #000000; | ||
| 191 | } | ||
| 192 | |||
| 193 | #pulseaudio.muted { | ||
| 194 | background-color: #90b1b1; | ||
| 195 | color: #2a5c45; | ||
| 196 | } | ||
| 197 | |||
| 198 | #wireplumber { | ||
| 199 | background-color: #fff0f5; | ||
| 200 | color: #000000; | ||
| 201 | } | ||
| 202 | |||
| 203 | #wireplumber.muted { | ||
| 204 | background-color: #f53c3c; | ||
| 205 | } | ||
| 206 | |||
| 207 | #custom-media { | ||
| 208 | background-color: #66cc99; | ||
| 209 | color: #2a5c45; | ||
| 210 | min-width: 100px; | ||
| 211 | } | ||
| 212 | |||
| 213 | #custom-media.custom-spotify { | ||
| 214 | background-color: #66cc99; | ||
| 215 | } | ||
| 216 | |||
| 217 | #custom-media.custom-vlc { | ||
| 218 | background-color: #ffa000; | ||
| 219 | } | ||
| 220 | |||
| 221 | #temperature { | ||
| 222 | background-color: #f0932b; | ||
| 223 | } | ||
| 224 | |||
| 225 | #temperature.critical { | ||
| 226 | background-color: #eb4d4b; | ||
| 227 | } | ||
| 228 | |||
| 229 | #tray { | ||
| 230 | background-color: #2980b9; | ||
| 231 | } | ||
| 232 | */ | ||
| 233 | #tray > .passive { | ||
| 234 | -gtk-icon-effect: dim; | ||
| 235 | } | ||
| 236 | |||
| 237 | #tray > .needs-attention { | ||
| 238 | -gtk-icon-effect: highlight; | ||
| 239 | background-color: #eb4d4b; | ||
| 240 | } | ||
| 241 | |||
| 242 | /*#idle_inhibitor { | ||
| 243 | background-color: #2d3436; | ||
| 244 | } | ||
| 245 | |||
| 246 | #idle_inhibitor.activated { | ||
| 247 | background-color: #ecf0f1; | ||
| 248 | color: #2d3436; | ||
| 249 | } | ||
| 250 | */ | ||
| 251 | |||
| 252 | #mpd { | ||
| 253 | background-color: #66cc99; | ||
| 254 | color: #2a5c45; | ||
| 255 | } | ||
| 256 | |||
| 257 | #mpd.disconnected { | ||
| 258 | background-color: #f53c3c; | ||
| 259 | } | ||
| 260 | |||
| 261 | #mpd.stopped { | ||
| 262 | background-color: #90b1b1; | ||
| 263 | } | ||
| 264 | |||
| 265 | #mpd.paused { | ||
| 266 | background-color: #51a37a; | ||
| 267 | } | ||
| 268 | |||
| 269 | #language { | ||
| 270 | background: #00b093; | ||
| 271 | color: #740864; | ||
| 272 | padding: 0 5px; | ||
| 273 | margin: 0 5px; | ||
| 274 | min-width: 16px; | ||
| 275 | } | ||
| 276 | |||
| 277 | #keyboard-state { | ||
| 278 | background: #97e1ad; | ||
| 279 | color: #000000; | ||
| 280 | padding: 0 0px; | ||
| 281 | margin: 0 5px; | ||
| 282 | min-width: 16px; | ||
| 283 | } | ||
| 284 | |||
| 285 | #keyboard-state > label { | ||
| 286 | padding: 0 5px; | ||
| 287 | } | ||
| 288 | |||
| 289 | #keyboard-state > label.locked { | ||
| 290 | background: rgba(0, 0, 0, 0.2); | ||
| 291 | } | ||
| 292 | |||
| 293 | #scratchpad { | ||
| 294 | background: rgba(0, 0, 0, 0.2); | ||
| 295 | } | ||
| 296 | |||
| 297 | #scratchpad.empty { | ||
| 298 | background-color: transparent; | ||
| 299 | } | ||
| 300 | |||
| 301 | #privacy { | ||
| 302 | padding: 0; | ||
| 303 | } | ||
| 304 | |||
| 305 | #privacy-item { | ||
| 306 | padding: 0 5px; | ||
| 307 | color: white; | ||
| 308 | } | ||
| 309 | |||
| 310 | #privacy-item.screenshare { | ||
| 311 | background-color: #cf5700; | ||
| 312 | } | ||
| 313 | |||
| 314 | #privacy-item.audio-in { | ||
| 315 | background-color: #1ca000; | ||
| 316 | } | ||
| 317 | |||
| 318 | #privacy-item.audio-out { | ||
| 319 | background-color: #0069d4; | ||
| 320 | } | ||