215 lines
3.8 KiB
CSS
215 lines
3.8 KiB
CSS
|
/* =============================================================================
|
||
|
*
|
||
|
* Waybar configuration
|
||
|
*
|
||
|
* Configuration reference: https://github.com/Alexays/Waybar/wiki/Configuration
|
||
|
*
|
||
|
* =========================================================================== */
|
||
|
|
||
|
/* import css definitions for current theme */
|
||
|
@import "theme.css";
|
||
|
|
||
|
/* -----------------------------------------------------------------------------
|
||
|
* Keyframes
|
||
|
* -------------------------------------------------------------------------- */
|
||
|
|
||
|
@keyframes blink-warning {
|
||
|
70% {
|
||
|
color: @wm_icon_bg;
|
||
|
}
|
||
|
|
||
|
to {
|
||
|
color: @wm_icon_bg;
|
||
|
background-color: @warning_color;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@keyframes blink-critical {
|
||
|
70% {
|
||
|
color: @wm_icon_bg;
|
||
|
}
|
||
|
|
||
|
to {
|
||
|
color: @wm_icon_bg;
|
||
|
background-color: @error_color;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* -----------------------------------------------------------------------------
|
||
|
* Base styles
|
||
|
* -------------------------------------------------------------------------- */
|
||
|
|
||
|
/* Reset all styles */
|
||
|
* {
|
||
|
border: none;
|
||
|
border-radius: 0;
|
||
|
min-height: 0;
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
font-family: "Terminess Nerd Font Mono", "Terminess Nerd Font", sans-serif;
|
||
|
/*font-family: "Comic Code", "Comic Code", sans-serif;*/
|
||
|
}
|
||
|
|
||
|
/* The whole bar */
|
||
|
#waybar {
|
||
|
background: @background_color;
|
||
|
color: @text_color;
|
||
|
font-size: 14px;
|
||
|
}
|
||
|
|
||
|
/* Each module */
|
||
|
#custom-pacman,
|
||
|
#custom-menu,
|
||
|
#custom-help,
|
||
|
#custom-scratchpad,
|
||
|
#custom-github,
|
||
|
#custom-clipboard,
|
||
|
#bluetooth,
|
||
|
#battery,
|
||
|
#clock,
|
||
|
#cpu,
|
||
|
#memory,
|
||
|
#mode,
|
||
|
#network,
|
||
|
#pulseaudio,
|
||
|
#temperature,
|
||
|
#idle_inhibitor,
|
||
|
#backlight,
|
||
|
#language,
|
||
|
#custom-sunset,
|
||
|
#custom-playerctl,
|
||
|
#tray {
|
||
|
padding-left: 10px;
|
||
|
padding-right: 10px;
|
||
|
}
|
||
|
|
||
|
/* -----------------------------------------------------------------------------
|
||
|
* Module styles
|
||
|
* -------------------------------------------------------------------------- */
|
||
|
|
||
|
#custom-scratchpad {
|
||
|
background-color: @background_color;
|
||
|
}
|
||
|
|
||
|
#battery {
|
||
|
animation-timing-function: linear;
|
||
|
animation-iteration-count: infinite;
|
||
|
animation-direction: alternate;
|
||
|
}
|
||
|
|
||
|
#battery.warning {
|
||
|
color: @warning_color;
|
||
|
}
|
||
|
|
||
|
#battery.critical {
|
||
|
color: @error_color;
|
||
|
}
|
||
|
|
||
|
#battery.warning.discharging {
|
||
|
animation-name: blink-warning;
|
||
|
animation-duration: 3s;
|
||
|
}
|
||
|
|
||
|
#battery.critical.discharging {
|
||
|
animation-name: blink-critical;
|
||
|
animation-duration: 2s;
|
||
|
}
|
||
|
|
||
|
#clock {
|
||
|
font-weight: bold;
|
||
|
background-color: @accent_color;
|
||
|
}
|
||
|
|
||
|
#custom-clock {
|
||
|
/*color: @bright_text_color;*/
|
||
|
color: @black_color;
|
||
|
font-weight: bold;
|
||
|
background-color: @accent_color;
|
||
|
}
|
||
|
|
||
|
#cpu.warning {
|
||
|
color: @warning_color;
|
||
|
}
|
||
|
|
||
|
#cpu.critical {
|
||
|
color: @error_color;
|
||
|
}
|
||
|
|
||
|
#custom-menu {
|
||
|
color: @bright_text_color;
|
||
|
background-color: @accent_color;
|
||
|
padding-left: 10px;
|
||
|
padding-right: 14px;
|
||
|
}
|
||
|
|
||
|
#memory {
|
||
|
animation-timing-function: linear;
|
||
|
animation-iteration-count: infinite;
|
||
|
animation-direction: alternate;
|
||
|
}
|
||
|
|
||
|
#memory.warning {
|
||
|
color: @warning_color;
|
||
|
}
|
||
|
|
||
|
#memory.critical {
|
||
|
color: @error_color;
|
||
|
animation-name: blink-critical;
|
||
|
animation-duration: 2s;
|
||
|
}
|
||
|
|
||
|
#mode {
|
||
|
background: @background_color;
|
||
|
}
|
||
|
|
||
|
#network.disconnected {
|
||
|
color: @warning_color;
|
||
|
}
|
||
|
|
||
|
#pulseaudio.muted {
|
||
|
color: @warning_color;
|
||
|
}
|
||
|
|
||
|
#temperature.critical {
|
||
|
color: @error_color;
|
||
|
}
|
||
|
|
||
|
#window {
|
||
|
font-weight: bold;
|
||
|
margin-right: 25px;
|
||
|
color: @theme_selected_bg_color;
|
||
|
}
|
||
|
|
||
|
#workspaces button {
|
||
|
border-top: 2px solid transparent;
|
||
|
/* To compensate for the top border and still have vertical centering */
|
||
|
padding-bottom: 2px;
|
||
|
padding-left: 10px;
|
||
|
padding-right: 10px;
|
||
|
color: @text_color;
|
||
|
}
|
||
|
|
||
|
#workspaces button.focused {
|
||
|
border-color: @bright_text_color;
|
||
|
color: @bright_text_color;
|
||
|
background-color: @accent_color;
|
||
|
}
|
||
|
|
||
|
#workspaces button.urgent {
|
||
|
border-color: @error_color;
|
||
|
color: @error_color;
|
||
|
}
|
||
|
|
||
|
#custom-pacman {
|
||
|
color: @warning_color;
|
||
|
}
|
||
|
|
||
|
#bluetooth.disabled {
|
||
|
color: @warning_color;
|
||
|
}
|
||
|
|
||
|
#custom-wf-recorder {
|
||
|
color: @error_color;
|
||
|
padding-right: 10px;
|
||
|
}
|