From 69bfb463fe444493b1e875474cb7d0cca11b4af3 Mon Sep 17 00:00:00 2001 From: Drew Haven Date: Mon, 5 May 2025 13:07:21 -0700 Subject: [PATCH] [hyprland] Run eww only once. --- system/hosts/altair/drew.nix | 5 ++--- system/hosts/vega/drew.nix | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/system/hosts/altair/drew.nix b/system/hosts/altair/drew.nix index 0bcedde..4e1e9d3 100644 --- a/system/hosts/altair/drew.nix +++ b/system/hosts/altair/drew.nix @@ -31,8 +31,7 @@ in }; # Set up eww here because it's based on the monitor configuration - # Eww is idempotent, so it's fine to just run it on every reload to make sure things are open - wayland.windowManager.hyprland.settings.exec = [ - "eww open-many primary-statusbar secondary-statusbar launcher" + wayland.windowManager.hyprland.settings.exec-once = [ + "sleep 2 && eww open-many primary-statusbar secondary-statusbar launcher" ]; } diff --git a/system/hosts/vega/drew.nix b/system/hosts/vega/drew.nix index 6995b96..4df76cd 100644 --- a/system/hosts/vega/drew.nix +++ b/system/hosts/vega/drew.nix @@ -32,7 +32,7 @@ wayland.windowManager.hyprland.settings = { # Set up eww here because it's based on the monitor configuration # Eww is idempotent, so it's fine to just run it on every reload to make sure things are open - exec = [ + exec-once = [ "sleep 2 && eww open-many vertical-statusbar" ]; # Set up workspaces for this system