LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-17-2004, 04:11 PM   #1
jdier
Member
 
Registered: May 2004
Location: US
Distribution: Ubuntu - 12.04 LTS
Posts: 54

Rep: Reputation: 15
Question Blackbox menu editing and customizing


I am new to linux and trying to learn as I go.

I have tried out KDE, Gnome, and Xfce4. Of the three I like Xfce4 the most. What I really want though is the ability to set up a desktop environment 100% based on what I do at my desktop.

I have started working with blackbox which I like a lot, but I need some help with customizing it a bit.

For starters I need some help figuring out how to add the 5-6 primary apps I use into the right click menu system, and eliminating some of the things I do not use.

Basically I use:

Mozilla
Evolution
Gaim
Gimp
OOo
XMMS
and a terminal.

Could anyone point me in the right direction (remembering that I am new to editing config files and the command line?)

Thanks in advance to any who help.

Jim
 
Old 08-17-2004, 04:38 PM   #2
superbondbond
Member
 
Registered: Nov 2002
Posts: 668

Rep: Reputation: 30
I don't use blackbox myself, but in fluxbox (which is based on blackbox) the menu is a simple text file located in ~/.fluxbox/menu

It's pretty self-explanatory once you open it.

hope that helps
 
Old 08-17-2004, 04:42 PM   #3
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
Your file is most likely ~/.blackbox/menu. If you're using the systemwide menu, do "locate blackbox | grep menu" to find it and copy it to your $HOME/.blackbox directory.

Editing is pretty simple....the main things to remember are submenus and commands, and submenus need to be closed with "[end]".
a simple example is:
[exec] (Mozilla) {mozilla}

or:
[submenu] (internet) {}
[exec] (Mozilla) {mozilla}
[end]

[exec] tells Blackbox that this item is a command
(Mozilla) is what will be displayed in the menu
{mozilla} is the command used to launch the program
 
Old 08-17-2004, 05:43 PM   #4
Fartwiz
Member
 
Registered: May 2004
Location: Wiltshire UK
Distribution: SuSE 9.2 AMD64
Posts: 50

Rep: Reputation: 15
if you want to change your menu for all users, the file you want will probably be :

/usr/share/blackbox/menu

for editing see mikshaw's explanation above.

I used to use blackbox, im a big fan of fat free windowmanagers. But now im a true fluxbox convert, you should try it out.
Also you could try some of the configuration tools available for blackbox/fluxbox. try opening a terminal and typing:

bbconf

enjoy

ps. before you ask how to set a wallpaper, this seems to get everyone at first (took me ages to figure out) open a terminal again and type

man bsetbg
 
Old 08-17-2004, 09:14 PM   #5
jdier
Member
 
Registered: May 2004
Location: US
Distribution: Ubuntu - 12.04 LTS
Posts: 54

Original Poster
Rep: Reputation: 15
Question

I am off and running! Thanks to all.

My new menu is below but first, I have a few other questions:

For some reason I cannot get bbconf to run

[jdier@linuxbox jdier]$ bbconf
-bash: bbconf: command not found
[jdier@linuxbox jdier]$

As root:

[root@linuxbox jdier]# bbconf
bash: bbconf: command not found
[root@linuxbox jdier]#

------------------------------

Curious if anyone could point me in the direction of some easy way to switch between open applications.... I do not like a bar with applications on it, looking for something more like the middle click of Xfce4. I would like to replace the blackbox middle click with that.

_______________________

Finally, anyway to change the system font? First of all, it is very difficult to read (so small) and secondly it is not too pleasing to the eye.


--------
menu
--------
Here is where I am so far:

[begin] (Blackbox)
[exec] (Mozilla Navigator) {mozilla}
[exec] (Evolution email) {evolution}
[exec] (Instant Messenging) {gaim}
[exec] (Music) {xmms}
[exec] (xterm) {xterm -ls}
[exec] (Gnome Term) {gnome-terminal}
[exec] (KDE Term) {konsole}

[submenu] (Office Apps)
[exec] (OOo Writer) {oowriter}
[exec] (OOo Spreadsheet) {oocalc}
[exec] (OOo Presentation) {ooimpress}
[end]

[submenu] (Graphics)
[exec] (The GIMP) {gimp}
[exec] (Tux Paint) {tuxpaint}
[end]

[submenu] (System Tools)
[exec] (Sound Card) {system-config-soundcard}
[exec] (Tux Paint) {tuxpaint}
[end]

[submenu] (X Utilities)
[exec] (Xfontsel) {xfontsel}
[exec] (Xman) {xman}
[exec] (Xcalc) {xcalc}
[exec] (Xload) {xload}
[end]

[submenu] (Styles) {Choose a style...}
[stylesdir] (/usr/share/blackbox/styles)
[end]

[workspaces] (Workspace List)
[config] (Configuration)

[reconfig] (Reconfigure)
[restart] (Restart)

[exit] (Exit)
[end]
-----------------------------


Thanks again for all the help.

Jim
 
Old 08-18-2004, 06:59 AM   #6
Fartwiz
Member
 
Registered: May 2004
Location: Wiltshire UK
Distribution: SuSE 9.2 AMD64
Posts: 50

Rep: Reputation: 15
for switching apps, you can also use the middle mouse button (or click the wheel) to bring up the window list. But i would seriously recomend trying fluxbox, it has the option to "tab" windows. ie: say you have a terminal a browser and your mail program open, by dragging one window with the middle button onto another, it will group all windows together with a set of tabs at the top making it a breeze to switch apps.
As for the font size/face, you can adjust this in the style file :

/usr/share/blackbox/styles

have a look trhough the style your using and try to spot all the font entries
As i said if you like the concept of blackbox, try fluxbox, it's very similar except it has newer code and a bit more functionality.

cheers.
 
Old 08-18-2004, 10:12 AM   #7
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
I'm going to guess that using Alt+Tab will switch between windows, but I haven't used Blackbox in ages.
 
Old 08-18-2004, 10:22 AM   #8
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
Also to select a font use xfontsel or some dist. it is fontsel,you can paste it with the middle button.
 
Old 08-18-2004, 11:19 AM   #9
Fartwiz
Member
 
Registered: May 2004
Location: Wiltshire UK
Distribution: SuSE 9.2 AMD64
Posts: 50

Rep: Reputation: 15
Just tried Alt+Tab in Blackbox. doesnt work im afraid.
 
Old 08-18-2004, 12:46 PM   #10
jdier
Member
 
Registered: May 2004
Location: US
Distribution: Ubuntu - 12.04 LTS
Posts: 54

Original Poster
Rep: Reputation: 15
Question

I am so new that installing stuff is still hours of messing around for me.

I was able to get this far in blackbox because I was able to YUM it all in one command. I cannot get fluxbox installed with YUM.

Could anyone point me in the direction of somewhere I could get some help installing and configuring fluxbox

Remember, I am still really new to all the command line stuff (but trying my darndest to learn!!!)

Thanks for everything so far.

Jim
 
Old 08-18-2004, 02:00 PM   #11
mjjzf
Member
 
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Rep: Reputation: 39
keyboard shortcuts?

Actually, if you only use these few programs, you may want to set up keyboard shortcuts instead. Here are the contents of my ~/.fluxbox/keys file:
Code:
Mod1 Tab :NextWindow
Mod1 Shift Tab :PrevWindow
Mod1 F1 :ExecCommand /usr/X11R6/bin/rxvt
Mod1 F2 :ExecCommand /usr/X11R6/bin/fbrun
Mod1 F3 :ExecCommand firefox
Mod1 F4 :ExecCommand evolution
Mod1 F5 :ExecCommand gaim
Mod1 F6 :ExecCommand gftp
Mod1 F7 :ExecCommand juk
Mod1 F8 :ExecCommand k3b
Mod1 F9 :ExecCommand oowriter
Mod1 F10 :ExecCommand screem
Mod1 F11 :ExecCommand kaffeine
Mod1 F12 :ExecCommand konqueror --profile filemanagement
- as the Mod1 key is the Alt key, this setup changes program windows with Alt+Tab, and the programs are set up as shortcuts ranging from Alt+F1 to Alt+F12. More about setting up the keyboard shortcuts here.

Last edited by mjjzf; 08-18-2004 at 02:55 PM.
 
1 members found this post helpful.
Old 08-18-2004, 02:02 PM   #12
jdier
Member
 
Registered: May 2004
Location: US
Distribution: Ubuntu - 12.04 LTS
Posts: 54

Original Poster
Rep: Reputation: 15
Just got the rpm for flux box and have it up and running.

This is nice.

If anyone has any tips or tricks pages for getting things like a pager working, it would be appreciated.

Also any info on setting desktop image and getting the slit working...

Thanks,

Jim
 
Old 08-18-2004, 02:11 PM   #13
Fartwiz
Member
 
Registered: May 2004
Location: Wiltshire UK
Distribution: SuSE 9.2 AMD64
Posts: 50

Rep: Reputation: 15
for a background image, type this into a terminal :

fsetbg -f /path/to/your/image.jpg

there are a few additional packages that you can download from

http://www.fluxbox.org

i believe there is a pager applet there. Also a lot of info on configuring and using fluxbox.
alternatively you can use the blackbox pager as you probably have it already. open a terminal and type :

bbpager -w

the "-w" option means withdrawn and will place it in the slit for you. The slit is only visible when there is something in it.

enjoy.
 
Old 08-18-2004, 02:16 PM   #14
mjjzf
Member
 
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Rep: Reputation: 39
@ jdier - As for setting the background, I edited the file ~/.fluxbox/init
I inserted the line
Code:
session.screen0.rootCommand: fbsetbg -f ~/Documents/billeder/os-tux.jpg
(I should add that billeder means pictures in Danish)
I messed around with the startup file, but could never make it work. I got this tip, and it works. My faithful os-tux.jpg is my encouraging background now.
Not quite sure what you mean by pager - that can mean a lot of things, working with WMs...

Last edited by mjjzf; 08-18-2004 at 02:18 PM.
 
Old 01-28-2006, 03:06 PM   #15
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
Thank you for this discussion. It got me started on customizing my Fluxbox menu with an editor. (I had already discovered the fluxbox generate menu script.
 
  


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
Customizing the Xfce pop-up menu Avelaval Slackware 2 03-20-2005 12:30 PM
customizing GNOME application menu ParticleHunter Linux - General 11 09-09-2004 03:22 PM
customizing KDE Panel and Right Click Menu frostedegg Linux - General 1 09-07-2004 07:22 AM
customizing menu in kde 3.1 neri Linux - Software 1 03-20-2004 02:55 PM
Customizing KDE Start Menu ravykanth Linux - Newbie 1 10-21-2003 03:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:08 PM.

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