Fluxbox keybinding not loadingForum: X and Fluxbox Topic: Fluxbox keybinding not loading started by: Barry Posted by Barry on Jan. 12 2005,21:18
Hi gang, I'm running 9.2 hd install and trying to map some keys. The box will go in the car with just a usb keypad to operate xmms. I would like to map NextTab and some xmms commands such as p and f. I used xev to get the key names. In /home/dsl/.fluxbox/keys I added
Posted by ke4nt1 on Jan. 12 2005,21:26
Try changing the session.keyFile: line in your ~/.fluxbox/init filefrom .fluxbox/keys to ~/.fluxbox/keys ... or the full path. Let us know. 73 ke4nt Posted by mikshaw on Jan. 12 2005,21:49
The syntax looks right for fluxbox commands, but 'F' isn't a fluxbox command. If you have a non-fluxbox command called 'F' it should be:NONE KP_7 :ExecCommand F but since this is an Xmms command it should be this: NONE KP_7 :ExecCommand xmms -f Posted by Barry on Jan. 13 2005,00:12
Yea, lets eliminate any confusion and just go with getting NextTab to work. I also am testing on both the usb keypad and the ps2 keyboard.
dina du it neither, tried both. But you did tell me that the session.keyFile line in the .fluxbox/init file loads the keys file which I didn't know. Fluxbox is loading because I'm getting a gui, correct? Are there more than 1 init or keys file? Such as a system or default? Posted by mikshaw on Jan. 13 2005,01:28
There is a systemwide keys file, but by default it gets copied into ~/.fluxbox the first time you run the program.Did you reload the configuration after making changes to the keys file? It's not like the menu file, which automatically gets reloaded whenever a change is made...you have to reload it manually. There should be a menu item in the 'desktop' submenu. Posted by Barry on Jan. 13 2005,04:55
I didn't specifically reload the configuration, I rebooted the whole enchelada. But I found the reconfigure the window manager button in the menu but that dina du it neither. Hey, I just noticed that my light bulb is lit up. Well, it's just a freakish spike...I assure you I have no bright ideas on this one.
Posted by mikshaw on Jan. 13 2005,13:59
Well.....that kicks me in the pants....Do the other keybinds work? Try Alt+Tab to switch between windows and Alt+F1/F2 to switch desktops. Posted by Barry on Jan. 14 2005,23:26
OK, so now when I go back and use xev to identify keycodes I get something a little different. Number 8 on the keyboard is the one that I changed in the keys file like so...
It now show in xev as:
The rest of the numbers that have not been modified all give something like this "9" does:
Which is the format that the "8" showed before I edited. So something changed. Anyone care to back me up on syntax? I'm going to try the keycode instead of the name...will post. Posted by Barry on Jan. 14 2005,23:44
The fluxbox documentation shows using the name, the keycode didn't work. I did however successfully map an xmms command to a key in the form of "None 8 :ExecCommand xmms -p". But I still need to be able to use the mapping in x such as NextTab. Ideas? Thoughts? Comments?
Posted by mikshaw on Jan. 15 2005,00:58
If you map a key with no modifier fluxbox grabs that key, so it is not passed to applications. This is why the xev display is unusual....it knows something was pressed but does not receive anything specific.Only thing I can think of at the moment is maybe you have numlock off. This might prevent the keypad keys from properly registering. Fluxbox might be seeing the keypress as KP_Home instead of KP_7. FYI you probably don't want to map something like "none 8". Fluxbox will grab it every time and you won't be able to type '8' in an application. As a rule I don't map any standard keys without using a modifier. Posted by Barry on Jan. 15 2005,02:36
In this instance it is OK that I wouldn't get an 8 typed into an application because this is just the computer for the car with just a numpad to control it and so far xmms is the only app. I set it up with the main window on workspace 1, the eq on the next, and the playlist on the 3rd. I mapped a key for nextworkspace and everything is perfect...almost. When I close and reopen xmms everything is back on the same workspace. Is it possible to get the componants to appear on separate workspaces?
Posted by mikshaw on Jan. 15 2005,03:05
You'd need fluxbox-dev in order to do that. It utilizes a file called 'apps' which allows you to specify per-application settings, one of which is the workspace on which a particular application is launched.//EDIT I just realized what you meant... I don't know of any way to do that with Fluxbox, but I know Ion will do it. The default configuration in Ion loads each part of Xmms into a separate window, which could easily be separate workspaces. Posted by softgun on Jan. 15 2005,13:12
Is it possible to modify the key bindiings and save them in some way so that we have them available from the live CD itself WITHOUT the need to depend on any other storage device?If we copy the .fluxbox directory to the root partition and burn, and add a script too the root partition at the same time, and then, after booting run the script to paste these to the appropriate areas overwriting the default directories.................. Possible? Posted by mikshaw on Jan. 15 2005,19:27
You can build an extension for your fluxbox configs and put that in the root of your CD. No script needed.My CD is built with a backups extension in its root. It contains few applications in /opt and all my configs in /home/dsl (with paths and file ownerships intact). When I boot it up, the extension is automatically loaded and everything is put in place. Posted by Barry on Jan. 16 2005,04:16
So now I have found xmms-shell, with that I can map everything that I need. One problem left. My screen will be only 7 " so the best display that I could have would be to have each of the 3 componants of xmms on it's own workspace. I can't seem to do it directly. Also since the xmms windows will not play with tabs even when window decoration is set to on, tabbing through them is not an option. I was thinking about a script to load xmms with. First let me say that I have never written a script before but this one does not sound too bad. You know how you can right click the window title bar and send it to a different workspace? Can this be done in a startup script? Pseudo like this:xmms -p xmms Equalizer send to workspace2 xmms Playlist send to workspace3 Can this be done? Posted by mikshaw on Jan. 16 2005,07:05
After testing, yes it can be done in Fluxbox, but as I said you need fluxbox devel to do it.in the apps file you put this: [app] (XMMS_Equalizer) [Workspace] {2} [end] [app] (XMMS_Playlist) [Workspace] {3} [end] Posted by softgun on Jan. 16 2005,11:14
Can you please give more detail as to how the extension to fluxbox configs is setup? I have not done anything like that. Can i add some firefox plugins in the same way? Do you realise that what you have done is very important? If we can get our own fluxbox configs, firefox plugins and firefox bookmarks to load in the CD, DSL is perfect!! Please document this. Posted by mikshaw on Jan. 16 2005,13:57
quickest way I can explain it:1) 'sudo su' 2) 'mkdir work' 3) copy all files necessary into ./work, with directory structure. For example, if you add fluxbox keys you'd have /home/dsl/work/home/dsl/.fluxbox/keys 4) read what Ke4nt says here: < http://damnsmalllinux.org/cgi-bin....;t=2362 > or another way is to add all the files you want to backup into /home/dsl/filetool.lst and have them backed up automatically. Although this is a set-it-and-forget-it approach I personally prefer the former method....no reason, really...it just feels more hands-on. Posted by Barry on Jan. 17 2005,03:48
Well I found a way. Instead of placing each of the componants on a different workspace, I do it on the same space without tabs. Xmms-shell came to my rescue again, I can just toggle each componant with a different key. This thing goes in the car sometime this week. Thanks milkshaw for hangin' with me through the problem. I'll post a picture of the display in the multimedia section after the install.
|