mirror of
https://github.com/Crocmagnon/dotfiles.git
synced 2024-12-22 05:41:51 +01:00
add theme autoswitcher
This commit is contained in:
parent
3b7e9a4794
commit
23872d465d
2 changed files with 8 additions and 0 deletions
|
@ -4,3 +4,4 @@ franciscolourenco/done
|
||||||
jorgebucaran/autopair.fish
|
jorgebucaran/autopair.fish
|
||||||
PatrickF1/fzf.fish
|
PatrickF1/fzf.fish
|
||||||
IlanCosman/tide@v6
|
IlanCosman/tide@v6
|
||||||
|
catppuccin/fish
|
||||||
|
|
7
dot_config/fish/private_functions/update_theme.fish
Normal file
7
dot_config/fish/private_functions/update_theme.fish
Normal 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
|
Loading…
Reference in a new issue