2023-07-28 13:14:56 +02:00
|
|
|
/* =============================================================================
|
|
|
|
*
|
|
|
|
* Waybar configuration
|
|
|
|
*
|
|
|
|
* Configuration reference: https://github.com/Alexays/Waybar/wiki/Configuration
|
|
|
|
*
|
|
|
|
* =========================================================================== */
|
|
|
|
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
|
|
* Keyframes
|
|
|
|
* -------------------------------------------------------------------------- */
|
|
|
|
|
2024-12-18 22:31:39 +01:00
|
|
|
@define-color highlight #685878 ;
|
|
|
|
@define-color base1 #19191e ;
|
2023-07-28 13:14:56 +02:00
|
|
|
|
|
|
|
@keyframes blink-warning {
|
|
|
|
70% {
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
|
|
|
|
to {
|
|
|
|
color: white;
|
|
|
|
background-color: orange;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes blink-critical {
|
|
|
|
70% {
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
|
|
|
|
to {
|
|
|
|
color: white;
|
|
|
|
background-color: red;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
|
|
* Base styles
|
|
|
|
* -------------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
/* Reset all styles */
|
|
|
|
* {
|
|
|
|
border: none;
|
|
|
|
border-radius: 0;
|
|
|
|
min-height: 0;
|
|
|
|
margin: 1px;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* The whole bar */
|
|
|
|
#waybar {
|
|
|
|
background: transparent;
|
2024-12-18 22:31:39 +01:00
|
|
|
color: #e3e3ea;
|
2023-07-28 13:14:56 +02:00
|
|
|
background-color: @base1;
|
2024-12-18 22:31:39 +01:00
|
|
|
font-family: JetBrainsMono;
|
|
|
|
font-size: 13px;
|
2023-07-28 13:14:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Every modules */
|
|
|
|
#mode,
|
|
|
|
#network,
|
2024-12-18 22:31:39 +01:00
|
|
|
#custom-keyboard-layout,
|
2023-07-28 13:14:56 +02:00
|
|
|
#idle_inhibitor,
|
2024-12-18 22:31:39 +01:00
|
|
|
#cpu,
|
|
|
|
#memory,
|
|
|
|
#backlight,
|
|
|
|
#pulseaudio,
|
|
|
|
#battery,
|
|
|
|
#clock,
|
|
|
|
#tray {
|
2023-07-28 13:14:56 +02:00
|
|
|
padding:0.5rem 0.6rem;
|
|
|
|
margin: 1px 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* -----------------------------------------------------------------------------
|
2024-12-18 22:31:39 +01:00
|
|
|
* Module styles
|
2023-07-28 13:14:56 +02:00
|
|
|
* -------------------------------------------------------------------------- */
|
|
|
|
|
2024-12-18 22:31:39 +01:00
|
|
|
#custom-launcher {
|
|
|
|
margin-left:15px;
|
|
|
|
margin-right:10px;
|
2023-07-28 13:14:56 +02:00
|
|
|
}
|
|
|
|
|
2024-12-18 22:31:39 +01:00
|
|
|
#workspaces {
|
|
|
|
font-size:13px;
|
2023-07-28 13:14:56 +02:00
|
|
|
}
|
|
|
|
|
2024-12-18 22:31:39 +01:00
|
|
|
#workspaces button {
|
|
|
|
border-radius: 5px;
|
|
|
|
color: #eceff4;
|
|
|
|
padding: 1px 6px;
|
|
|
|
margin-right: 2px;
|
|
|
|
margin-left: 2px;
|
2023-07-28 13:14:56 +02:00
|
|
|
}
|
|
|
|
|
2024-12-18 22:31:39 +01:00
|
|
|
#workspaces button.focused {
|
|
|
|
border: 1px solid #d8dee9;
|
2023-07-28 13:14:56 +02:00
|
|
|
}
|
|
|
|
|
2024-12-18 22:31:39 +01:00
|
|
|
#workspaces button.urgent {
|
|
|
|
border-color: #c9545d;
|
|
|
|
color: #c9545d;
|
|
|
|
}
|
|
|
|
|
|
|
|
#mode {
|
|
|
|
background: @highlight;
|
|
|
|
border-bottom: 3px transparent;
|
|
|
|
color:white;
|
|
|
|
margin-left: 5px;
|
|
|
|
padding: 7px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#window {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
#network.disconnected {
|
|
|
|
color: orange;
|
2023-07-28 13:14:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#cpu.warning {
|
|
|
|
color: orange;
|
|
|
|
}
|
|
|
|
|
|
|
|
#cpu.critical {
|
|
|
|
color: red;
|
|
|
|
}
|
|
|
|
|
|
|
|
#memory {
|
|
|
|
animation-timing-function: linear;
|
|
|
|
animation-iteration-count: infinite;
|
|
|
|
animation-direction: alternate;
|
|
|
|
}
|
|
|
|
|
|
|
|
#memory.warning {
|
|
|
|
color: orange;
|
|
|
|
}
|
|
|
|
|
|
|
|
#memory.critical {
|
|
|
|
color: red;
|
|
|
|
animation-name: blink-critical;
|
|
|
|
animation-duration: 2s;
|
|
|
|
padding-left:5px;
|
|
|
|
padding-right:5px;
|
|
|
|
}
|
|
|
|
|
2024-12-18 22:31:39 +01:00
|
|
|
#backlight.icon {
|
2023-07-28 13:14:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#pulseaudio {
|
|
|
|
}
|
|
|
|
|
|
|
|
#pulseaudio.muted {
|
|
|
|
color: @highlight;
|
|
|
|
}
|
|
|
|
|
2024-12-18 22:31:39 +01:00
|
|
|
#battery {
|
|
|
|
animation-timing-function: linear;
|
|
|
|
animation-iteration-count: infinite;
|
|
|
|
animation-direction: alternate;
|
2023-07-28 13:14:56 +02:00
|
|
|
}
|
|
|
|
|
2024-12-18 22:31:39 +01:00
|
|
|
#battery.warning {
|
|
|
|
color: orange;
|
2023-07-28 13:14:56 +02:00
|
|
|
}
|
|
|
|
|
2024-12-18 22:31:39 +01:00
|
|
|
#battery.critical {
|
|
|
|
color: red;
|
2023-07-28 13:14:56 +02:00
|
|
|
}
|
|
|
|
|
2024-12-18 22:31:39 +01:00
|
|
|
#battery.warning.discharging {
|
|
|
|
animation-name: blink-warning;
|
|
|
|
animation-duration: 3s;
|
2023-07-28 13:14:56 +02:00
|
|
|
}
|
|
|
|
|
2024-12-18 22:31:39 +01:00
|
|
|
#battery.critical.discharging {
|
|
|
|
animation-name: blink-critical;
|
|
|
|
animation-duration: 2s;
|
2023-07-28 13:14:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#custom-power {
|
|
|
|
margin-left:15px;
|
|
|
|
margin-right:15px;
|
|
|
|
font-size:15px;
|
|
|
|
}
|