Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
|
 |
|
09-24-2009, 10:09 AM
|
#16
|
LQ 5k Club
Registered: Sep 2009
Posts: 6,443
Original Poster
|
I logged on to FVWM, opened an xterm, typed "nm-applet", opened another xterm, typed "firefox", and now I am posting this running under FVWM!
I still would like a system tray application, it seems convenient.
I also wonder if there is some kind of way to have a script run on startup, that can start the system tray, nm-applet, GKrellM, etc.
|
|
|
09-24-2009, 10:14 AM
|
#17
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
It's "stalone", stalonetray. This is the home page,
http://stalonetray.sourceforge.net/
But most likely, it's between the standard set of packages of your distro, so try your package manager first. There are several more if you can't find that on your package manager: wmsystray, trayer, docker or peksystray.
|
|
|
09-24-2009, 10:18 AM
|
#18
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
Quote:
Originally Posted by MTK358
I logged on to FVWM, opened an xterm, typed "nm-applet", opened another xterm, typed "firefox", and now I am posting this running under FVWM!
I still would like a system tray application, it seems convenient.
I also wonder if there is some kind of way to have a script run on startup, that can start the system tray, nm-applet, GKrellM, etc.
|
That's "StartFunction", you can add everything you want in there. Open your ~/.fvwm/config file in a text editor and start adding things.
Code:
DestroyFunc StartFunction
AddToFunc StartFunction
+ I Exec exec stalonetray
+ I Schedule 2000 Exec exec nm-applet
+ I Exec exec gkrellm
And so on. You should really read the fvwm man page. Everything is in there 
Last edited by i92guboj; 09-24-2009 at 10:19 AM.
|
|
|
09-24-2009, 10:23 AM
|
#19
|
LQ 5k Club
Registered: Sep 2009
Posts: 6,443
Original Poster
|
"yum install stalonetray" worked. it is showing a little grey box with the nm-applet icon in it.
|
|
|
09-24-2009, 10:27 AM
|
#20
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
Yes. You probably want to research into FvwmButtons and FvwmIconMan next (both have a proper man page). FvwmIconMan is a task manager, it can serve as a taskbar. You can use FvwmButtons as a container to embed (swallow in fvwm terminology) FvwmIconMan and stalonetray, kind of emulating the typical desktop panel if that's what you want.
|
|
|
09-24-2009, 11:52 AM
|
#21
|
LQ 5k Club
Registered: Sep 2009
Posts: 6,443
Original Poster
|
I have no idea how to set it up. The main problem is that everywhere the keep mensioning a ".fvwm2rc" file in yout home dir, but in mine, I have a .fvwm directory with many, many config files in it.
|
|
|
09-24-2009, 12:09 PM
|
#22
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
Quote:
Originally Posted by MTK358
I have no idea how to set it up. The main problem is that everywhere the keep mensioning a ".fvwm2rc" file in yout home dir, but in mine, I have a .fvwm directory with many, many config files in it.
|
Historically, fvwm has been configured in a number of places. They all are listed in the fvwm man page
Right, now, the preferred place is $HOME/.fvwm/config. The name of the file is irrelevant, except to determine the order for the lookup (only the first config file that is found will be used, a thing that you need to keep in mind).
Second, you are not supposed to have an ~/.fvwm/config file, you are the one to create it. Fvwm has never been -and probably will never be- a wm that can be configured using point & click. To access its full potential you need to read man pages and be prepared to write the config yourself.
Alternatively, you can use either fvwm-themes or fvwm-crystal, which are nothing but pre-made complex configurations for fvwm (I know very little about these).
I have no idea what do you have in your ~/.fvwm/ directory, it might be some leftover of some experiment that you don't remember, maybe you downloaded some config from another user or something. Or maybe it's something from fvwm-themes or fvwm-crystal. I have no way to know how did that came to be there.
A vanilla fvwm screen looks like a grey background, and the only thing that you can do on it is to click on the root window to bring up a menu which has 6 options.
The rest, needs to be configured by you using ~/.fvwm/config. This guide perfectly guides you though the process of setting up most basic elements:
http://www.zensites.net/fvwm/guide/index.html
Also, you should really start using the fvwm man page.
|
|
|
09-24-2009, 01:01 PM
|
#23
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
You can try this as a starting point:
Code:
DesktopSize 6x1
*FvwmIconMan: Font "xft:DejaVu Sans:size=6:style=bold:encoding=iso10646-1"
*FvwmIconMan: DrawIcons
*FvwmIconMan: MaxButtonWidth 200
*FvwmIconMan: ReliefThickness 0
*FvwmIconMan: ButtonGeometry 200x32
*FvwmIconMan: ManagerGeometry 1x1
*FvwmPager: Font none
DestroyModuleConfig FvwmButtons: *
*FvwmButtons: Rows 1
*FvwmButtons: Columns 32
*FvwmButtons: Frame 1
*FvwmButtons: (2x1, Title "Menu", Action (Mouse 1) "Menu MenuFvwmRoot")
*FvwmButtons: (24x1, Swallow FvwmIconMan "Module FvwmIconMan")
*FvwmButtons: (4x1, Swallow FvwmPager 'Module FvwmPager 0 0')
*FvwmButtons: (2x1, Swallow(UseOld) stalonetray 'Exec exec stalonetray')
DestroyFunc StartFunction
AddToFunc StartFunction
+ I Module FvwmButtons -g $[vp.width]x32+0-0
Style FvwmButtons FixedSize, FixedPosition, HandleWidth 0, BorderWidth 0, !Title
Style * Font "xft:DejaVu Sans:size=8:style=bold:encoding=iso10646-1"
Style * IconFont "xft:DejaVu Sans:size=7:encoding=iso10646-1"
Note that, the font is the one I use, you might need to change it, it won't even work (default to "fixed") if you don't have DejaVu installed. Second: you might need to adapt the stalonetray command to whatever you use to launch stalonetray. I don't have it installed so I am not sure.
This simple configuration should show a bar on the bottom of your screen with a button to reach the default fvwm menu, a task bar, a desktop pager and the system tray on the bottom right. Copy this text, and paste it as a whole in ~/.fvwm/config, if that file already exist make sure you delete it before or move it elsewhere (I'd just remove everything into ~/.fvwm/ if you plan to create your own config.
|
|
|
09-24-2009, 02:07 PM
|
#24
|
LQ 5k Club
Registered: Sep 2009
Posts: 6,443
Original Poster
|
What's the difference between "deleting", "destroying", and "closing" a window? Which one should I use to exit a program, like the close button in Windows and Metacity?
|
|
|
09-24-2009, 02:17 PM
|
#25
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
Normally you want "Close".
I haven't looked into it, but I think that it just uses the WM_DELETE_WINDOW protocol to ask a window to gracefully close. If the application doesn't understand it then the window is Deleted as with the Delete command. However a window could understand but ignore Close and it would not be Deleted, which is why Delete exists. You usually don't need Delete unless you are using old or very odd software.
About Destroy, in my experience it's mostly like using "kill -SIGKILL" or xkill. It will force the application to close by any possible means, so it's "the strongest" of the family.
Some people, when binding the mouse to the titlebars buttons, bind each button of the mouse to one of these three commands, so you can have the three using a single titlebar button.
Last edited by i92guboj; 09-24-2009 at 02:22 PM.
|
|
|
All times are GMT -5. The time now is 08: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
|
|