From 399206b297f236ba5ce0083a6424357fa755f8fd Mon Sep 17 00:00:00 2001 From: Cfp Date: Mon, 23 Jun 2025 21:02:36 +0200 Subject: [PATCH] Update .config/waybar/config.jsonc Update .config/waybar/style.css --- private_dot_config/waybar/config.jsonc | 12 +- private_dot_config/waybar/style.css | 350 ++++++++++++------------- 2 files changed, 180 insertions(+), 182 deletions(-) diff --git a/private_dot_config/waybar/config.jsonc b/private_dot_config/waybar/config.jsonc index 51feadc..09c48b6 100644 --- a/private_dot_config/waybar/config.jsonc +++ b/private_dot_config/waybar/config.jsonc @@ -17,19 +17,19 @@ "clock" ], "modules-right": [ - "mpd", - "idle_inhibitor", + // "mpd", + // "idle_inhibitor", "pulseaudio", "network", "power-profiles-daemon", "cpu", "memory", "temperature", - "backlight", - "keyboard-state", + // "backlight", + // "keyboard-state", // "sway/language", - "battery", - "battery#bat2" + "battery" + // "battery#bat2" // "clock", // "tray" // "custom/power" diff --git a/private_dot_config/waybar/style.css b/private_dot_config/waybar/style.css index 7e83028..e46dd71 100644 --- a/private_dot_config/waybar/style.css +++ b/private_dot_config/waybar/style.css @@ -1,13 +1,16 @@ * { + border: none; + border-radius: 0px; /* `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-weight: 800; + min-height: 0; } window#waybar { - background-color: rgba(43, 48, 59, 0.5); - border-bottom: 3px solid rgba(100, 114, 125, 0.5); - color: #ffffff; + background-color: transparent; + color: #cdd6f4; transition-property: background-color; transition-duration: .5s; } @@ -16,56 +19,24 @@ 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; - 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; +#workspaces button { + background: #1e1e2e; + color: #cdd6f4; + border-radius: 7px; + padding-right: 12px; } /* 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 { - background: rgba(0, 0, 0, 0.2); + box-shadow: inherit; + text-shadow: inherit; + background: #262638; + color: #cdd6f4; } -#workspaces button.focused { - background-color: #64727D; - box-shadow: inset 0 -3px #ffffff; +#workspaces button.active { + background: #45475a; } #workspaces button.urgent { @@ -74,7 +45,7 @@ button:hover { #mode { background-color: #64727D; - box-shadow: inset 0 -3px #ffffff; + border-bottom: 3px solid #ffffff; } #clock, @@ -86,45 +57,83 @@ button:hover { #backlight, #network, #pulseaudio, -#wireplumber, #custom-media, +#custom-launcher, +#custom-power, +#custom-layout, +#custom-updater, +#custom-snip, +#custom-wallpaper, +#custom-notify, +#power-profiles-daemon, +#tags, +#taskbar, #tray, #mode, #idle_inhibitor, -#scratchpad, -#power-profiles-daemon, #mpd { 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, #workspaces { - margin: 0 4px; + margin: 0px 4px; } /* If workspaces is the leftmost module, omit left margin */ .modules-left > widget:first-child > #workspaces { - margin-left: 0; + margin-left: 0px; } /* If workspaces is the rightmost module, omit right margin */ .modules-right > widget:last-child > #workspaces { - margin-right: 0; + margin-right: 0px; } #clock { - background-color: #64727D; + background-color: #f2cdcd; + color: #1e1e2e; } #battery { - background-color: #ffffff; - color: #000000; + background-color: #b4befe; + color: #1e1e2e; } #battery.charging, #battery.plugged { - color: #ffffff; - background-color: #26A65B; + color: #1e1e2e; + background-color: #a6e3a1; } @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) { - background-color: #f53c3c; - color: #ffffff; + background-color: #f38ba8; + color: #1e1e2e; animation-name: blink; animation-duration: 0.5s; - animation-timing-function: steps(12); + animation-timing-function: linear; 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; + background-color: #89dceb; + color: #1e1e2e; } #network.disconnected { - background-color: #f53c3c; + background-color: #89b4fa; + color: #f38ba8; } #pulseaudio { - background-color: #f1c40f; - color: #000000; + background-color: #cba6f7; + color: #1e1e2e; } #pulseaudio.muted { - background-color: #90b1b1; - color: #2a5c45; + background-color: #cba6f7; + color: #f38ba8; } -#wireplumber { - background-color: #fff0f5; - color: #000000; -} - -#wireplumber.muted { - background-color: #f53c3c; +#custom-notify { + background-color: #f9e2af; + color: #313244; + font-size: 17px; + padding: 0px 13px 0px 10px; } #custom-media { - background-color: #66cc99; - color: #2a5c45; - min-width: 100px; + background-color: #171717; + color: white; } #custom-media.custom-spotify { - background-color: #66cc99; + background-color: #171717; + color: white; + } #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 { - background-color: #f0932b; + background-color: #171717; + color: #ffffff; } #temperature.critical { @@ -235,93 +275,51 @@ label:focus { } #tray { - background-color: #2980b9; + background-color: #171717; + color: #ffffff; } #tray > .passive { -gtk-icon-effect: dim; + background-color: #171717; + color: #ffffff; } #tray > .needs-attention { -gtk-icon-effect: highlight; - background-color: #eb4d4b; + background-color: #171717; + color: #ffffff; } #idle_inhibitor { - background-color: #2d3436; + background-color: #171717; + border-radius: 20px 0px 0px 20px; + } #idle_inhibitor.activated { - background-color: #ecf0f1; - color: #2d3436; -} + background-color: #171717; + 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 { - background: #00b093; - color: #740864; - padding: 0 5px; - margin: 0 5px; + background-color: #171717; + color: #ffffff; min-width: 16px; } #keyboard-state { background: #97e1ad; color: #000000; - padding: 0 0px; - margin: 0 5px; min-width: 16px; } #keyboard-state > label { - padding: 0 5px; + padding: 0px 5px; } #keyboard-state > label.locked { 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; -}