Tuesday, May 7, 2024
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 31542  / 1 Year ago, sun, may 14, 2023, 5:26:00

I created a new profile for gnome-terminal and I can switch between "Implicit" profile and the new created profile as you can see in the below image:


Switch between profiles in gnome-terminal


Now I wonder how can I switch between profiles using a command-line/script or maybe using a shortcut for this.



Note: Solutions like:


gnome-terminal --tab-with-profile=Implicit && exit 

are excluded because I prefer not to close and open another terminal or get another terminal window in this process of changing the profile.



More From » command-line

 Answers
1

To switch to the "implicit" profile:



xdotool key Alt+t p Return


To switch to the second profile:



xdotool key Alt+t p Down Return


xdotool Install xdotool is not installed by default in Ubuntu, so it must to be installed first.



Of course, for these commands can be added custom keyboard shortcuts.


[#30185] Monday, May 15, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cklaceowne

Total Points: 228
Total Questions: 102
Total Answers: 111

Location: Ivory Coast
Member since Sun, Mar 7, 2021
3 Years ago
cklaceowne questions
Sun, May 28, 23, 01:20, 1 Year ago
Fri, Aug 20, 21, 06:02, 3 Years ago
Thu, Jul 7, 22, 06:47, 2 Years ago
Fri, Jan 21, 22, 19:52, 2 Years ago
;