add theme autoswitcher

This commit is contained in:
Gabriel Augendre 2024-11-16 23:36:56 +01:00
parent 3b7e9a4794
commit 23872d465d
2 changed files with 8 additions and 0 deletions

View file

@ -4,3 +4,4 @@ franciscolourenco/done
jorgebucaran/autopair.fish
PatrickF1/fzf.fish
IlanCosman/tide@v6
catppuccin/fish

View file

@ -0,0 +1,7 @@
function update_theme --on-variable macOS_Theme
if [ "$macOS_Theme" = "dark" ]
yes | fish_config theme save "Catppuccin Mocha"
else if [ "$macOS_Theme" = "light" ]
yes | fish_config theme save "Catppuccin Latte"
end
end