diff options
Diffstat (limited to '')
| -rw-r--r-- | dotfiles/waybar/style.css | 172 |
1 files changed, 172 insertions, 0 deletions
diff --git a/dotfiles/waybar/style.css b/dotfiles/waybar/style.css new file mode 100644 index 0000000..2c5d65a --- /dev/null +++ b/dotfiles/waybar/style.css @@ -0,0 +1,172 @@ +* { + /* `otf-font-awesome` is required to be installed for icons */ + font-family: FontAwesome, Roboto, Helvetica, Arial, sans-serif; + font-size: 9px; +} + +@define-color bg-color #2b2b23; +@define-color accent-color #4c5b3f; +@define-color text-color #e4e4e4; +@define-color dark-text-color #2b2b23; +@define-color hover-color #8f8e84; +@define-color warning-color #e8b54a; +@define-color critical-color #c65858; + +window#waybar { + background-color: @bg-color; + color: @text-color; + padding: 0 5px; +} + +/* +window#waybar.empty { + background-color: transparent; +} +window#waybar.solo { + background-color: #FFFFFF; +} +*/ + +button:hover { + transition: background-color 0.2s; +} + +#workspaces button { + background-color: transparent; + color: #ffffff; +} + +#workspaces button:hover { + background: rgba(0, 0, 0, 0.2); +} + +#workspaces button.focused { + background-color: #64727D; + box-shadow: inset 0 -3px #ffffff; +} + +#workspaces button.urgent { + background-color: @warning-color; +} + +#battery, +#temperature, +#network, +#pulseaudio, +#wireplumber, +#tray { + padding: 2px 0; + border-radius: 10px 15px 10px 15px; + transition: background-color 0.2s; +} + +#network:hover, +#pulseaudio:hover, +#wireplumber:hover, +#custom-power:hover { + color: @dark-text-color; + background-color: @hover-color; + transition: background-color 0.2s; +} + +#window, +#workspaces { + margin: 0 4px; +} + +/* If workspaces is the leftmost module, omit left margin */ +.modules-left > widget:first-child > #workspaces { + margin-left: 0; +} + +/* If workspaces is the rightmost module, omit right margin */ +.modules-right > widget:last-child > #workspaces { + margin-right: 0; +} + +#pulseaudio { + background-color: @critical-color; + color: black; +} + +#pulseaudio.muted { + background-color: @background-color; + color: @text-color; + padding: 4px 0; + font-size: 13px; +} +/* Using steps() instead of linear as a timing function to limit cpu usage */ +#battery.critical:not(.charging) { + background-color: @critical-color; + animation-name: blink; + animation-duration: 0.5s; + animation-timing-function: steps(12); + animation-iteration-count: infinite; + animation-direction: alternate; +} + +#network.disabled, +#network.disconnected { + color: black; + padding: 4px 0; + font-size: 18px; +} + +#network.disconnected { + background-color: @warning-color; +} + +#network.disabled { + background-color: @critical-color; +} + +#temperature.critical { + background-color: @critical-color; +} + +#tray { + background-color: @gb-color; +} + +#tray > .passive { + -gtk-icon-effect: dim; +} + +#tray > .needs-attention { + -gtk-icon-effect: highlight; + background-color: @warning-color; +} + +#taskbar button { + padding: 5px 0; + border-radius: 10px 20px 10px 20px; + background-color: @accent-color; +} + +#taskbar button:hover { + background-color: @hover-color; +} + +#custom-power { + padding: 5px 0; + border-color: @text-color; +} + +#custom-power:hover{ + background-color: @critical-color; +} + +menu { + padding: 0; + background-color: @bg-color; + color: @text-color; +} +menuitem { + padding: 5px 0; + margin: 2px 0; +} +menuitem:hover { + border-radius: 4px; + background-color: @hover-color; + color: @dark-text-color; +} |
