updated waybar styles

This commit is contained in:
2025-03-24 18:52:12 +01:00
parent 6f0f39d5fa
commit 3dadb3342b
2 changed files with 36 additions and 117 deletions

View File

@@ -8,13 +8,11 @@
"passthrough": false, "passthrough": false,
"height": 30, "height": 30,
"modules-left": [ "modules-left": [
"custom/os_button",
"hyprland/workspaces" "hyprland/workspaces"
], ],
"modules-center": [], "modules-center": [],
"modules-right": [ "modules-right": [
"cpu", "cpu",
"temperature",
"memory", "memory",
"disk", "disk",
"tray", "tray",
@@ -34,11 +32,6 @@
"on-scroll-up": "hyprctl dispatch workspace r+1", "on-scroll-up": "hyprctl dispatch workspace r+1",
"on-scroll-down": "hyprctl dispatch workspace r-1" "on-scroll-down": "hyprctl dispatch workspace r-1"
}, },
"custom/os_button": {
"format": "",
"on-click": "wofi --show drun",
"tooltip": false
},
"cpu": { "cpu": {
"interval": 5, "interval": 5,
"format": " {usage}%", "format": " {usage}%",

View File

@@ -1,137 +1,70 @@
* { * {
all: unset;
/*base background color*/
--bg_main: rgba(25, 25, 25, 0.65);
--bg_main_tooltip: rgba(0, 0, 0, 0.7);
--warning_color: rgba(243, 94, 17, 0.5);
/*base background color of selections */
--bg_hover: rgba(200, 200, 200, 0.3);
/*base background color of active elements */
--bg_active: rgba(100, 100, 100, 0.5);
/*base border color*/
--border_main: rgba(255, 255, 255, 0.2);
/*text color for entries, views and content in general */
--content_main: white;
/*text color for entries that are unselected */
--content_inactive: rgba(255, 255, 255, 0.25);
text-shadow: none; text-shadow: none;
box-shadow: none; box-shadow: none;
border: none; border: none;
border-radius: 0; border-radius: 0;
font-family: "Inconsolata Go Nerd Font", sans-serif; font-family: "Inconsolata Go Nerd Font";
font-weight: 600; font-size: 14px;
font-size: 13px;
} }
window#waybar { window#waybar {
background: var(--bg_main); background: @bg_main;
border-top: 1px solid var(--border_main); border-top: 1px solid @border_main;
color: var(--content_main); color: @content_main;
} }
tooltip { tooltip {
background: var(--bg_main_tooltip); background: @bg_main_tooltip;
border-radius: 5px; border-radius: 5px;
border-width: 1px; border-width: 1px;
border-style: solid; border-style: solid;
border-color: var(--border_main); border-color: @border_main;
} }
tooltip label{
tooltip label { color: @content_main;
color: var(--content_main);
}
#custom-os_button {
font-family: "Inconsolata Go Nerd Font", sans-serif;
font-size: 24px;
padding-left: 12px;
padding-right: 20px;
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}
#custom-os_button:hover {
background: var(--bg_hover);
color: var(--content_main);
} }
#workspaces { #workspaces {
color: transparent; color: transparent;
margin-right: 2px; margin-right: 1.5px;
margin-left: 2px; margin-left: 1.5px;
} }
#workspaces button { #workspaces button {
padding: 3px; padding: 3px;
color: var(--content_inactive); color: @content_inactive;
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1); transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
} }
#workspaces button.active { #workspaces button.active {
color: var(--content_main); color: @content_main;
border-bottom: 3px solid white; border-bottom: 3px solid white;
} }
#workspaces button.focused { #workspaces button.focused {
color: var(--bg_active); color: @bg_active;
} }
#workspaces button.urgent { #workspaces button.urgent {
background: rgba(255, 200, 0, 0.35); background: rgba(255, 200, 0, 0.35);
border-bottom: 3px dashed var(--warning_color); border-bottom: 3px dashed @warning_color;
color: var(--warning_color); color: @warning_color;
} }
#workspaces button:hover { #workspaces button:hover {
background: var(--bg_hover); background: @bg_hover;
color: var(--content_main); color: @content_main;
}
#taskbar {
}
#taskbar button {
min-width: 130px;
border-bottom: 3px solid rgba(255, 255, 255, 0.3);
margin-left: 2px;
margin-right: 2px;
padding-left: 8px;
padding-right: 8px;
color: white;
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}
#taskbar button.active {
border-bottom: 3px solid white;
background: var(--bg_active);
}
#taskbar button:hover {
border-bottom: 3px solid white;
background: var(--bg_hover);
color: var(--content_main);
} }
#cpu, #disk, #memory { #cpu, #disk, #memory {
padding: 3px; padding: 5px;
} }
#temperature { #temperature {
color: transparent; color: transparent;
font-size: 0; font-size: 0px;
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1); transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
} }
#temperature.critical { #temperature.critical {
padding-right: 3px; padding-right: 3px;
color: var(--warning_color); color: @warning_color;
font-size: initial; font-size: initial;
border-bottom: 3px dashed var(--warning_color); border-bottom: 3px dashed @warning_color;
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1); transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
} }
@@ -141,45 +74,39 @@ tooltip label {
margin-right: 20px; margin-right: 20px;
} }
#tray { #tray{
margin-left: 5px; padding-left: 5px;
margin-right: 5px; padding-right: 5px;
} }
#tray > .passive { #tray > .passive {
border-bottom: none; border-bottom: none;
} }
#tray > .active { #tray > .active {
border-bottom: 3px solid white;
}
}
#tray > .needs-attention { #tray > .needs-attention {
border-bottom: 3px solid var(--warning_color); border-bottom: 3px solid @warning_color;
} }
#tray > widget { #tray > widget {
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1); transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
} }
#tray > widget:hover { #tray > widget:hover {
background: var(--bg_hover); background: @bg_hover;
} }
#pulseaudio { #pulseaudio {
font-family: "Inconsolata Go Nerd Font", sans-serif; font-family: "Inconsolata Go Nerd Font";
padding-left: 3px; padding-left: 5px;
padding-right: 3px; padding-right: 1rem;
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1); transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
} }
#pulseaudio:hover { #pulseaudio:hover {
background: var(--bg_hover); background: @bg_hover;
} }
#network { #network {
padding-left: 3px; padding-left: 5px;
padding-right: 3px; padding-right: 5px;
} }
#language { #language {
@@ -192,7 +119,6 @@ tooltip label {
padding-left: 5px; padding-left: 5px;
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1); transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
} }
#clock:hover { #clock:hover {
background: var(--bg_hover); background: @bg_hover;
} }