From 49c06144212b683d592876bd94a52bc884f25b8b Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Tue, 20 Feb 2024 19:42:19 +0000 Subject: [PATCH] Add reload rule to Makefile reload: calls hyprctl reload, swaync CSS reload, and restarts hyprpaper and waybar systemd units. Should pick up all changes made when updating config doing this Add make reload call to both make test and make switch Add swaynotificationcenter to installed packages to make the above work --- Makefile | 9 ++++++++- home/swaync/default.nix | 2 ++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index da37be66..241ca8a7 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,17 @@ -.PHONY: build test switch +.PHONY: build test switch reload build: nixos-rebuild build --flake . test: sudo nixos-rebuild test --flake . + make reload switch: sudo nixos-rebuild switch --flake . + make reload + +reload: + -hyprctl reload + -systemctl --user restart hyprpaper.service waybar.service + -swaync-client -rs diff --git a/home/swaync/default.nix b/home/swaync/default.nix index dcf473fd..6c8a7860 100644 --- a/home/swaync/default.nix +++ b/home/swaync/default.nix @@ -1,8 +1,10 @@ { config, + pkgs, accentColour, ... }: { + home.packages = [pkgs.swaynotificationcenter]; xdg.configFile."swaync/style.css".text = with config.lib.stylix.colors; '' * { all: unset;