I have two profiles in my Gnome Terminal, one uses specific image for background. Would like to switch between them when I enter/exit Vim
.
So far, I do this by Alt+t and navigating to the other profile. But would like to have this automated.
Possible scenarios:
vim newFile # profile changes to Vim-one
:q # it changes back to default
vim confFile # profile changes to Vim-one
Ctrl-z # vim is suspended, default profile enters
cmd_that_uses_changed_config_file
fg # vim is brought back from suspension, profile changes again...
Now I realize that automating this fully may be difficult, so keyboard shortcut to do this is perfectly fine. I searched Gnome Terminal shortcuts but Terminal menu has three of them only: title, reset, reset and clear.
Any ideas, hints or pointers? :-)