From 176a8844f96266befc26e533a9aa04ccc4040f99 Mon Sep 17 00:00:00 2001 From: EinEtwas Date: Tue, 15 Oct 2024 14:33:50 +0200 Subject: [PATCH] feat: display current title in waybar; other visual adjustments --- home/waybar/default.nix | 2 +- home/waybar/waybar.css | 20 ++++++++++++++------ 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/home/waybar/default.nix b/home/waybar/default.nix index 564d5c2..5fae882 100644 --- a/home/waybar/default.nix +++ b/home/waybar/default.nix @@ -16,7 +16,7 @@ ]; modules-left = ["hyprland/workspaces" "hyprland/mode"]; - modules-center = []; + modules-center = [ "hyprland/window" ]; modules-right = ["pulseaudio" "backlight" "network" "battery" "clock" "tray"]; diff --git a/home/waybar/waybar.css b/home/waybar/waybar.css index fb904ea..5ddb8d3 100644 --- a/home/waybar/waybar.css +++ b/home/waybar/waybar.css @@ -43,7 +43,8 @@ border-radius: 0; min-height: 0; margin: 0; - padding: 0; + padding-left: 3px; + padding-right: 3px; } /* The whole bar */ @@ -51,7 +52,7 @@ background: #323232; color: white; font-family: Cantarell, Noto Sans, sans-serif; - font-size: 13px; + font-size: 12px; } /* Each module */ @@ -166,17 +167,24 @@ } #tray { - /* No styles */ + padding-left: 0px; +} + +#tray * { + border-top: 3px solid transparent; + padding-left: 1px; + padding-right: 1px; } #window { - font-weight: bold; + font-family: Cantarell, Noto Sans, sans-serif; + font-size: 12px; } #workspaces button { - border-top: 2px solid transparent; + border-top: 3px solid transparent; /* To compensate for the top border and still have vertical centering */ - padding-bottom: 2px; + padding-bottom: 3px; padding-left: 3px; padding-right: 3px; color: #888888;