LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Custom Fluxbox Menu (https://www.linuxquestions.org/questions/linux-software-2/custom-fluxbox-menu-295581/)

TomalakBORG 02-27-2005 03:46 PM

Custom Fluxbox Menu
 
Hello All!
I am a kde user, but have opted for fluxbox because it runs so much faster. Since I am using SuSE, every program I use is loaded into the kde menu perfectally, but not the Fluxbox menu. I was looking in ~/.fluxbox/menuconfig and tried the KDE options, but they didint seem to work, and I really don't understand them. So what I was wondering is, is there a file that the the kde menu is saved in much like ~/.fluxbox/menu ? If I could find a file like that, I'd manually fix the fluxbox menu to contain the categories off the kmenu. (A franken-menu!) I've looked but have not found, so if anybody knows, that would rock! -Bill

funkydan2 02-27-2005 04:56 PM

There is a nice tool as part of FluxConf http://devaux.fabien.free.fr/flux/ which allows you to use a GUI to edit your Flux menu.

Also read http://fluxbox.sourceforge.net/docbo...html/c724.html which talks about editing menus and also fluxbox-generate_menu.

Daniel

Optimistic 02-27-2005 05:11 PM

The 'session.menuFile: /home/YOU/.fluxbox/menu' line in ~/.fluxbox/init tells you where the fluxbox menu is. After that building your own menu is pretty easy.

This is the basic setup:
Code:

[begin] (fluxbox)
[submenu] (NAME) {}
[exec] (SOME NAME) {command or path to app}
[end]

I alway use my own custom menu so things are where I want them. I also change the name onthe menu file (and tell init what it is called) so that I don't overwrite it with an update or something similar.

Here is a sample:
Code:


[begin] (fluxbox)
[exec] (firefox) {firefox}
[exec] (rox) {rox-filer}
[exec] (aterm) {aterm -sh 40 -tr -fg white +sb}
[separator]
[submenu] (Games) {}
        [exec] (GBA) {gnomeboyadvance}
        [exec] (SNES) {zsnes}
        [exec] (N64) {mupen64}
[end]
[submenu] (Multimedia) {}
        [exec] (xmms) {xmms}
        [exec] (xine) {xine}
        [exec] (mplayer) {gmplayer}
        [exec] (k3b) {/usr/sbin/su-to-root -X -c k3b}
        [exec] (grip) {grip}
[end]

I don't know anything about Suse, but you can probably use yast to figure out what programs are installed so that you can populate your menu. You can also hit tab tab in a terminal to tell you which commands are available and that will tell you a lot about apps on the machine.

TomalakBORG 02-27-2005 06:53 PM

Well yes, I know the format and can do it myself - but I have a ton of apps, and would like this to be a fairly automated or one step operation. *Like copying the kmenu code into a section of the fluxmenu code* but thankyou for the websites notheless. I was just wondering if there was a place where the kmenu code was stored.


All times are GMT -5. The time now is 10:48 AM.