Change the background color in Gnome terminal through a command

Asked By 40 points N/A Posted on -
qa-featured

I use gnome-terminal and I can change the background color or profile of an order, so I can gather some commands in an alias to visually distinguish my window, if I want some process. I use Ubuntu, and bash is my shell. There are commands to do this let me know.

SHARE
Answered By 0 points N/A #188593

Change the background color in Gnome terminal through a command

qa-featured
HELLO
 
For doing multiple process you can use the dconf tool for complete that. You can also
change colors whichever you want.
 
For changing foreground color you can use this script:- 
 
$ dconf write /org/gnome/terminal/legacy/profiles:/<profile id>/foreground-color "'rgb(255,255,255)'"
 
 
For changing background color you can use this script:-
 
$ dconf write /org/gnome/terminal/legacy/profiles:/<profile id>/background-color "'rgb(0,0,0)'"
 
The color code can be changed according to your requirement.

Related Questions