This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Automatic Konsole start.

Tags: konsole konsole konsole
(comma "," separated)
User avatar
Symbolix
Registered Member
Posts
4
Karma
0

Automatic Konsole start.

Thu Feb 19, 2009 12:06 pm
Hi,
I am trying to write a script that is going to:
1) start a new konsole
2) create a few tabs with specific names and colors

There are options for the "konsole" command:
--workdir Change working directory to 'dir'
-T Set the window title
--caption Use 'caption' as name in the titlebar
--btn, --button sets the default button color

But I could not figure out how to pull this together. How can I create tabs with predefined colors?
May be I need create a separet profile file with all the "colour, font, name" settings and run this each time?

Any ideas? Many Thanks!

Last edited by Symbolix on Thu Feb 19, 2009 12:08 pm, edited 1 time in total.
User avatar
Symbolix
Registered Member
Posts
4
Karma
0

RE: Automatic Konsole start.

Thu Feb 19, 2009 2:24 pm
Ok. I saved the current profile. A profile that I have manually made. Just a couple of tabs with names and colors and the path as a specific folder. Then I examined the file. It has all the lines required to set up the konsole from sratch. The probelm is when i load the profile with the "konsole --profile MY_PROFILE" it starts a brand new konsole with all the tabs.

Is there a way of dynamically adding the new tabs to the current session?

Thanks.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

RE: Automatic Konsole start.

Fri Feb 20, 2009 3:40 am
At this time the Konsole DBus interface does not support adding Tabs dynamically, apart from through the interface.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
Symbolix
Registered Member
Posts
4
Karma
0

RE: Automatic Konsole start.

Fri Feb 20, 2009 10:14 am
bcooksley wrote:At this time the Konsole DBus interface does not support adding Tabs dynamically, apart from through the interface.


I see. Thank you very much. How you would have approached such and automation atempt? Regards.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

RE: Automatic Konsole start.

Fri Feb 20, 2009 11:05 am
probably page management ( add, remove ) methods, with each page having all the options available, similar to how the profile page is now.

Last edited by bcooksley on Fri Feb 20, 2009 11:05 am, edited 1 time in total.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
Symbolix
Registered Member
Posts
4
Karma
0

RE: Automatic Konsole start.

Fri Feb 20, 2009 5:13 pm
Ok. Thanks.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]