Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fluxbox question (solved)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
AliasXZ
l33t
l33t


Joined: 08 Feb 2005
Posts: 847
Location: England, Wakefield

PostPosted: Tue Oct 17, 2006 12:19 pm    Post subject: fluxbox question (solved) Reply with quote

Sorry for being a n00b guys but....

in my fluxbox menu, how can i make it so i can run things from a console? I have Xterm and Aterm installed...

cheers
_________________
Main:
Kernel: 5.4.38 amd64
RAM: 4GB
Lappy:
Macbook Pro 10.14.6
------------------------------
Please add (solved) to your first post when your issue is resolved 8)


Last edited by AliasXZ on Tue Oct 17, 2006 4:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
zsoltika
l33t
l33t


Joined: 13 Nov 2003
Posts: 634
Location: Budapest, Hungary

PostPosted: Tue Oct 17, 2006 1:00 pm    Post subject: Reply with quote

Quote:
# man xterm
...
-e program [ arguments ... ]
This option specifies the program (and its command line arguments) to be run in the xterm window. It also sets the window title and icon name to be the basename of the program being executed if neither -T nor -n are given on the command line.
This must be the last option on the command line.

So e.g.
Code:
xterm -e mc
would run Midnight commander in a terminal.
BTW check 'fluxbox-generate_menu' command as well...
HTH
_________________
Do not believe that Guru thing under my nickname.
Back to top
View user's profile Send private message
swimmer
Veteran
Veteran


Joined: 15 Jul 2002
Posts: 1330
Location: Netherlands

PostPosted: Tue Oct 17, 2006 1:01 pm    Post subject: Reply with quote

Put a line like
Quote:
[exec] (AlsaMixer) {urxvt -title alsamixer -e alsamixer}
in your ~/.fluxbox/menu file ...

HTH
swimmer

PS: the '-e' part is the important one ;-)
Back to top
View user's profile Send private message
AliasXZ
l33t
l33t


Joined: 08 Feb 2005
Posts: 847
Location: England, Wakefield

PostPosted: Tue Oct 17, 2006 3:18 pm    Post subject: Reply with quote

cheers :)
_________________
Main:
Kernel: 5.4.38 amd64
RAM: 4GB
Lappy:
Macbook Pro 10.14.6
------------------------------
Please add (solved) to your first post when your issue is resolved 8)
Back to top
View user's profile Send private message
AliasXZ
l33t
l33t


Joined: 08 Feb 2005
Posts: 847
Location: England, Wakefield

PostPosted: Tue Oct 17, 2006 4:00 pm    Post subject: Reply with quote

hmm another ques...

how do u cd to a directoy and then do a second command in the same console using the fluxbox menu?

I have wine and some games I have dont like running from the home dir, so i have to cd to the games dir, how would i those 2 commands off in the fluxbox menu file? :oops:

cheers
_________________
Main:
Kernel: 5.4.38 amd64
RAM: 4GB
Lappy:
Macbook Pro 10.14.6
------------------------------
Please add (solved) to your first post when your issue is resolved 8)
Back to top
View user's profile Send private message
a16b03
Apprentice
Apprentice


Joined: 21 Mar 2006
Posts: 253
Location: Riga, Latvia

PostPosted: Tue Oct 17, 2006 4:10 pm    Post subject: Reply with quote

Use && between commands.
Back to top
View user's profile Send private message
AliasXZ
l33t
l33t


Joined: 08 Feb 2005
Posts: 847
Location: England, Wakefield

PostPosted: Tue Oct 17, 2006 4:12 pm    Post subject: Reply with quote

thats what i thought - tried it but for some reason it didnt work,i have:

Code:
[exec] (Steam) {aterm -e cd /home/rich/c_drive/Program\ Files/Steam/ && wine STEAM.exe}


do u need to put the -e arg before the cd, before wine or both?

cheers for help
_________________
Main:
Kernel: 5.4.38 amd64
RAM: 4GB
Lappy:
Macbook Pro 10.14.6
------------------------------
Please add (solved) to your first post when your issue is resolved 8)
Back to top
View user's profile Send private message
widremann
Veteran
Veteran


Joined: 14 Mar 2005
Posts: 1314

PostPosted: Tue Oct 17, 2006 4:27 pm    Post subject: Reply with quote

AliasXZ wrote:
thats what i thought - tried it but for some reason it didnt work,i have:

Code:
[exec] (Steam) {aterm -e cd /home/rich/c_drive/Program\ Files/Steam/ && wine STEAM.exe}


do u need to put the -e arg before the cd, before wine or both?

cheers for help

Just quote the whole thing: {aterm -e "cd /home/rich/c_drive/Program\ Files/Steam/ && wine STEAM.exe"}
Back to top
View user's profile Send private message
AliasXZ
l33t
l33t


Joined: 08 Feb 2005
Posts: 847
Location: England, Wakefield

PostPosted: Tue Oct 17, 2006 4:32 pm    Post subject: Reply with quote

:oops:

cheers, I thought quoting wouldnt work because thats what you do in windows command prompt :p

thanks sorry for being n00by (having a bad day)
_________________
Main:
Kernel: 5.4.38 amd64
RAM: 4GB
Lappy:
Macbook Pro 10.14.6
------------------------------
Please add (solved) to your first post when your issue is resolved 8)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum