From 95d271aec788d0c8ab202e1d36af8f0f474cfea1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20S=C3=A1nchez?= Date: Thu, 19 Dec 2024 23:13:38 +0000 Subject: [PATCH] fix: call borders correctly on change --- home-manager/sierpe.nix | 6 +++++- home-manager/solio.nix | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/home-manager/sierpe.nix b/home-manager/sierpe.nix index 113286a..54e6573 100644 --- a/home-manager/sierpe.nix +++ b/home-manager/sierpe.nix @@ -97,7 +97,11 @@ xdg.configFile."borders/bordersrc" = { source = ./darwin/bordersrc; executable = true; - onChange = "/bin/bash ${config.xdg.configFile."borders/bordersrc".target}"; + onChange = '' + # Add borders to PATH + PATH=$PATH:${pkgs.jankyborders}/bin + . ${config.xdg.configFile."borders/bordersrc".target} + ''; }; xdg.configFile."sketchybar" = { source = ./darwin/sketchybar; diff --git a/home-manager/solio.nix b/home-manager/solio.nix index 54f2b76..3fa8d6a 100644 --- a/home-manager/solio.nix +++ b/home-manager/solio.nix @@ -87,7 +87,11 @@ xdg.configFile."borders/bordersrc" = { source = ./darwin/bordersrc; executable = true; - onChange = "/bin/bash ${config.xdg.configFile."borders/bordersrc".target}"; + onChange = '' + # Add borders to PATH + PATH=$PATH:${pkgs.jankyborders}/bin + . ${config.xdg.configFile."borders/bordersrc".target} + ''; }; xdg.configFile."sketchybar" = { source = ./darwin/sketchybar;