Add signals to reload the st terminal in darkman scripts
This commit is contained in:
parent
6df372caad
commit
36a0e6b834
2 changed files with 10 additions and 0 deletions
|
|
@ -15,6 +15,8 @@ if test $LIGHT = 1;
|
|||
ln -rs ~/.config/kitty/light.conf ~/.config/kitty/colors.conf
|
||||
kill -SIGUSR1 $(pgrep kitty) # reload kitty config
|
||||
|
||||
kill -SIGUSR1 $(pgrep st) # reload st config
|
||||
|
||||
rm -f ~/.local/share/bg/*
|
||||
ln -rs ~/.local/share/bg-light.* ~/.local/share/bg/
|
||||
${pkgs.hyprland}/bin/hyprctl reload
|
||||
|
|
@ -30,6 +32,8 @@ else
|
|||
ln -rs ~/.config/kitty/dark.conf ~/.config/kitty/colors.conf
|
||||
kill -SIGUSR1 $(pgrep kitty) # reload kitty config
|
||||
|
||||
kill -SIGUSR1 $(pgrep st) # reload st config
|
||||
|
||||
rm -f ~/.local/share/bg/*
|
||||
ln -rs ~/.local/share/bg-dark.* ~/.local/share/bg/
|
||||
${pkgs.hyprland}/bin/hyprctl reload
|
||||
|
|
|
|||
6
ui.nix
6
ui.nix
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue