all repos — nixfiles @ b7be1fa6d865b963af6d212df87e09df33b228d5

System and user configuration, managed by nix and home-manager

replace theme.sh with custom Terminal profile switcher

Alin
commit

b7be1fa6d865b963af6d212df87e09df33b228d5

parent

fb01cdc53b6aaa83fb7df5c1fcb5fd1a93d63305

1 file changed, 3 insertions(+), 16 deletions(-)

changed files
M user/settings/theme.nix → user/settings/theme.nix
@@ -54,10 +54,6 @@ };
}; }; - home.packages = with pkgs; [ - theme-sh - ]; - programs.nixvim.extraConfigVim = '' set notermguicolors '';
@@ -88,22 +84,13 @@
home.sessionVariables = { CLICOLOR = "1"; LSCOLORS = "gxfxcxdxDxegedabagacad"; # for macOS's ls - THEME_LIGHT = "atelier-dune-light"; - THEME_DARK = "atelier-dune"; + TERMINAL_THEME_DARK = "Flexoki Dark"; + TERMINAL_THEME_LIGHT = "Flexoki Light"; }; programs.fish = { - shellAliases.theme = "theme.sh"; - - loginShellInit = '' - if test -e $XDG_CONFIG_HOME/.theme_history - theme.sh (theme.sh -l | tail -n1) - else - theme.sh $THEME_LIGHT - end - ''; interactiveShellInit = '' - bind ctrl-o toggle-light-dark + bind ctrl-o "sf terminal toggle-light-dark" ''; };