LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to install fvwm? (https://www.linuxquestions.org/questions/linux-software-2/how-to-install-fvwm-757117/)

MTK358 09-24-2009 10:09 AM

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.

i92guboj 09-24-2009 10:14 AM

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.

i92guboj 09-24-2009 10:18 AM

Quote:

Originally Posted by MTK358 (Post 3695618)
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 ;)

MTK358 09-24-2009 10:23 AM

"yum install stalonetray" worked. it is showing a little grey box with the nm-applet icon in it.

i92guboj 09-24-2009 10:27 AM

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.

MTK358 09-24-2009 11:52 AM

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.

i92guboj 09-24-2009 12:09 PM

Quote:

Originally Posted by MTK358 (Post 3695738)
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.

i92guboj 09-24-2009 01:01 PM

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.

MTK358 09-24-2009 02:07 PM

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?

i92guboj 09-24-2009 02:17 PM

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.


All times are GMT -5. The time now is 12:47 PM.