From 9d2560c06509467b093c436b2b9525a3ff22ff99 Mon Sep 17 00:00:00 2001 From: Julian Mutter Date: Sat, 15 Jun 2024 23:44:10 +0200 Subject: [PATCH] Rescale waybar --- modules/home/hyprland/waybar/config.json | 4 ++-- modules/home/hyprland/waybar/default.nix | 17 ++++++++--------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/modules/home/hyprland/waybar/config.json b/modules/home/hyprland/waybar/config.json index 0bf73cf..4da5fac 100644 --- a/modules/home/hyprland/waybar/config.json +++ b/modules/home/hyprland/waybar/config.json @@ -4,7 +4,7 @@ "mode": "dock", "exclusive": true, "passtrough": true, - "height": 32, + "height": 20, "modules-left": [ "hyprland/workspaces" @@ -59,7 +59,7 @@ }, "tray": { - "icon-size": 16, + "icon-size": 20, "tooltip": false, "spacing": 10 }, diff --git a/modules/home/hyprland/waybar/default.nix b/modules/home/hyprland/waybar/default.nix index c151ff6..28ee88d 100644 --- a/modules/home/hyprland/waybar/default.nix +++ b/modules/home/hyprland/waybar/default.nix @@ -28,8 +28,7 @@ in * { /* `otf-font-awesome` is required to be installed for icons */ font-family: JetBrainsMono Nerd Font; - font-size: 14px; - border-radius: 17px; + font-size: 16px; } #clock, @@ -48,12 +47,12 @@ in #idle_inhibitor, #cpu, #tray { - padding: 5 15px; + padding: 0 15px; border-radius: 12px; background: #${palette.base00}; color: #${palette.base07}; - margin-top: 8px; - margin-bottom: 8px; + margin-top: 0px; + margin-bottom: 0px; margin-right: 2px; margin-left: 2px; transition: all 0.3s ease; @@ -92,15 +91,15 @@ in #workspaces { background-color: transparent; border-radius: 17px; - padding: 5 0px; - margin-top: 3px; - margin-bottom: 3px; + padding: 0 0px; + margin-top: 2px; + margin-bottom: 2px; } #workspaces button { background-color: #${palette.base00}; border-radius: 12px; - margin-left: 10px; + margin-left: 4px; transition: all 0.3s ease; }