dylanaraps / pywal

🎨 Generate and change color-schemes on the fly.
MIT License
8.22k stars 311 forks source link

If nvim/ranger is opened from rofi, it doens't have the same colorscheme as the rest of the system #664

Open jfab20 opened 2 years ago

jfab20 commented 2 years ago

I have read https://github.com/dylanaraps/pywal/wiki/Getting-Started#applying-the-theme-to-new-terminals and put

(cat ~/.cache/wal/sequences &)
cat ~/.cache/wal/sequences
source ~/.cache/wal/colors-tty.sh

in my .zshrc

So if I open a new terminal, it has the pywal theme as expected. However, when I open neovim/ranger from rofi, the respective theme is not the same.

This also happens when I run alacritty -e nvim in a terminal for example. The colorscheme is not preserved. This is not an alacritty issue because this is also present with other terminal emulators

arcmags commented 2 years ago

This isn't a pywal issue. It's an issue with how you are launching terminal applications. When you run alacritty -e nvim, alacritty isn't running zshell at all, so of course it's not going read those rc files; same thing with rofi.

If you want your .zshrc to actually be sourced, you need to do something like alacritty -e zsh -i -c nvim