Add signals to reload the st terminal in darkman scripts

This commit is contained in:
ant 2024-12-31 14:09:30 +01:00
parent 6df372caad
commit 36a0e6b834
2 changed files with 10 additions and 0 deletions

6
ui.nix
View file

@ -254,6 +254,9 @@ in
ln -s ${alacrittyLightTheme} ~/.config/alacritty/colors.toml
'';
notify = "${pkgs.libnotify}/bin/notify-send \"Light mode\"";
set-st-colors = ''
kill -SIGUSR1 $(pgrep st) # reload st config
'';
};
darkModeScripts = {
@ -279,6 +282,9 @@ in
ln -s ${alacrittyDarkTheme} ~/.config/alacritty/colors.toml
'';
notify = "${pkgs.libnotify}/bin/notify-send \"Dark mode\"";
set-st-colors = ''
kill -SIGUSR1 $(pgrep st) # reload st config
'';
};
};