Key function in FluxboxForum: X and Fluxbox Topic: Key function in Fluxbox started by: Frank Posted by Frank on Nov. 15 2004,03:23
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
Posted by mikshaw on Nov. 15 2004,18:04
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. Posted by Frank on Nov. 15 2004,21:56
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 Posted by ke4nt1 on Nov. 15 2004,22:30
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 Posted by Frank on Nov. 16 2004,03:20
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
|