diff --git a/ui.nix b/ui.nix index 6d6c45b..e0a49f1 100644 --- a/ui.nix +++ b/ui.nix @@ -1,6 +1,6 @@ { lib, config, pkgs, variant, ... }: let - defaultTerminal = "alacritty"; + defaultTerminal = "st"; alacrittyLightTheme = "${pkgs.alacritty-theme}/night_owlish_light.toml"; alacrittyDarkTheme = "${pkgs.alacritty-theme}/monokai_charcoal.toml"; in @@ -231,6 +231,12 @@ in reload-hyprland = '' hyprctl reload ''; + reload-st = '' + kill -SIGUSR1 $(pgrep st) # reload st config + ''; + reload-neovim = '' + kill -SIGUSR1 $(pgrep nvim) + ''; in { lightModeScripts = { gtk-theme = '' @@ -255,9 +261,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 - ''; + inherit reload-hyprland; + inherit reload-st; + inherit reload-neovim; }; darkModeScripts = { @@ -283,9 +289,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 - ''; + inherit reload-hyprland; + inherit reload-st; + inherit reload-neovim; }; };