dotfiles/home/dot_config/waybar/style.css

285 lines
4.9 KiB
CSS
Raw Normal View History

2025-04-24 13:54:01 +01:00
@define-color base03 #002b36;
@define-color base02 #073642;
@define-color base01 #586e75;
@define-color base00 #657b83;
@define-color base0 #839496;
@define-color base1 #93a1a1;
@define-color base2 #eee8d5;
@define-color base3 #fdf6e3;
@define-color yellow #b58900;
@define-color orange #cb4b16;
@define-color red #dc322f;
@define-color magenta #d33682;
@define-color violet #6c71c4;
@define-color blue #268bd2;
@define-color cyan #2aa198;
@define-color green #859900;
2025-04-23 11:49:57 +01:00
* {
/* `otf-font-awesome` is required to be installed for icons */
font-family: JetBrainsMono, FontAwesome, Roboto, Helvetica, Arial, sans-serif;
font-size: 13px;
border-radius: 0;
2025-04-24 15:05:51 +01:00
color: @base2;
2025-04-23 11:49:57 +01:00
}
window#waybar {
2025-04-24 13:54:01 +01:00
background-color: rgba(0, 43, 54, 0.3);
border-bottom: 3px solid rgba(101, 123, 131, 0.5);
2025-04-23 11:49:57 +01:00
color: #ffffff;
transition-property: background-color;
transition-duration: .5s;
border-radius: 15;
}
#window {
border-radius: 15;
padding-right: 15px;
}
window#waybar.hidden {
opacity: 0.2;
}
window#waybar.termite {
background-color: #3F3F3F;
}
window#waybar.chromium {
background-color: #000000;
border: none;
}
button {
/* Use box-shadow instead of border so the text isn't offset */
box-shadow: inset 0 -3px transparent;
/* Avoid rounded borders under each button name */
border: none;
border-radius: 0;
}
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
button:hover {
background: inherit;
box-shadow: inset 0 -3px #ffffff;
}
#workspaces button {
padding: 0 5px;
background-color: transparent;
color: #ffffff;
}
#workspaces button:hover {
background: rgba(0, 0, 0, 0.2);
}
#workspaces button.focused {
2025-04-24 13:54:01 +01:00
background-color: @base02;
2025-04-23 11:49:57 +01:00
box-shadow: inset 0 -3px #ffffff;
}
#workspaces button.urgent {
2025-04-24 13:54:01 +01:00
background-color: @orange;
2025-04-23 11:49:57 +01:00
}
#mode {
2025-04-24 13:54:01 +01:00
background-color: @violet;
box-shadow: inset 0 -3px @base03;
2025-04-23 11:49:57 +01:00
}
#battery,
#cpu,
#memory,
#disk,
#temperature,
#backlight,
#network,
#pulseaudio,
#wireplumber,
#custom-media,
#tray,
#mode,
#idle_inhibitor,
#scratchpad,
2025-04-23 22:44:41 +01:00
#custom-power,
2025-04-24 13:54:01 +01:00
#language
{
2025-04-23 11:49:57 +01:00
padding: 0 10px;
2025-04-24 13:54:01 +01:00
background-color: @base03;
color: @base1;
2025-04-23 11:49:57 +01:00
}
#window,
#workspaces {
margin: 0 4px;
}
2025-04-24 15:05:51 +01:00
2025-04-23 11:49:57 +01:00
.modules-right *, .modules-left * {
border-radius: 5px;
}
/* If workspaces is the leftmost module, omit left margin */
.modules-left > widget:first-child > #workspaces {
margin-left: 0;
}
2025-04-24 15:05:51 +01:00
2025-04-23 11:49:57 +01:00
/* If workspaces is the rightmost module, omit right margin */
.modules-right > widget:last-child > #workspaces {
margin-right: 0;
}
.modules-right, .modules-left {
border-radius: 15px;
2025-04-23 22:44:41 +01:00
padding-left: 12px;
padding-right: 12px;
padding-top: 7px;
padding-bottom: 7px;
2025-04-23 11:49:57 +01:00
}
#clock {
2025-04-24 15:05:51 +01:00
padding: 0 10px;
color: @base2;
2025-04-23 11:49:57 +01:00
}
2025-04-24 13:54:01 +01:00
#backlight {
border-bottom: 3px solid @violet;
2025-04-23 11:49:57 +01:00
}
#battery.charging, #battery.plugged {
2025-04-24 13:54:01 +01:00
border-bottom: 3px solid @green;
}
#battery {
border-bottom: 3px solid @blue;
2025-04-23 11:49:57 +01:00
}
@keyframes blink {
to {
2025-04-24 13:54:01 +01:00
border-bottom: 3px solid @red;
2025-04-23 11:49:57 +01:00
}
}
/* Using steps() instead of linear as a timing function to limit cpu usage */
#battery.critical:not(.charging) {
2025-04-24 13:54:01 +01:00
border-bottom: 3px solid @base03;
2025-04-23 11:49:57 +01:00
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: steps(12);
animation-iteration-count: infinite;
animation-direction: alternate;
}
label:focus {
background-color: #000000;
}
#cpu {
2025-04-24 13:54:01 +01:00
border-bottom: 3px solid @cyan;
2025-04-23 11:49:57 +01:00
}
#memory {
2025-04-24 13:54:01 +01:00
border-bottom: 3px solid @magenta;
2025-04-23 11:49:57 +01:00
}
#disk {
2025-04-24 13:54:01 +01:00
border-bottom: 3px solid @orange;
2025-04-23 11:49:57 +01:00
}
#network {
2025-04-24 13:54:01 +01:00
border-bottom: 3px solid @blue;
2025-04-23 11:49:57 +01:00
}
#network.disconnected {
2025-04-24 13:54:01 +01:00
border-bottom: 3px solid @orange;
2025-04-23 11:49:57 +01:00
}
#pulseaudio {
2025-04-24 13:54:01 +01:00
border-bottom: 3px solid @yellow;
2025-04-23 11:49:57 +01:00
}
#pulseaudio.muted {
2025-04-24 13:54:01 +01:00
border-bottom: 3px solid @orange;
2025-04-23 11:49:57 +01:00
}
#custom-media {
2025-04-24 13:54:01 +01:00
border-bottom: 3px solid @cyan;
2025-04-23 11:49:57 +01:00
}
2025-04-24 13:54:01 +01:00
#custom-media.custom-firefox {
border-bottom: 3px solid @orange;
2025-04-23 11:49:57 +01:00
}
2025-04-23 22:44:41 +01:00
#custom-power {
2025-04-24 13:54:01 +01:00
border-bottom: 3px solid @base01;
2025-04-23 22:44:41 +01:00
}
2025-04-23 11:49:57 +01:00
#temperature {
2025-04-24 13:54:01 +01:00
border-bottom: 3px solid @yellow;
2025-04-23 11:49:57 +01:00
}
#temperature.critical {
2025-04-24 13:54:01 +01:00
border-bottom: 3px solid @orange;
2025-04-23 11:49:57 +01:00
}
#tray {
2025-04-24 13:54:01 +01:00
border-bottom: 3px solid @green;
2025-04-23 11:49:57 +01:00
}
#tray > .passive {
-gtk-icon-effect: dim;
}
#tray > .needs-attention {
-gtk-icon-effect: highlight;
background-color: #eb4d4b;
}
#idle_inhibitor {
2025-04-24 13:54:01 +01:00
border-bottom: 3px solid @base01;
2025-04-23 11:49:57 +01:00
}
#idle_inhibitor.activated {
2025-04-24 13:54:01 +01:00
border-bottom: 3px solid @base3;
2025-04-23 11:49:57 +01:00
}
#language {
2025-04-24 13:54:01 +01:00
border-bottom: 3px solid @cyan;
2025-04-23 11:49:57 +01:00
padding: 0 5px;
margin: 0 5px;
min-width: 16px;
}
#scratchpad {
background: rgba(0, 0, 0, 0.2);
}
#scratchpad.empty {
2025-04-24 15:05:51 +01:00
background-color: transparent;
2025-04-23 11:49:57 +01:00
}
#privacy {
padding: 0;
}
#privacy-item {
padding: 0 5px;
color: white;
}
#privacy-item.screenshare {
2025-04-24 15:05:51 +01:00
border-bottom: 3px solid @orange;
2025-04-23 11:49:57 +01:00
}
#privacy-item.audio-in {
2025-04-24 15:05:51 +01:00
border-bottom: 3px solid @green;
2025-04-23 11:49:57 +01:00
}
#privacy-item.audio-out {
background-color: #0069d4;
2025-04-24 15:05:51 +01:00
border-bottom: 3px solid @cyan;
2025-04-23 11:49:57 +01:00
}