LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-28-2006, 07:43 AM   #1
Swift&Smart
Member
 
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472

Rep: Reputation: 30
Edit fluxbox menu


Hello,everyone!

I am using Dropline GNOME on my laptop.And now,I would like to use fluxbox on my desktop and try things out.However,I got a menu edit program in GNOME,but how about fluxbox?How can I edit the menu?Add,Remove or Modify?

Another question,I discovered that fluxbox doesn't save much regarding the usage of memory.But I like the simplicity of its design.
 
Old 01-28-2006, 08:03 AM   #2
Ilgar
Senior Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 15.0, Slackwarearm 14.2
Posts: 1,157

Rep: Reputation: 237Reputation: 237Reputation: 237
It's a rather simple text file: ~/.fluxbox/menu. Pretty easy to edit by hand. There's also a program called fluxbox-generate-menu which you can use to generate an initial menu (it scans for programs and puts them into predefined categories). You can then tweak that the way you like.
 
Old 01-28-2006, 04:14 PM   #3
everal
Member
 
Registered: Nov 2004
Location: Zona Leste, Sao Paulo, Brazil, South America, Alpha Quadrant, Milk Way
Distribution: Slackware 14.0
Posts: 140

Rep: Reputation: 16
hello...

1 - In your home dir, try
cd .fluxbox

2 - then

ls


and you will see a text file named

menu

3 - If you open it you will see something like this:


[begin] (Fluxbox-0.9.12)
[exec] (rxvt) {rxvt}
[exec] (firefox) {/opt/firefox-installer/firefox}
[exec] (mozilla) {mozilla}
[exec] (thunderbird) {thunder/thunderbird/thunderbird}
[submenu] (Terminals)
[exec] (xterm) {xterm}
[exec] (gnome-terminal) {gnome-terminal}
[exec] (rxvt) {rxvt}
[end]
[submenu] (Net)
[submenu] (Browsers)
[exec] (netscape) {netscape}
[exec] (mozilla) {mozilla}
[exec] (links) {rxvt -e links fluxbox.org}
[exec] (lynx) {rxvt -e lynx fluxbox.org}
[end]
[submenu] (IM)
[exec] (gaim) {gaim}
[end]


4 - Now you just need to edit the file, including, removing, etc.

Just look the way thigs are and do what you need. It is realy very simple, like in

[exec] (firefox) {/opt/firefox-installer/firefox}

[exec] , to run the program,
(firefox) , its name , or name you prefer :-)
{/opt/firefox-installer/firefox} and here the path

A simple and easy sintax.



About the other question, I can't help you. I don't know how much menory it needs, in relation to others.

But I know that my KDE takes a lot to open, close and etc, while the fluxbox is very faster (well, I 'fell' it is faster).

bye
 
Old 01-30-2006, 10:39 PM   #4
Swift&Smart
Member
 
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472

Original Poster
Rep: Reputation: 30
Ilgar,I really appreciate your help.

All you said works to me as expected.Fluxbox is faster because I have no icon on my desktop.The consumption of memory is about the same with Dropline GNOME I think.But definitely,fluxbox is way faster than GNOME.
 
Old 01-30-2006, 11:44 PM   #5
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
more on editing flux menus:

http://www.fluxbox.org/docbook/en/html/x745.html
 
Old 01-31-2006, 02:02 AM   #6
Ilgar
Senior Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 15.0, Slackwarearm 14.2
Posts: 1,157

Rep: Reputation: 237Reputation: 237Reputation: 237
Quote:
Originally Posted by Swift&Smart
Ilgar,I really appreciate your help.

All you said works to me as expected.Fluxbox is faster because I have no icon on my desktop.The consumption of memory is about the same with Dropline GNOME I think.But definitely,fluxbox is way faster than GNOME.
You're welcome . fluxbox is certainly very fast. Its memory footprint is also very little, surely less than that of Gnome. Of course, if you run Gnome and KDE programs under fluxbox, the required Gnome/Gtk/Qt/KDE libraries will be loaded into the memory, so the usage will go up. But the window manager itself consumes very little memory.
 
Old 01-31-2006, 02:17 AM   #7
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
I am too lazy to edit it by hand, I use FluxConf.

There are other programs out there that do the same thing, but I have had problems with others. For instance, whiteBOX corrupted my menu file 6 out of 10 times I ran it.
 
Old 01-31-2006, 03:08 AM   #8
Swift&Smart
Member
 
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472

Original Poster
Rep: Reputation: 30
Genesee,thanks for your useful link.

Ilgar,it's well-worth to try fluxbox.That's the WM which I like most.
 
Old 09-13-2009, 10:55 AM   #9
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by Genesee View Post
"404 - Not Found". Now at old.fluxbox.org
 
Old 09-13-2009, 11:12 AM   #10
wingevil
Member
 
Registered: Oct 2008
Distribution: slack32-13
Posts: 147

Rep: Reputation: 19
Quote:
Originally Posted by MS3FGX View Post
I am too lazy to edit it by hand, I use FluxConf.

There are other programs out there that do the same thing, but I have had problems with others. For instance, whiteBOX corrupted my menu file 6 out of 10 times I ran it.
Another tiny menu-editor for fluxbox is fme

http://fme.rhymux.info/download/


...and this was helpful for me

http://linux.die.net/man/1/fluxbox
http://fluxbox-wiki.org/index.php?title=Fluxbox-wiki

and the awesome fluxbox-wiki from sleekmason at www.sidux.com (section wiki)

Last edited by wingevil; 09-13-2009 at 11:15 AM.
 
Old 09-13-2009, 11:23 AM   #11
linuxpokernut
Member
 
Registered: Jul 2007
Distribution: Slackware 14
Posts: 237
Blog Entries: 8

Rep: Reputation: 59
This thread is awesome, I saw that you can edit the wallpaper. I can't wait till i get home to try it.
 
Old 09-13-2009, 12:12 PM   #12
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
If you wanna see some nice fluxbox work
go get Hag-Linux-0.1-20, a grml remaster
http://hag-linux.eu.org/

I'm making Canabix-Fluxbox Edition for Canabix uusers now
http://community.canabix.org/smf/index.php
LOL
check out the menu, made up of submenus

heres my main fluxbox menu

Code:
[begin] (Fluxbox)
  [include] (~/.fluxbox/root-menu)
  [include] (~/.fluxbox/fluxbox-menu)
  [separator]
  [include] (~/.fluxbox/hag-mount-menu)
  [include] (~/.fluxbox/hag-xrandr-menu)
  [include] (~/.fluxbox/hag-baseconf-menu)
  [separator]
  [include] (~/.fluxbox/hag-exit-menu)
[end]
heres root-menu(not finished

Code:
[begin]
  [submenu] (Root programs)
    [exec] (XTerm) {grml-exec-wrapper xterm} </usr/share/pixmaps/xterm-color_32x32.xpm>
        [exec] (Root Eterm) {sudo /usr/bin/Eterm} <>
        [exec] (Root Xterm) {sudo x-terminal-emulator} <>
        [exec] (Root Leafpad) {sudo grml-exec-wrapper leafpad} <>
        [exec] (PCManFM) {sudo /usr/bin/pcmanfm} <>' >> /root/.fluxbox/statistics && /usr/bin/pcmanfm} <>
        [exec] (Synaptic Package Manager) {sudo /usr/sbin/synaptic} </usr/share/synaptic/pixmaps/synaptic_32x32.xpm>
        [exec] (Rox) {sudo /usr/bin/rox} <>' >> /root/.fluxbox/statistics && /usr/bin/rox} <>
        [exec] (Gimp) {/usr/bin/gimp} </usr/share/pixmaps/gimp.xpm>
        [exec] (Midori) {midori} <>
        [exec] (Iceweasel) {iceweasel} </usr/share/pixmaps/iceweasel.xpm>
        [exec] (Gparted) {sudo /usr/sbin/gparted} <>
        [exec] (Links 2) {/usr/bin/links2 -g /usr/share/doc/grml-docs/startpage.html} </usr/share/pixmaps/links2.xpm>
        [exec] (Scrot 05)  {scrot -cd 5} <>
    [end]
  [end]
[end]
heres fluxbox-menu
oh, its actually too big
LOL

heres hag-mount-menu

Code:
[begin]
  [submenu] (Devices)
    [submenu] (/dev/fd0)
      [exec] (Mount) {mount /dev/fd0 2>/tmp/mounterror || hag-error-notify -f /tmp/mounterror && rm -f /tmp/mounterror} <>
      [exec] (Unmount) {umount /dev/fd0 2>/tmp/mounterror || hag-error-notify -f /tmp/mounterror && rm -f /tmp/mounterror} <>
    [end]
    [submenu] (/dev/external)
      [exec] (Mount) {mount /dev/external 2>/tmp/mounterror || hag-error-notify -f /tmp/mounterror && rm -f /tmp/mounterror} <>
      [exec] (Unmount) {umount /dev/external 2>/tmp/mounterror || hag-error-notify -f /tmp/mounterror && rm -f /tmp/mounterror} <>
    [end]
    [submenu] (/dev/external1)
      [exec] (Mount) {mount /dev/external1 2>/tmp/mounterror || hag-error-notify -f /tmp/mounterror && rm -f /tmp/mounterror} <>
      [exec] (Unmount) {umount /dev/external1 2>/tmp/mounterror || hag-error-notify -f /tmp/mounterror && rm -f /tmp/mounterror} <>
    [end]
    [submenu] (/dev/cdrom)
      [exec] (Mount) {mount /dev/cdrom 2>/tmp/mounterror || hag-error-notify -f /tmp/mounterror && rm -f /tmp/mounterror} <>
      [exec] (Unmount) {umount /dev/cdrom 2>/tmp/mounterror || hag-error-notify -f /tmp/mounterror && rm -f /tmp/mounterror} <>
    [end]
    [submenu] (/dev/dvd)
      [exec] (Mount) {mount /dev/dvd 2>/tmp/mounterror || hag-error-notify -f /tmp/mounterror && rm -f /tmp/mounterror} <>
      [exec] (Unmount) {umount /dev/dvd 2>/tmp/mounterror || hag-error-notify -f /tmp/mounterror && rm -f /tmp/mounterror} <>
    [end]
    [submenu] (/dev/sda1)
      [exec] (Mount) {mount /dev/sda1 2>/tmp/mounterror || hag-error-notify -f /tmp/mounterror && rm -f /tmp/mounterror} <>
      [exec] (Unmount) {umount /dev/sda1 2>/tmp/mounterror || hag-error-notify -f /tmp/mounterror && rm -f /tmp/mounterror} <>
    [end]
    [submenu] (/dev/sda3)
      [exec] (Mount) {mount /dev/sda3 2>/tmp/mounterror || hag-error-notify -f /tmp/mounterror && rm -f /tmp/mounterror} <>
      [exec] (Unmount) {umount /dev/sda3 2>/tmp/mounterror || hag-error-notify -f /tmp/mounterror && rm -f /tmp/mounterror} <>
    [end]
    [submenu] (/dev/sda4)
      [exec] (Mount) {mount /dev/sda4 2>/tmp/mounterror || hag-error-notify -f /tmp/mounterror && rm -f /tmp/mounterror} <>
      [exec] (Unmount) {umount /dev/sda4 2>/tmp/mounterror || hag-error-notify -f /tmp/mounterror && rm -f /tmp/mounterror} <>
    [end]
    [submenu] (/dev/sda6)
      [exec] (Mount) {mount /dev/sda6 2>/tmp/mounterror || hag-error-notify -f /tmp/mounterror && rm -f /tmp/mounterror} <>
      [exec] (Unmount) {umount /dev/sda6 2>/tmp/mounterror || hag-error-notify -f /tmp/mounterror && rm -f /tmp/mounterror} <>
    [end]
    [submenu] (/dev/sda7)
      [exec] (Mount) {mount /dev/sda7 2>/tmp/mounterror || hag-error-notify -f /tmp/mounterror && rm -f /tmp/mounterror} <>
      [exec] (Unmount) {umount /dev/sda7 2>/tmp/mounterror || hag-error-notify -f /tmp/mounterror && rm -f /tmp/mounterror} <>
    [end]
    [submenu] (/dev/sda8)
      [exec] (Mount) {mount /dev/sda8 2>/tmp/mounterror || hag-error-notify -f /tmp/mounterror && rm -f /tmp/mounterror} <>
      [exec] (Unmount) {umount /dev/sda8 2>/tmp/mounterror || hag-error-notify -f /tmp/mounterror && rm -f /tmp/mounterror} <>
    [end]
    [submenu] (/dev/cdrom1)
      [exec] (Mount) {mount /dev/cdrom1 2>/tmp/mounterror || hag-error-notify -f /tmp/mounterror && rm -f /tmp/mounterror} <>
      [exec] (Unmount) {umount /dev/cdrom1 2>/tmp/mounterror || hag-error-notify -f /tmp/mounterror && rm -f /tmp/mounterror} <>
    [end]
    [submenu] (/dev/dvd1)
      [exec] (Mount) {mount /dev/dvd1 2>/tmp/mounterror || hag-error-notify -f /tmp/mounterror && rm -f /tmp/mounterror} <>
      [exec] (Unmount) {umount /dev/dvd1 2>/tmp/mounterror || hag-error-notify -f /tmp/mounterror && rm -f /tmp/mounterror} <>
    [end]
  [end]
[end]
it re-invents itself from whatever itas running from

heres hag-xrandr-menu
Code:
[begin]
  [submenu] (Set resolution)
    [exec] (1024x768) {xrandr -s 1024x768  2>/tmp/xrandrerror || hag-error-notify -f /tmp/xrandrerror && rm -f /tmp/xrandrerror && fbsetbg -l} <>
    [exec] (928x696) {xrandr -s 928x696  2>/tmp/xrandrerror || hag-error-notify -f /tmp/xrandrerror && rm -f /tmp/xrandrerror && fbsetbg -l} <>
    [exec] (896x672) {xrandr -s 896x672  2>/tmp/xrandrerror || hag-error-notify -f /tmp/xrandrerror && rm -f /tmp/xrandrerror && fbsetbg -l} <>
    [exec] (840x525) {xrandr -s 840x525  2>/tmp/xrandrerror || hag-error-notify -f /tmp/xrandrerror && rm -f /tmp/xrandrerror && fbsetbg -l} <>
    [exec] (800x600) {xrandr -s 800x600  2>/tmp/xrandrerror || hag-error-notify -f /tmp/xrandrerror && rm -f /tmp/xrandrerror && fbsetbg -l} <>
    [exec] (720x450) {xrandr -s 720x450  2>/tmp/xrandrerror || hag-error-notify -f /tmp/xrandrerror && rm -f /tmp/xrandrerror && fbsetbg -l} <>
    [exec] (700x525) {xrandr -s 700x525  2>/tmp/xrandrerror || hag-error-notify -f /tmp/xrandrerror && rm -f /tmp/xrandrerror && fbsetbg -l} <>
    [exec] (680x384) {xrandr -s 680x384  2>/tmp/xrandrerror || hag-error-notify -f /tmp/xrandrerror && rm -f /tmp/xrandrerror && fbsetbg -l} <>
    [exec] (640x512) {xrandr -s 640x512  2>/tmp/xrandrerror || hag-error-notify -f /tmp/xrandrerror && rm -f /tmp/xrandrerror && fbsetbg -l} <>
    [exec] (640x480) {xrandr -s 640x480  2>/tmp/xrandrerror || hag-error-notify -f /tmp/xrandrerror && rm -f /tmp/xrandrerror && fbsetbg -l} <>
    [exec] (576x432) {xrandr -s 576x432  2>/tmp/xrandrerror || hag-error-notify -f /tmp/xrandrerror && rm -f /tmp/xrandrerror && fbsetbg -l} <>
    [exec] (512x384) {xrandr -s 512x384  2>/tmp/xrandrerror || hag-error-notify -f /tmp/xrandrerror && rm -f /tmp/xrandrerror && fbsetbg -l} <>
    [exec] (400x300) {xrandr -s 400x300  2>/tmp/xrandrerror || hag-error-notify -f /tmp/xrandrerror && rm -f /tmp/xrandrerror && fbsetbg -l} <>
    [exec] (320x240) {xrandr -s 320x240  2>/tmp/xrandrerror || hag-error-notify -f /tmp/xrandrerror && rm -f /tmp/xrandrerror && fbsetbg -l} <>
  [end]
[end]
heres the exit menu

Code:
[begin]
    [reconfig] (Reconfigure)
    [restart] (Restart)
    [exec] (Exit) {hag-exit-fluxbox} <>
[end]
it all works off scripts and stuff, symlinks
heres the end results

http://multidistro.com/canabix/canaflux1.png

http://multidistro.com/canabix/apps.png

http://multidistro.com/canabix/root.png

http://multidistro.com/canabix/devices.png

I should ahve it ready for download maybe tomorrow
 
  


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
How to edit the menu of KDE? shadkong Linux - General 3 04-08-2005 07:35 AM
Edit K Menu not working! keithieopia Linux - Software 1 02-21-2005 03:00 AM
How do I edit the Gnome Menu? cgoerner Linux - Newbie 2 06-17-2004 05:58 AM
Edit mouse menu VanMortel Linux - Newbie 0 04-03-2004 03:41 PM
kde menu edit shadowhunter Linux - General 1 09-30-2003 05:35 PM

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

All times are GMT -5. The time now is 11:57 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