Update .config/waybar/config.jsonc

Update .config/waybar/style.css
This commit is contained in:
Cfp
2025-06-23 21:02:36 +02:00
parent 80da54159e
commit 399206b297
2 changed files with 180 additions and 182 deletions

View File

@ -17,19 +17,19 @@
"clock" "clock"
], ],
"modules-right": [ "modules-right": [
"mpd", // "mpd",
"idle_inhibitor", // "idle_inhibitor",
"pulseaudio", "pulseaudio",
"network", "network",
"power-profiles-daemon", "power-profiles-daemon",
"cpu", "cpu",
"memory", "memory",
"temperature", "temperature",
"backlight", // "backlight",
"keyboard-state", // "keyboard-state",
// "sway/language", // "sway/language",
"battery", "battery"
"battery#bat2" // "battery#bat2"
// "clock", // "clock",
// "tray" // "tray"
// "custom/power" // "custom/power"

View File

@ -1,13 +1,16 @@
* { * {
border: none;
border-radius: 0px;
/* `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: "UbuntuMono Nerd Font";
font-size: 13px; font-size: 13px;
font-weight: 800;
min-height: 0;
} }
window#waybar { window#waybar {
background-color: rgba(43, 48, 59, 0.5); background-color: transparent;
border-bottom: 3px solid rgba(100, 114, 125, 0.5); color: #cdd6f4;
color: #ffffff;
transition-property: background-color; transition-property: background-color;
transition-duration: .5s; transition-duration: .5s;
} }
@ -16,56 +19,24 @@ window#waybar.hidden {
opacity: 0.2; opacity: 0.2;
} }
/*
window#waybar.empty {
background-color: transparent;
}
window#waybar.solo {
background-color: #FFFFFF;
}
*/
window#waybar.termite { #workspaces button {
background-color: #3F3F3F; background: #1e1e2e;
} color: #cdd6f4;
border-radius: 7px;
window#waybar.chromium { padding-right: 12px;
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 */ /* 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;
}
/* you can set a style on hover for any module like this */
#pulseaudio:hover {
background-color: #a37800;
}
#workspaces button {
padding: 0 5px;
background-color: transparent;
color: #ffffff;
}
#workspaces button:hover { #workspaces button:hover {
background: rgba(0, 0, 0, 0.2); box-shadow: inherit;
text-shadow: inherit;
background: #262638;
color: #cdd6f4;
} }
#workspaces button.focused { #workspaces button.active {
background-color: #64727D; background: #45475a;
box-shadow: inset 0 -3px #ffffff;
} }
#workspaces button.urgent { #workspaces button.urgent {
@ -74,7 +45,7 @@ button:hover {
#mode { #mode {
background-color: #64727D; background-color: #64727D;
box-shadow: inset 0 -3px #ffffff; border-bottom: 3px solid #ffffff;
} }
#clock, #clock,
@ -86,45 +57,83 @@ button:hover {
#backlight, #backlight,
#network, #network,
#pulseaudio, #pulseaudio,
#wireplumber,
#custom-media, #custom-media,
#custom-launcher,
#custom-power,
#custom-layout,
#custom-updater,
#custom-snip,
#custom-wallpaper,
#custom-notify,
#power-profiles-daemon,
#tags,
#taskbar,
#tray, #tray,
#mode, #mode,
#idle_inhibitor, #idle_inhibitor,
#scratchpad,
#power-profiles-daemon,
#mpd { #mpd {
padding: 0 10px; padding: 0 10px;
color: #ffffff; color: #cdd6f4;
border-radius: 7px;
}
#power-profiles-daemon {
padding-right: 15px;
}
#power-profiles-daemon.performance {
background-color: #f38ba8;
color: #ffffff;
}
#power-profiles-daemon.balanced {
background-color: #89b4fa;
color: #ffffff;
}
#power-profiles-daemon.power-saver {
background-color: #a6e3a1;
color: #000000;
}
#cpu {
background-color: #a6e3a1;
color: #000000;
}
#memory {
background-color: #cba6f7;
color: #000000;
} }
#window, #window,
#workspaces { #workspaces {
margin: 0 4px; margin: 0px 4px;
} }
/* If workspaces is the leftmost module, omit left margin */ /* If workspaces is the leftmost module, omit left margin */
.modules-left > widget:first-child > #workspaces { .modules-left > widget:first-child > #workspaces {
margin-left: 0; margin-left: 0px;
} }
/* If workspaces is the rightmost module, omit right margin */ /* If workspaces is the rightmost module, omit right margin */
.modules-right > widget:last-child > #workspaces { .modules-right > widget:last-child > #workspaces {
margin-right: 0; margin-right: 0px;
} }
#clock { #clock {
background-color: #64727D; background-color: #f2cdcd;
color: #1e1e2e;
} }
#battery { #battery {
background-color: #ffffff; background-color: #b4befe;
color: #000000; color: #1e1e2e;
} }
#battery.charging, #battery.plugged { #battery.charging, #battery.plugged {
color: #ffffff; color: #1e1e2e;
background-color: #26A65B; background-color: #a6e3a1;
} }
@keyframes blink { @keyframes blink {
@ -134,100 +143,131 @@ button:hover {
} }
} }
/* Using steps() instead of linear as a timing function to limit cpu usage */
#battery.critical:not(.charging) { #battery.critical:not(.charging) {
background-color: #f53c3c; background-color: #f38ba8;
color: #ffffff; color: #1e1e2e;
animation-name: blink; animation-name: blink;
animation-duration: 0.5s; animation-duration: 0.5s;
animation-timing-function: steps(12); animation-timing-function: linear;
animation-iteration-count: infinite; animation-iteration-count: infinite;
animation-direction: alternate; 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 { label:focus {
background-color: #000000; background-color: #000000;
} }
#cpu {
background-color: #2ecc71;
color: #000000;
}
#memory {
background-color: #9b59b6;
}
#disk {
background-color: #964B00;
}
#backlight {
background-color: #90b1b1;
}
#network { #network {
background-color: #2980b9; background-color: #89dceb;
color: #1e1e2e;
} }
#network.disconnected { #network.disconnected {
background-color: #f53c3c; background-color: #89b4fa;
color: #f38ba8;
} }
#pulseaudio { #pulseaudio {
background-color: #f1c40f; background-color: #cba6f7;
color: #000000; color: #1e1e2e;
} }
#pulseaudio.muted { #pulseaudio.muted {
background-color: #90b1b1; background-color: #cba6f7;
color: #2a5c45; color: #f38ba8;
} }
#wireplumber { #custom-notify {
background-color: #fff0f5; background-color: #f9e2af;
color: #000000; color: #313244;
} font-size: 17px;
padding: 0px 13px 0px 10px;
#wireplumber.muted {
background-color: #f53c3c;
} }
#custom-media { #custom-media {
background-color: #66cc99; background-color: #171717;
color: #2a5c45; color: white;
min-width: 100px;
} }
#custom-media.custom-spotify { #custom-media.custom-spotify {
background-color: #66cc99; background-color: #171717;
color: white;
} }
#custom-media.custom-vlc { #custom-media.custom-vlc {
background-color: #ffa000; background-color: #171717;
color: white;
}
#custom-power{
background-color: #94e2d5;
color: #313244;
font-size: 18px;
margin-right: 10px;
padding: 0px 15px 0px 10px;
}
#custom-launcher{
background-color: #171717;
font-size: 20px;
margin-left: 5px;
}
#custom-layout{
background-color: #171717;
color: white;
font-size:20px;
}
#custom-updater {
background-color: #171717;
color: white;
}
#custom-snip {
background-color: #171717;
color: skyblue;
font-size: 20px;
}
#custom-wallpaper {
background-color: #171717;
color: pink;
font-size: 20px;
}
#tags{
background-color: #171717;
font-size: 20px;
}
#tags button.occupied {
color: skyblue;
margin: 5px;
background-color: #272727;
}
#tags button.focused {
color: black;
margin: 5px;
background-color: white;
}
#tags button.urgent{
color: red;
margin: 5px;
background-color:white;
}
#taskbar{
background-color: #171717;
border-radius: 0px 20px 20px 0px;
} }
#temperature { #temperature {
background-color: #f0932b; background-color: #171717;
color: #ffffff;
} }
#temperature.critical { #temperature.critical {
@ -235,93 +275,51 @@ label:focus {
} }
#tray { #tray {
background-color: #2980b9; background-color: #171717;
color: #ffffff;
} }
#tray > .passive { #tray > .passive {
-gtk-icon-effect: dim; -gtk-icon-effect: dim;
background-color: #171717;
color: #ffffff;
} }
#tray > .needs-attention { #tray > .needs-attention {
-gtk-icon-effect: highlight; -gtk-icon-effect: highlight;
background-color: #eb4d4b; background-color: #171717;
color: #ffffff;
} }
#idle_inhibitor { #idle_inhibitor {
background-color: #2d3436; background-color: #171717;
border-radius: 20px 0px 0px 20px;
} }
#idle_inhibitor.activated { #idle_inhibitor.activated {
background-color: #ecf0f1; background-color: #171717;
color: #2d3436; color: #ffffff;
} border-radius: 20px 0px 0px 20px;
#mpd {
background-color: #66cc99;
color: #2a5c45;
}
#mpd.disconnected {
background-color: #f53c3c;
}
#mpd.stopped {
background-color: #90b1b1;
}
#mpd.paused {
background-color: #51a37a;
} }
#language { #language {
background: #00b093; background-color: #171717;
color: #740864; color: #ffffff;
padding: 0 5px;
margin: 0 5px;
min-width: 16px; min-width: 16px;
} }
#keyboard-state { #keyboard-state {
background: #97e1ad; background: #97e1ad;
color: #000000; color: #000000;
padding: 0 0px;
margin: 0 5px;
min-width: 16px; min-width: 16px;
} }
#keyboard-state > label { #keyboard-state > label {
padding: 0 5px; padding: 0px 5px;
} }
#keyboard-state > label.locked { #keyboard-state > label.locked {
background: rgba(0, 0, 0, 0.2); background: rgba(0, 0, 0, 0.2);
} }
#scratchpad {
background: rgba(0, 0, 0, 0.2);
}
#scratchpad.empty {
background-color: transparent;
}
#privacy {
padding: 0;
}
#privacy-item {
padding: 0 5px;
color: white;
}
#privacy-item.screenshare {
background-color: #cf5700;
}
#privacy-item.audio-in {
background-color: #1ca000;
}
#privacy-item.audio-out {
background-color: #0069d4;
}