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
This commit is contained in:
Evie Litherland-Smith 2024-02-20 19:42:19 +00:00
parent d97303e7d1
commit 49c0614421
2 changed files with 10 additions and 1 deletions

View file

@ -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

View file

@ -1,8 +1,10 @@
{
config,
pkgs,
accentColour,
...
}: {
home.packages = [pkgs.swaynotificationcenter];
xdg.configFile."swaync/style.css".text = with config.lib.stylix.colors; ''
* {
all: unset;