You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using flavours along with the shell template to change my terminal theme, i am doing this by rewriting the file $ZDOTDIR/base16_theme.sh and sourcing it in my .zshrc.
I am however not able to create a hook to source it upon applying a new theme with flavours apply. Applying the new colors in base16_theme.sh requires re-launching the terminal (upon which it gets sourced by .zshrc), or sourcing the script manually.
~ $ flavours -v apply ocean
Using directory: "/home/ee/.local/share/flavours"
Using config file: "/home/ee/.config/flavours/config.toml"
Using scheme: Ocean (ocean), by Chris Kempson (http://chriskempson.com)
Wrote sway/colors on "/home/ee/.config/sway/colorscheme"
running zsh -c 'swaymsg reload'
Wrote shell/default on: "/home/ee/.config/zsh/base16_theme.sh"
running zsh -c '/home/ee/.config/zsh/base16_theme.sh'
Successfully applied ocean
If i manually run zsh -c '/home/ee/.config/zsh/base16_theme.sh' after running flavours apply <theme> the theme is applied to the current terminal instance, as expected.
The text was updated successfully, but these errors were encountered:
I think that's kind of how shells always work and not really a problem with flavours.
So you can either manually reload your colorscheme each time you use flavours apply (maybe using a shell function), or find some way to automatically update the shell environment.
I am using
flavours
along with theshell
template to change my terminal theme, i am doing this by rewriting the file$ZDOTDIR/base16_theme.sh
and sourcing it in my.zshrc
.I am however not able to create a hook to source it upon applying a new theme with
flavours apply
. Applying the new colors inbase16_theme.sh
requires re-launching the terminal (upon which it gets sourced by .zshrc), or sourcing the script manually.Here's my config
And here's my verbose output
If i manually run
zsh -c '/home/ee/.config/zsh/base16_theme.sh'
after runningflavours apply <theme>
the theme is applied to the current terminal instance, as expected.The text was updated successfully, but these errors were encountered: