Opening Konsole with Multiple Pre-loaded Tabs

Duncan 1i5t5.duncan at cox.net
Mon Jul 22 23:02:33 BST 2013


Jerome Yuzyk posted on Mon, 22 Jul 2013 11:02:27 -0600 as excerpted:

> I finally got it to work correctly after reading the Konsole source [2]
> for the function and would like to share how I use it to help fill in a
> little empty spot in the KDE documentation space.
> 
> I have a K Menu item configured to execute this command:
> 
>     konsole --tabs-from-file /home/jerome/bin/konsole_Work
> 
> where /home/jerome/bin/konsole_Work is a text file that looks like this:
> 
>	title: Work;; workdir: ~/work;; command: vi _desk
>	title: root;; command: sudo -i sysfiles
>	title: bss-gate;; command: sshto gateway

> Each line of konsole_Work specifies a tab to open using up to 4 fields
> specifying how it is to open. Fields are delimited with ';;' and a field
> name must have a ':' appended.
> 
>	title: 	a name for this tab, tab default if blank
>	workdir: working directory, ~ if blank
>	profile: a Konsole profile to use, the default if blank
>	command: a command to run

I see --tabs from file in konsole's --help output, but I would have had 
to guess or google the file's format.  Thanks.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman

___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.




More information about the kde mailing list