LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 03-20-2005, 09:12 AM   #1
Brunellus
LQ Newbie
 
Registered: Mar 2005
Distribution: ubuntu
Posts: 12

Rep: Reputation: 0
fluxbox: generating menu?


I'm running ubuntu warty, and have just successfully apt-getted fluxbox. It appears very nicely in my session-type menu in GDM, and it runs very very fast indeed...

The trouble is that, in order to run any programs, I'm having to run them from terminal windows. My initial experience with fluxbox was from using Damnsmall Linux, where a right-click had brought up a fairly comprehensive menu of the various applications..

After googling, I found that
Code:
fluxbox-generate_menu
was the command to use; but when I type this into the terminal, all I get is an error:
Code:
bash: fluxbox-generate_menu: command not found
. I don't know what to do from here.

Any fluxbox gurus want to help me out here?
 
Old 03-20-2005, 09:32 AM   #2
iZvi
Member
 
Registered: Mar 2004
Location: Valhalla
Distribution: Slackware-current, kernel 2.6.31
Posts: 284

Rep: Reputation: 35
You can manually add any programs you want to the ~/.fluxbox/menu file . The syntax isn't really difficult. I'm not sure there is automated tool for every distribution.
 
Old 03-20-2005, 09:40 AM   #3
Brunellus
LQ Newbie
 
Registered: Mar 2005
Distribution: ubuntu
Posts: 12

Original Poster
Rep: Reputation: 0
~/.fluxbox/menu is totally empty.

I don't know what's going on.
 
Old 03-20-2005, 10:23 AM   #4
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
Heres an example to get you started:

Quote:
[begin] (Indigo Fluxbox)
[exec] (aterm) {aterm}
[exec] (mrxvt) {mrxvt}
[exec] (G Terminal) {gnome-terminal}
[exec] (Run) {fbrun}
[separator]
[exec] (Firefox) {firefox}
[exec] (Thunderbird) {thunderbird}
[exec] (Abiword) {abiword}
[exec] (Rox) {rox}
[separator]
[submenu] (IRC)
[exec] (xchat) {xchat}
[exec] (irssi) {irssiscreen}
[exec] (BitchX) {aterm --geometry 100x50 -e BitchX -N}
[end]
[submenu] (ftp)
[exec] (gftp) {gftp}
[exec] (ncftp) {aterm -e ncftp}
[exec] (ftp) {aterm -e ftp}
[exec] (lftp) {aterm -e lftp}
[end]
[submenu] (Multimedia)
[submenu] (Graphics)
[exec] (gimp) {gimp}
[exec] (xv) {xv}
[exec] (xpaint) {xpaint}
[exec] (xscreensaver-demo) {xscreensaver-demo}
[exec] (xlock) {xlock}
[end]
[submenu] (Audio)
[exec] (xmms) {xmms}
[exec] (aumix) {aumix}
[exec] (AlsaMixer) {aterm -e alsamixer}
[end]
[submenu] (Video)
[exec] (xine) {xine}
[exec] (gmplayer) {gmplayer}
[exec] (RealPlayer) {realplay}


[end]
[end]

[submenu] (Office Utils)
[exec] (xcalc) {xcalc}
[exec] (kcalc) {kcalc}
[exec] (gcalc) {gnome-calculator}
[exec] (abiword) {abiword}
[exec] (xpdf) {xpdf}
[exec] (OpenOffice.org) {soffice}

[end]
[submenu] (Games)
[exec] (Quake) {stop && quake3}
[exec] (Wesnoth) {wesnoth}
[exec] (Freeciv) {freeciv}
[exec] (ET) {stop && et}
[end]
[separator]

[submenu] (fluxbox menu)
[config] (Configure)
[submenu] (System Styles) {Choose a style...}
[stylesdir] (/usr/X11R6/share/fluxbox/styles)
[stylesdir] (/usr/share/commonbox/styles/)
[end]
[submenu] (User Styles) {Choose a style...}
[stylesdir] (~/.fluxbox/styles)
[end]
[workspaces] (Workspace List)
[submenu] (Tools)
[exec] (Window name) {xprop WM_CLASS|cut -d \" -f 2|xmessage -file - -center}
[exec] (Screenshot) {import screenshot.png && qiv -W 50 screenshot.png}
[exec] (Run) {fbrun }
[end]
[submenu] (Other WMs)
[restart] (fvwm) {fvwm}
[restart] (openbox) {openbox}
[restart] (gnome) {gnome-session}
[restart] (windowmaker) {wmaker}
[end]
[exec] (Lock screen) {xlock}
[commanddialog] (Fluxbox Command)
[reconfig] (Reload config)
[restart] (Reload fluxbox)
[separator]
[exit] (Exit)

[end]
[end]
Its heavily modified from the default, but should give you an idea..

Last edited by Artanicus; 03-20-2005 at 10:30 AM.
 
Old 03-20-2005, 09:55 PM   #5
Brunellus
LQ Newbie
 
Registered: Mar 2005
Distribution: ubuntu
Posts: 12

Original Poster
Rep: Reputation: 0
bump/update:

thanks to thoreauputic on #ubuntu, I was able to get things running nicely. The fluxbox package in the warty repositories is *ancient* and did not include the fluxbox-generate_menu script. A more recent .deb ( v. 0.9.12) runs fine.

Now I'm tweaking. I'd like to run some dockapps in the fluxbox slit at startup. I understand that I'd have to edit .xinitrc as shown here to make this happen. Question: will this affect the behaviour of any other desktop environments/window managers I decide to run on this system? That is, will this break GNOME 2.8?

second question: from fluxbox, how does one take a screenshot?
 
Old 03-20-2005, 11:06 PM   #6
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
if you edit .xinitrc, yes. If you edit ~/.fluxbox/startup then no.. (:

Just add your own lines just before exec fluxbox..
Once again, heres an example youre goinf to ignore..

Code:
# own additions
fbsetbg -f /share/images/wallpapers/fluxbox.img
~/fix-mouse
xbindkeys
wmclockmon &
gkrellm -w &
wmxmms -t &
fbpager -w &
wmblob &
wmWeather -s EFJY -metric -W &
wmpiki &
kcheckgmail &
gdeskcal &

# no blank screen
xset s off
One tip for you for the menu.. If you make a menu entry like this:
[exec] (Firefox) {firefox} <~/.fluxbox/icons/ff.xpm>
The last set will determine you an icon for it on the menu.. Only xpm:s tho if you didnt compile imlib2 support in..
 
Old 03-20-2005, 11:08 PM   #7
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
and answer to the second: I had a tool ready at hand in fluxbox menu -> tools -> screencap.. Buts its basicly just the command:
import screenshot.png
 
Old 03-26-2005, 03:11 AM   #8
amam
Member
 
Registered: Jul 2001
Location: Ohio
Distribution: Ubuntu (Hoary)
Posts: 30

Rep: Reputation: 15
In Synaptic install the package "menus" and then run
Code:
update-menus
and it will automatically add your menu entries. Oh, and don't forget to hit reconfigure or reset after you run update-menus.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fluxbox Menu Sk8trf69 Linux - Newbie 4 07-07-2005 09:03 PM
Fluxbox menu kirth Linux - Software 1 05-23-2005 02:44 AM
fluxbox menu help cs-cam Linux - Software 3 11-13-2004 08:05 PM
FluxBox not in menu Darkseid Linux - Software 2 12-15-2003 07:16 PM
fluxbox in the menu rvijay17 Linux - Newbie 2 06-11-2003 04:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 11:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration