I've been trying to set the icon of vim terminals that I run by writing a small line in my .vimrc:
execute '!xseticon -id \"' . v:windowid . '\" /usr/share/icons/Faenza/apps/16/vim.png'
However, I can't get it to properly work. The strings are concatenating and all, however I get the error:
xseticon: error: Invalid window id format: "0".
which I think is because it is running the script before vim can properly grab window ids, perhaps because it is not yet running.
How can I work around or solve this?