Update .config/waybar/config.jsonc

Update .config/waybar/modules.jsonc
Update .config/waybar/style.css
This commit is contained in:
Yarne Coppens 2026-02-05 17:49:54 +01:00
parent 788f7e0ea7
commit 4bf33fc5bb
3 changed files with 49 additions and 246 deletions

View file

@ -1,24 +1,12 @@
// -*- mode: jsonc -*- // -*- mode: jsonc -*-
[ [
{ {
// "layer": "top", // Waybar at top layer "layer": "top", // Waybar at top layer
// "position": "bottom", // Waybar position (top|bottom|left|right) // "position": "bottom", // Waybar position (top|bottom|left|right)
//"height": 30, // Waybar height (to be removed for auto height) //"height": 30, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width // "width": 1280, // Waybar width
"spacing": 4, // Gaps between modules (4px) "spacing": 4, // Gaps between modules (4px)
// Choose the order of the modules // Choose the order of the modules
"modules-right": [
"sway/scratchpad",
"sway/workspaces",
"tray",
"custom/power"
],
"modules-center": [
"mpris",
"cava"
],
"modules-left": [ "modules-left": [
"clock", "clock",
"pulseaudio", "pulseaudio",
@ -28,18 +16,20 @@
"disk", "disk",
"privacy" "privacy"
], ],
"modules-center": [
"group/music"
],
"modules-right": [
"sway/scratchpad",
"sway/workspaces",
"tray",
"custom/power"
],
"group/music":{
"modules":["mpris", "cava"]
},
"include": [ "include": [
"~/.config/waybar/modules.jsonc" "~/.config/waybar/modules.jsonc"
] ]
} }
// {
// "name":"overlay",
// "layer":"bottom",
// "position":"top",
// "passtrough":true,
// "margin-top":-30,
// "width":300,
// "exclusive":false,
// "modules-center":["cava"]
// }
] ]

View file

@ -175,10 +175,10 @@
}, },
"pulseaudio": { "pulseaudio": {
// "scroll-step": 1, // %, can be a float // "scroll-step": 1, // %, can be a float
"format": "{volume}% {icon}", "format": "{volume:02d}% {icon}",
"format-bluetooth": "{volume}% {icon}", "format-bluetooth": "{volume:02d}% {icon}",
"format-bluetooth-muted": " {icon}", "format-bluetooth-muted": " {icon}",
"format-muted": " {format_source}", "format-muted": " {format_source}",
"format-source": "{volume}% ", "format-source": "{volume}% ",
"format-source-muted": "", "format-source-muted": "",
"format-icons": { "format-icons": {
@ -230,7 +230,7 @@
"framerate": 144, "framerate": 144,
"autosens": 1, "autosens": 1,
"sensitivity": 2, "sensitivity": 2,
"bars": 24, "bars": 32,
"lower_cutoff_freq": 50, "lower_cutoff_freq": 50,
"higher_cutoff_freq": 10000, "higher_cutoff_freq": 10000,
"hide_on_silence": false, "hide_on_silence": false,

View file

@ -2,44 +2,23 @@
/* `otf-font-awesome` is required to be installed for icons */ /* `otf-font-awesome` is required to be installed for icons */
/* font-family: FontAwesome, Roboto, Helvetica, Arial, sans-serif; */ /* font-family: FontAwesome, Roboto, Helvetica, Arial, sans-serif; */
font-family: JetBrainsMono Nerd Font, FontAwesome; font-family: JetBrainsMono Nerd Font, FontAwesome;
font-size: 13px; font-size: 15px;
} }
window#waybar { window#waybar {
background-color: rgba(43, 48, 59, 0.5); background-color: rgba(59, 43, 43, 0.3);
border-bottom: 3px solid rgba(100, 114, 125, 0.5); border-bottom: 3px solid rgba(100, 114, 125, 0.5);
color: #ffffff; color: #ffffff;
transition-property: background-color; transition-property: background-color;
transition-duration: .5s; transition-duration: .5s;
} }
window#waybar.overlay { label:focus {
background-color: rgba(0, 0, 0, 0);
color: #ffffff;
}
window#waybar.hidden {
opacity: 0.2;
}
/*
window#waybar.empty {
background-color: transparent;
}
window#waybar.solo {
background-color: #FFFFFF;
}
*/
window#waybar.termite {
background-color: #3F3F3F;
}
window#waybar.chromium {
background-color: #000000; background-color: #000000;
border: none;
} }
/* WORKSPACES */
button { button {
/* Use box-shadow instead of border so the text isn't offset */ /* Use box-shadow instead of border so the text isn't offset */
box-shadow: inset 0 -3px transparent; box-shadow: inset 0 -3px transparent;
@ -54,11 +33,6 @@ button:hover {
box-shadow: inset 0 -3px #ffffff; box-shadow: inset 0 -3px #ffffff;
} }
/* you can set a style on hover for any module like this */
#pulseaudio:hover {
background-color: #a37800;
}
#workspaces button { #workspaces button {
padding: 0 5px; padding: 0 5px;
background-color: transparent; background-color: transparent;
@ -78,17 +52,15 @@ button:hover {
background-color: #eb4d4b; background-color: #eb4d4b;
} }
#mode {
background-color: #64727D; /* MODULES */
box-shadow: inset 0 -3px #ffffff;
}
.modules-left, .modules-left,
.modules-center, .modules-center,
.modules-right .modules-right
{ {
background: rgba(0, 0, 8, .7); background: rgba(0, 0, 8, .7);
margin: 5px 10px; margin: 0px 10px;
padding: 0 5px; padding: 0 5px;
border-radius: 15px; border-radius: 15px;
} }
@ -100,160 +72,48 @@ button:hover {
} }
#clock, #clock,
#battery, #pulseaudio,
#bluetooth,
#cpu, #cpu,
#memory, #memory,
#disk, #disk,
#temperature, #privacy,
#backlight, #cava,
#network, #mpris,
#pulseaudio,
#wireplumber,
#custom-media,
#tray,
#mode,
#idle_inhibitor,
#scratchpad, #scratchpad,
#power-profiles-daemon, #workspaces,
#mpd { #tray,
padding: 0 10px; #power
{
color: #ffffff; color: #ffffff;
} }
#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;
}
#clock { #clock {
background-color: #64727D; border-top-left-radius: 15px;
} border-bottom-left-radius: 15px;
background-color: rgba(0, 255, 225, 0.5);
#battery {
background-color: #ffffff;
color: #000000;
}
#battery.charging, #battery.plugged {
color: #ffffff;
background-color: #26A65B;
}
@keyframes blink {
to {
background-color: #ffffff;
color: #000000;
}
}
/* Using steps() instead of linear as a timing function to limit cpu usage */
#battery.critical:not(.charging) {
background-color: #f53c3c;
color: #ffffff;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: steps(12);
animation-iteration-count: infinite;
animation-direction: alternate;
}
#power-profiles-daemon {
padding-right: 15px;
}
#power-profiles-daemon.performance {
background-color: #f53c3c;
color: #ffffff;
}
#power-profiles-daemon.balanced {
background-color: #2980b9;
color: #ffffff;
}
#power-profiles-daemon.power-saver {
background-color: #2ecc71;
color: #000000;
}
label:focus {
background-color: #000000;
}
#cpu {
background-color: #2ecc71;
color: #000000;
}
#memory {
background-color: #9b59b6;
}
#disk {
background-color: #964B00;
}
#backlight {
background-color: #90b1b1;
}
#network {
background-color: #2980b9;
}
#network.disconnected {
background-color: #f53c3c;
} }
#pulseaudio { #pulseaudio {
background-color: #f1c40f; background-color: rgba(0, 255, 76, 0.5);
color: #000000;
} }
#pulseaudio.muted { #pulseaudio.muted {
background-color: #90b1b1; background-color: rgba(255, 0, 55, 0.5);
color: #2a5c45;
} }
#wireplumber { #pulseaudio:not(.muted):hover {
background-color: #fff0f5; background-color: rgba(0, 255, 76, 0.75);
color: #000000;
} }
#wireplumber.muted { #cpu {
background-color: #f53c3c;
} }
#custom-media { #memory {
background-color: #66cc99;
color: #2a5c45;
min-width: 100px;
} }
#custom-media.custom-spotify { #disk {
background-color: #66cc99;
}
#custom-media.custom-vlc {
background-color: #ffa000;
}
#temperature {
background-color: #f0932b;
}
#temperature.critical {
background-color: #eb4d4b;
} }
#tray { #tray {
@ -269,68 +129,19 @@ label:focus {
background-color: #eb4d4b; background-color: #eb4d4b;
} }
#idle_inhibitor { #music{
background-color: #2d3436; margin-top: 10px;
}
#idle_inhibitor.activated {
background-color: #ecf0f1;
color: #2d3436;
} }
#cava { #cava {
font-size: 24px; font-size: 24px;
color: rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.15);
z-index: -1;
}
#mpd {
background-color: #66cc99;
color: #2a5c45;
} }
#mpris { #mpris {
min-width: 300px;
}
#mpd.disconnected {
background-color: #f53c3c;
}
#mpd.stopped {
background-color: #90b1b1;
}
#mpd.paused {
background-color: #51a37a;
}
#language {
background: #00b093;
color: #740864;
padding: 0 5px;
margin: 0 5px;
min-width: 16px;
}
#keyboard-state {
background: #97e1ad;
color: #000000;
padding: 0 0px;
margin: 0 5px;
min-width: 16px;
}
#keyboard-state > label {
padding: 0 5px;
}
#keyboard-state > label.locked {
background: rgba(0, 0, 0, 0.2);
} }
#scratchpad { #scratchpad {
background: rgba(0, 0, 0, 0.2);
} }
#scratchpad.empty { #scratchpad.empty {
@ -344,6 +155,8 @@ label:focus {
#privacy-item { #privacy-item {
padding: 0 5px; padding: 0 5px;
color: white; color: white;
border-top-right-radius: 15px;
border-bottom-right-radius: 15px;
} }
#privacy-item.screenshare { #privacy-item.screenshare {