From e81a66f6e6deb689fba177a79a9ee1d11c22cf48 Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Fri, 22 Aug 2025 16:28:38 -0400 Subject: [PATCH] Prettier wayvar --- configs/niri/config.kdl | 9 ----- configs/niri/waybar/bottom-bar.css | 64 ++++++++++++++++-------------- 2 files changed, 35 insertions(+), 38 deletions(-) diff --git a/configs/niri/config.kdl b/configs/niri/config.kdl index 60ff369..903f33b 100644 --- a/configs/niri/config.kdl +++ b/configs/niri/config.kdl @@ -30,15 +30,6 @@ window-rule { open-focused true } -// Nix Setup -workspace "nix-setup" { - open-on-output "eDP-1" -} - -workspace "homelab" { - open-on-output "eDP-1" -} - // ========================= // Outputs // ========================= diff --git a/configs/niri/waybar/bottom-bar.css b/configs/niri/waybar/bottom-bar.css index 29ccc37..5a1622e 100644 --- a/configs/niri/waybar/bottom-bar.css +++ b/configs/niri/waybar/bottom-bar.css @@ -1,10 +1,10 @@ * { - font-family: "Fira Code"; + font-family: "Fira Code", "SF Pro Display", sans-serif; font-size: 14px; } window#waybar { - background-color: rgba(0, 0, 0, 0); + background-color: transparent; color: #ffffff; } @@ -12,14 +12,14 @@ window#waybar.hidden { opacity: 0.2; } +/* === Reset button styles === */ button { box-shadow: none; border: none; border-radius: 0; - transition-property: none; + transition: background-color 0.15s ease, border-color 0.15s ease; } -/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */ button:hover { background: none; box-shadow: none; @@ -29,56 +29,62 @@ button:hover { -gtk-icon-shadow: none; } +/* === Workspaces as a tray === */ +#workspaces { + margin: 0 10px; + padding: 0 4px; + background: transparent; + border-bottom: 2px solid rgba(255, 255, 255, 0.15); + /* tray shelf line */ +} + #workspaces button { - background-color: transparent; + background: transparent; color: #ffffff; + margin: 0 6px; + padding: 6px 10px; + border-radius: 0; + border-bottom: 2px solid transparent; } #workspaces button:hover { - background: rgba(0, 0, 0, 0.2); + border-bottom: 2px solid rgba(255, 255, 255, 0.5); } #workspaces button.focused { - background-color: #64727D; - box-shadow: inset 0 -3px #ffffff; + border-bottom: 2px solid rgba(255, 255, 255, 0.9); } #workspaces button.urgent { - background-color: #eb4d4b; + border-bottom: 2px solid #eb4d4b; + /* urgent = red underline */ } -#workspaces { - margin: 0 4px; -} - -.modules-left>widget:first-child>#workspaces { - margin-left: 0; -} - -.modules-right>widget:last-child>#workspaces { - margin-right: 0; -} - - +/* === Taskbar as a tray === */ #taskbar { - background-color: rgba(30, 30, 46, 0.6); - border-radius: 20px; - padding: 5px; + background: transparent; + margin: 0 10px; + padding: 0 4px; + border-bottom: 2px solid rgba(255, 255, 255, 0.15); + /* tray shelf line */ } #taskbar button { color: #f0f0ff; - border-radius: 5px; + margin: 0 6px; + padding: 6px 10px; + border-radius: 0; + border-bottom: 2px solid transparent; } #taskbar button:hover { - background-color: rgba(49, 50, 68, 0.6); + border-bottom: 2px solid rgba(255, 255, 255, 0.5); } #taskbar button.active { - background-color: rgba(88, 91, 112, 0.6); + border-bottom: 2px solid rgba(255, 255, 255, 0.9); } #taskbar button.active:hover { - background-color: rgba(108, 112, 134, 0.6); + border-bottom: 2px solid rgba(255, 255, 255, 1.0); } \ No newline at end of file