Slackware This Forum is for the discussion of Slackware Linux.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
01-28-2006, 07:43 AM
#1
Member
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472
Rep:
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.
01-28-2006, 08:03 AM
#2
Senior Member
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 15.0, Slackwarearm 14.2
Posts: 1,157
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.
01-28-2006, 04:14 PM
#3
Member
Registered: Nov 2004
Location: Zona Leste, Sao Paulo, Brazil, South America, Alpha Quadrant, Milk Way
Distribution: Slackware 14.0
Posts: 140
Rep:
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
01-30-2006, 10:39 PM
#4
Member
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472
Original Poster
Rep:
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.
01-30-2006, 11:44 PM
#5
Member
Registered: Dec 2002
Distribution: Slackware
Posts: 927
Rep:
01-31-2006, 02:02 AM
#6
Senior Member
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 15.0, Slackwarearm 14.2
Posts: 1,157
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.
01-31-2006, 02:17 AM
#7
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852
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.
01-31-2006, 03:08 AM
#8
Member
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472
Original Poster
Rep:
Genesee ,thanks for your useful link.
Ilgar ,it's well-worth to try fluxbox.That's the WM which I like most.
09-13-2009, 10:55 AM
#9
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Quote:
Originally Posted by
Genesee
"404 - Not Found". Now at
old.fluxbox.org
09-13-2009, 11:23 AM
#11
Member
Registered: Jul 2007
Distribution: Slackware 14
Posts: 237
Rep:
This thread is awesome, I saw that you can edit the wallpaper. I can't wait till i get home to try it.
09-13-2009, 12:12 PM
#12
LQ Guru
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573
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
All times are GMT -5. The time now is 11:57 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News