You are not logged in.

#1 2013-08-28 14:00:17

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 262
Website

[SOLVED] Openbox - menu.xml - command to open a terminal and ex

How would i insert a menu item in the openbox menu.xml to 1st open terminal (terminator) and 2nd in that same terminal execute the command wicd-curses. I have been trying something like this but hasn't worked out for me.

<item label="wicd-curses">
	<action name="Execute">
		<execute>
			terminator wicd-curses
		</execute>
	</action>
</item>

Last edited by 71GA (2013-08-28 14:11:23)


Arch Linux user dealing with ARM9 / ARM Cortex-M developement in Kdevelop IDE, 3D modeling in Bricscad, PCB production in EAGLE CAD, 3D animation in Blender, milling through LinuxCNC and songwriting in Bitwig & GuitarPRO.

Offline

#2 2013-08-28 14:04:27

2ManyDogs
Member
Registered: 2012-01-15
Posts: 1,635

Re: [SOLVED] Openbox - menu.xml - command to open a terminal and ex

read the Terminator man page

man terminator

Offline

#3 2013-08-28 14:08:30

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 262
Website

Re: [SOLVED] Openbox - menu.xml - command to open a terminal and ex

2ManyDogs wrote:

read the Terminator man page.

These two arguments sure look interesting, but i don't quite understand them.

       -e, --command=COMMAND
              Runs the specified command instead of your default shell or pro‐
              file specified command

       -x, --execute COMMAND [ARGS]
              Runs the rest of the command line instead of your default  shell
              or profile specified command.

I want the terminator terminal to stay opened while it executes...

EDIT:

Argument -e worked for me.

Last edited by 71GA (2013-08-28 14:10:52)


Arch Linux user dealing with ARM9 / ARM Cortex-M developement in Kdevelop IDE, 3D modeling in Bricscad, PCB production in EAGLE CAD, 3D animation in Blender, milling through LinuxCNC and songwriting in Bitwig & GuitarPRO.

Offline

#4 2013-08-28 14:11:48

fsckd
Forum Moderator
Registered: 2009-06-15
Posts: 3,514

Re: [SOLVED] Openbox - menu.xml - command to open a terminal and ex

Try them and see what happens. smile


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

Board footer

Powered by FluxBB