Changing gnome-terminal profile from the command line

Asked by keflavich

I'd like to be able to change the gnome-terminal color settings from within a bash script (I'd also like to change VIM color settings, but that's a separate issue). I'm trying to do this so I can set my screen colors red during astronomical observing runs, and my terminal foreground colors disappear when I do that because I'm using a black background. I'm using nvidia-settings to load a configuration file that has green and blue turned off.

This question: https://answers.launchpad.net/ubuntu/+source/gnome-terminal/+question/4582 is the same as mine, but it was never answered. It was marked answered because someone answered a different question.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Solved by:
markino
Solved:
Last query:
Last reply:
Revision history for this message
Best markino (marco-crosio) said :
#1

i think this example

"setterm -term linux -back blue -fore white -clear"

could help you...

Revision history for this message
keflavich (keflavich) said :
#2

Thanks markino, that solved my question.

Revision history for this message
Ubuntu ix86 (ubuntuix86) said :
#3

Is it possible to change the terminal profile from gnome-terminal?

For example, I use Qemu, and have .bat files to start different OS's. Could I include a line in the .bat file to open itself in a certain terminal profile?

An easier question, can you change the size of a terminal from the terminal?