I have multiple gnome-terminal windows open. Is there a way to save the settings (window position, no. of tabs, title etc). across OS reboots ?

link|improve this question

43% accept rate
feedback

5 Answers

up vote 2 down vote accepted

I found the following options which are helpful :

--load-config=FILE              Load a terminal configuration file
--save-config=FILE              Save the terminal configuration to a file

The above does restore the appropriate number of gnome-terminal windows with proper tabs, but the window position and title are not restored. Still, a start :)

link|improve this answer
feedback

Once you have your gnome-terminal configured the way you like (i.e. number of tabs, open to certain directories), save the session state from within your gnome-terminal window with the following command:

gnome-terminal --save-config=mytabs

Then what I do is create a custom application launcher on my panel that executes the following command

gnome-terminal --load-config=/home/leif/mytabs

link|improve this answer
feedback

You can create profiles for Gnome-Terminal from the Edit Profiles dialog under the Edit menu. To start Gnome-Terminal with a certain profile, you'd do this:

gnome-terminal --window-with-profile=<profile_name>

Naturally, you can configure different launcher icons to automatically launch different profiles, or you could include lines in an X-session startup script to start several different terminals, each with a different profile, when you login. Various options can be combined in a launcher icon to give you one specific terminal type, and you could create as many launchers as you need different terminal types.

Other commandline options might be useful to get exactly the effect you want, if the profile mechanism isn't fine-grained enough for you. See man gnome-terminal on your system for full details, but here are some suggestions from this Ubuntu forum discussion:

# define a terminal 100 columns by 20 lines
--geometry=100x20

# set the titlebar
--title=irssi

# run a particular program
--execute irssi
link|improve this answer
This is close, but wondering if what I want can be achieved more easily. I already have profiles, and open windows. Is there some session state for each gnome-terminal, which I can save and then "load/run" at any time so that whatever I saved takes effect ? – Abhinav Nov 18 '09 at 15:06
Probably something in .gconf ? – Abhinav Nov 18 '09 at 15:06
i'm afraid that's the extent of my knowledge; i haven't been a Gnome user for a couple of years now. – quack quixote Nov 18 '09 at 15:24
feedback

I use a two-step approach with my xfce-terminal. First I open the windows:

xfce4-terminal --hide-menubar --hide-borders --hide-toolbars -e htop -T hTop

and then move them with wmctrl:

wmctrl -r 'hTop' -t 3
wmctrl -r 'hTop' -e 0,927,33,1000,550
link|improve this answer
feedback

Window position:

gnome-terminal --geometry=115x30+0+670
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.