From 458ad191bfabc9a3877058ae2b1376fe26ffc18e Mon Sep 17 00:00:00 2001 From: Drew Haven Date: Mon, 31 Mar 2025 13:21:59 -0700 Subject: [PATCH] [nix] Update rebuild alias. [eww] fix vertical-statusbar geometry --- home-manager/features/development/nix.nix | 3 ++- .../features/eww/config/vertical-statusbar.yuck | 11 +++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/home-manager/features/development/nix.nix b/home-manager/features/development/nix.nix index 3d3cc49..0641065 100644 --- a/home-manager/features/development/nix.nix +++ b/home-manager/features/development/nix.nix @@ -9,7 +9,8 @@ ]; home.shellAliases = { - rebuild = "sudo nixos-rebuild switch --flake . --show-trace --print-build-logs --verbose"; + # This assumes that the repository is in ~/system-config + rebuild = "sudo nixos-rebuild switch --flake ~/system-config --show-trace --print-build-logs --verbose"; }; } diff --git a/home-manager/features/eww/config/vertical-statusbar.yuck b/home-manager/features/eww/config/vertical-statusbar.yuck index 5f19532..5dbcb78 100644 --- a/home-manager/features/eww/config/vertical-statusbar.yuck +++ b/home-manager/features/eww/config/vertical-statusbar.yuck @@ -30,12 +30,15 @@ (defwindow vertical-statusbar :monitor '[ "", "LG ULTRAWIDE", "HDMI-A-1" ]' + ;; Note that this geometry is crucial for setting the reserved space + ;; properly. Changing the geometry may cause eww to no longer give the proper + ;; reserved-space hints. :geometry (geometry - :x "0px" - :y "0px" + :x "0%" + :y "0%" :width "60px" - :height "1440px" - :anchor "top left" + :height "100%" + :anchor "center left" ) :stacking "fg" :exclusive true