pywal icon indicating copy to clipboard operation
pywal copied to clipboard

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

Open jfab20 opened this issue 3 years ago • 1 comments

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

jfab20 avatar Mar 11 '22 13:03 jfab20

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

arcmags avatar Apr 03 '22 17:04 arcmags