From 1d4f7a3e4c0ae8ee6e926c28aa6126b3d9f08b1b Mon Sep 17 00:00:00 2001 From: Fabio Scotto di Santolo Date: Sat, 6 Jun 2026 20:11:05 +0200 Subject: [PATCH] Tune Hyprland Waybar and focus behavior --- dotfiles/desktop/.config/hypr/hyprland.conf | 4 +- .../desktop/.config/waybar/hyprland-style.css | 121 ++++++++++++++++++ 2 files changed, 123 insertions(+), 2 deletions(-) create mode 100644 dotfiles/desktop/.config/waybar/hyprland-style.css diff --git a/dotfiles/desktop/.config/hypr/hyprland.conf b/dotfiles/desktop/.config/hypr/hyprland.conf index e83ac26..ba94334 100644 --- a/dotfiles/desktop/.config/hypr/hyprland.conf +++ b/dotfiles/desktop/.config/hypr/hyprland.conf @@ -64,7 +64,7 @@ misc { disable_hyprland_logo = true disable_splash_rendering = true force_default_wallpaper = 0 - focus_on_activate = true + focus_on_activate = false } xwayland { @@ -105,7 +105,7 @@ exec-once = wireplumber # Desktop services exec-once = hyprctl setcursor Yaru 24 exec-once = hyprpaper -exec-once = waybar -c ~/.config/waybar/hyprland.jsonc +exec-once = waybar -c ~/.config/waybar/hyprland.jsonc -s ~/.config/waybar/hyprland-style.css exec-once = swayosd-server exec-once = dunst exec-once = /usr/libexec/xfce-polkit diff --git a/dotfiles/desktop/.config/waybar/hyprland-style.css b/dotfiles/desktop/.config/waybar/hyprland-style.css new file mode 100644 index 0000000..eb647ef --- /dev/null +++ b/dotfiles/desktop/.config/waybar/hyprland-style.css @@ -0,0 +1,121 @@ +* { + font-family: "NotoSans NF"; + font-size: 10pt; + font-weight: 600; + min-height: 0; +} + +window#waybar { + background-color: rgba(6, 7, 13, 0.82); + color: #f2f4f8; + border: 1px solid rgba(84, 214, 255, 0.55); + border-radius: 0; +} + +#workspaces { + padding: 0 4px; +} + +#workspaces button { + padding: 0 8px; + margin: 3px 2px; + color: #c7ccd8; + background-color: rgba(17, 19, 27, 0.72); + border: 1px solid rgba(245, 230, 184, 0.18); + border-radius: 7px; +} + +#workspaces button.visible { + color: #f5e6b8; + background-color: rgba(30, 34, 46, 0.92); + border-color: rgba(245, 230, 184, 0.45); +} + +#workspaces button.active, +#workspaces button.focused { + color: #061018; + background: linear-gradient(180deg, #54d6ff, #1478ff); + border-color: #9eeaff; +} + +#workspaces button.urgent { + color: #ffffff; + background-color: #c7162b; + border-color: #ff6b6b; +} + +#clock, +#cpu, +#memory, +#disk, +#temperature, +#backlight, +#network, +#pulseaudio, +#battery, +#tray, +#custom-dnd, +#custom-power { + padding: 0 8px; + margin: 3px 2px; + border-radius: 7px; + background-color: rgba(17, 19, 27, 0.72); + border: 1px solid rgba(245, 230, 184, 0.12); +} + +#clock { + color: #f5e6b8; + border-color: rgba(245, 230, 184, 0.38); +} + +#cpu { color: #b28cff; } +#memory { color: #54d6ff; } +#disk { color: #b9f6ca; } +#temperature { color: #ffd166; } +#backlight { color: #f5e6b8; } +#network { color: #54d6ff; } +#pulseaudio { color: #9eeaff; } +#battery { color: #f2f4f8; } + +#network.disconnected, +#pulseaudio.muted, +#custom-dnd { + color: #8a8f9a; +} + +#battery.charging, +#battery.full { + color: #36ff73; +} + +#battery.warning, +#custom-dnd.paused { + color: #ffd166; + border-color: rgba(255, 209, 102, 0.45); +} + +#battery.critical, +#temperature.critical { + color: #ff6b6b; + border-color: rgba(199, 22, 43, 0.75); +} + +#tray { + padding: 0 6px; +} + +#custom-power { + color: #ff4d5d; + padding: 0 10px; + font-size: 12pt; + border-color: rgba(199, 22, 43, 0.40); +} + +#custom-dnd:hover, +#custom-power:hover, +#clock:hover, +#network:hover, +#pulseaudio:hover { + background-color: rgba(84, 214, 255, 0.16); + border-color: rgba(84, 214, 255, 0.62); +}