I'm using Ubuntu 22.04. I have three profiles in my terminal, a default builtin and two I made myself :
My "OCaml" profile has a blue background color among other things :
But when I try to use xdotool
as suggested in the answers from this older question to set my profile programmatically, none of them work :
the background color stays unchanged.
Any ideas ?
Update: Just to be clear, I'm not looking for a way to set my default profile to "OCaml", I want to leave the default as it is, and only use my Ocaml profile when you guessed it, I'm progaramming in the OCaml language. The reason I want to do it programmatically, using the command line, is that as of now, when I start programming in OCaml in my terminal I do two separate things : calling a bash script to setup my OCaml environment and setting the profile to OCaml using the Gnome GUI. I would like to merge those two actions into one to save time.