💄 style(waybar): changed a lot of css, put hyprland/window between clock and custom/media

This commit is contained in:
João Dias
2024-11-19 17:37:34 -03:00
parent 626a040cc9
commit 83a5ba251e
3 changed files with 51 additions and 41 deletions
+3 -3
View File
@@ -2,15 +2,15 @@
"position": "top", "position": "top",
"layer": "top", "layer": "top",
"spacing": 0, "spacing": 0,
"margin": 6, "margin": 0,
"reload_style_on_change": true, "reload_style_on_change": true,
"modules-left": [ "modules-left": [
"custom/logo", "custom/logo",
"hyprland/workspaces" "hyprland/workspaces"
], ],
"modules-center": [ "modules-center": [
"hyprland/window",
"clock", "clock",
"hyprland/window",
"custom/media" "custom/media"
], ],
"modules-right": [ "modules-right": [
@@ -128,7 +128,7 @@
"clock": { "clock": {
"format": "{:L%A %d, %H:%M}", "format": "{:L%A %d, %H:%M}",
"format-alt": "{:%Y-%m-%d}", "format-alt": "{:%Y-%m-%d}",
"tooltip-format": "<tt>{calendar}</tt>" "tooltip-format": "<big><tt>{calendar}</tt></big>"
}, },
"cpu": { "cpu": {
+7 -11
View File
@@ -11,22 +11,22 @@
/* Workspace Indicator */ /* Workspace Indicator */
#workspaces { #workspaces {
padding: 5px 0; padding-left: 8px;
margin: 0 4px; padding-right: 8px;
} }
#workspaces > button { #workspaces > button {
border: none; all: unset;
box-shadow: none; transition: 80ms linear;
background: @color1; background: @color1;
border-radius: 14px; border-radius: 14px;
padding: 0 4px; padding: 4px 12px;
margin: 0 2px; margin: 0 2px;
} }
#workspaces > button.active { #workspaces > button.active {
background: @foreground; background: @foreground;
padding-right: 24px; padding-right: 30px;
} }
#workspaces > button.urgent { #workspaces > button.urgent {
@@ -62,6 +62,7 @@
window.empty #window { window.empty #window {
padding: 0; padding: 0;
margin: 0; margin: 0;
border: none;
} }
@@ -104,11 +105,6 @@ window.empty #window {
padding: 0 10px; padding: 0 10px;
} }
#bluetooth.connected {
padding-right: 12px;
}
/* Pulse Audio */ /* Pulse Audio */
#pulseaudio { #pulseaudio {
padding-left: 8px; padding-left: 8px;
+41 -27
View File
@@ -5,45 +5,55 @@
* { * {
color: @foreground; color: @foreground;
transition: 120ms ease-in; transition: 120ms ease-in;
font-family: "Noto Sans", "Font Awesome", sans-serif;
font-size: 12px;
} }
window#waybar { window#waybar {
font-family: "Noto Sans", "Font Awesome", sans-serif;
font-size: 12px;
color: @foreground;
background: transparent; background: transparent;
} }
window#waybar > * { window#waybar > box {
padding: 4px; margin: 6px 6px 0px 6px;
}
/* Styling modules-[left/center/right] */
window#waybar > box > * {
padding: 5px;
background: alpha(@background, .78); background: alpha(@background, .78);
margin-bottom: 4px; margin-bottom: 4px;
border-radius: 14px; border-radius: 18px;
} }
.module { /* Style all widgets */
padding: 0 10px; widget .module {
padding: 4px 10px;
font-weight: 500; font-weight: 500;
margin: 0 1px; margin: 0 2px;
}
widget > * {
border-radius: 14px; border-radius: 14px;
} }
widget > *:hover:not(#workspaces):not(#tray):not(#custom-media) { widget .module label {
background: @color1;
}
label {
font-size: .98em; font-size: .98em;
font-weight: 500; font-weight: 500;
} }
widget .module:hover:not(#workspaces):not(#tray):not(#custom-media) {
background: @color1;
}
window#waybar > box > * > widget:first-child .module {
margin-left: 0px;
}
window#waybar > box > * > widget:last-child .module {
margin-right: 0px;
}
menu { menu {
background: @background; background: transparent;
border: none; border: none;
padding: 2px;
} }
menu > separator { menu > separator {
@@ -71,14 +81,18 @@ menu > *:hover {
} }
tooltip { tooltip {
padding: 3px; all: unset;
border-radius: 8px; padding: 10px;
border-color: @color1;
background: @background;
} }
tooltip > * { tooltip > box {
padding: 0; border-radius: 12px;
font-weight: 500; border: 1px solid @color1;
font-size: .95em; background: @background;
box-shadow: 0 0 6px 1px alpha(@background, .5);
}
tooltip > box > label {
font-weight: 600;
font-size: 1em;
} }