Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Key function in Fluxbox, modify key functions< Next Oldest | Next Newest >
Frank Offline





Group: Members
Posts: 12
Joined: Nov. 2004
Posted: Nov. 15 2004,03:23 QUOTE

Trying to modify the ~/.fluxbox/keys script with a quick terminal keystroke.  The Fluxbox manual states that it can be done by "Mod1 F5 :ExecCommand rxvt"  I save the script and it there when I reboot, but the keystroke Mod1 F5 doesn't open a terminal window.  I also try to just do a Fluxbox restart, also from the Fluxbox manual which also didnt work.  That command was "Mod1 F5 :Restart".  My assumption is that I've got the command wrong?  Thanks, Frank
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Nov. 15 2004,18:04 QUOTE

I don't completely understand what you're doing.  You said "Trying to modify the ~/.fluxbox/keys script with a quick terminal keystroke", which doesn't read the way I think you mean it to read.  Can you please clarify what exactly you did?

The lines you used look correct to me.  These lines should be placed in ~/.fluxbox/keys.  Rebooting is completely unnecessary, and if you're running a liveCD will undo everything you did.  A simple reload of Fluxbox should be sufficient.
The only thing that I can think of right now might be if you're adding these lines to the keys file (which, by the way, is not a script) when that particular key combination already exists in the file....i'm not sure this would be a problem, though.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
Frank Offline





Group: Members
Posts: 12
Joined: Nov. 2004
Posted: Nov. 15 2004,21:56 QUOTE

Here's what I did, thanks for the questions.  Objective is to have a key macro which will open a terminal window without going through the fluxbox menu.  Way that I'm attempting to do this is via modifying ~/dsl/.fluxbox/keys.  Put a line in this file similar to "Mod1 x :ExecCommand xrtv".  I also  placed ~/dsl/.fluxbox/keys into ~/home/dsl/filetool.lst so the modified file would be save (which works just fine).

However the key shortcut doesn't work, although the original Mod1 F1, Mod1 F2 & Mod1 F3 does shift from window 1 through window 3.  DOes this help?  BTW, also tried the Fluxbox command "Restart" and it also didn't work.

Was this clearer?  Frank
Back to top
Profile PM 
ke4nt1 Offline





Group: Members
Posts: 2329
Joined: Oct. 2003
Posted: Nov. 15 2004,22:30 QUOTE

Change a line in ' /home/dsl/.fluxbox/init '
near the bottom called ' session.keyfile: '
from ' /etc/X11/fluxbox/keys ' ,
to  ' ~/.fluxbox/keys '

Then your ExecCommand will work..

73
ke4nt
Back to top
Profile PM 
Frank Offline





Group: Members
Posts: 12
Joined: Nov. 2004
Posted: Nov. 16 2004,03:20 QUOTE

ke4nt1, your comment did the trick.  I modified the file as you suggested and it works just fine now!  Thanks, I now have xrtv and grun available with simple keystrokes. . . . works great.  Thanks for the advice, Frank
Back to top
Profile PM 
4 replies since Nov. 15 2004,03:23 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Key function in Fluxbox

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code