You are not logged in.
I am currently making my first rice and I generated a color scheme with pywal. I then copied colors.Xresources from ~/.cache/wal/ to ~/.Xresources. When I launch termite the normal way, using wm shortcut or just typing termite in a terminal emulator, termite correctly applies the color scheme from ~/.Xresources. But when I do something like termite -e ncmpcpp the new termite window has the default color scheme of termite, even with ranger and other programs. Any thoughts on how to fix this, or basically make it use colors from ~/.Xresources on other programs?
BTW, I have done all the necessary stuff mentioned in pywal's docs to make the scheme persistent.
Last edited by PlankCipher (2020-11-10 06:10:57)
Offline
https://wiki.archlinux.org/index.php/Termite doesn't use ~/.Xresources and just writing stuff there doesn't do anything anyway - you have to xrdb it onto the X11 server.
The reason why it works "normal" is probably because of some shell config that maps 256 colors to the 16 default ones.
Try eg.
termite -e bash -c ncmpcpp- does that get you the expected colors?
Offline
I think what you meant is:
termite -e bash -c ~/.config/termite/config
Anyway, in both cases and got back this error
invalid color string: ${xrdb:foreground}
I think it's caused by this part in my termite config
foreground = ${xrdb:foreground}
background = ${xrdb:background}
I should mention also that I am using ly display manager, but even when I disabled it and used startx with xrdb -merge ~/.Xresources in .xinitrc, I get the same behavior for all previously mentioned cases.
Offline
No, I meant "termite -e bash -c ncmpcpp" (which will make termite run bash and bash run ncmpcpp)
I assume this works because you've sth. like "cat ~/.cache/wal/sequences" in your bashrc.
You do not get the error when just running "termite"?
Apparently that's not legal termite config syntax - where did you get that from?
Offline
I indeed have "(cat ~/.cache/wal/sequences &)" in my .bashrc. I also get the same error when just running "termite". I think you are right, it is invalid syntax. Anyway, I manually copied the colors from my .Xresources to termite config. It is working as expected now.
Offline
Great.
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline