LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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

Reply
 
LinkBack Search this Thread
Old 09-24-2009, 10:09 AM   #16
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713

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.
 
Old 09-24-2009, 10:14 AM   #17
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,029

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
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.
 
Old 09-24-2009, 10:18 AM   #18
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,029

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
Quote:
Originally Posted by MTK358 View Post
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.
 
Old 09-24-2009, 10:23 AM   #19
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
"yum install stalonetray" worked. it is showing a little grey box with the nm-applet icon in it.
 
Old 09-24-2009, 10:27 AM   #20
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,029

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
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.
 
Old 09-24-2009, 11:52 AM   #21
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
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.
 
Old 09-24-2009, 12:09 PM   #22
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,029

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
Quote:
Originally Posted by MTK358 View Post
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.
 
Old 09-24-2009, 01:01 PM   #23
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,029

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
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.
 
Old 09-24-2009, 02:07 PM   #24
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
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?
 
Old 09-24-2009, 02:17 PM   #25
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,029

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
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.
 
  


Reply

Tags
fvwm, gnome, manager, metacity, replace, window


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
fvwm & fvwm-crystal? festhead Linux - Desktop 1 09-23-2007 09:49 AM
transparency not correct with fvwm + fvwm-crystal + radeon hedpe Linux - Desktop 0 01-30-2007 07:59 PM
clock not working in fvwm with fvwm-crystal hedpe Linux - Software 0 09-13-2005 08:04 PM
FVWM Install FC4 Test 1 khsater Fedora 3 03-26-2005 05:29 PM
2 fvwm processes with 2 displays, only want one fvwm enzo250gto Linux - Software 0 01-27-2005 04:50 PM


All times are GMT -5. The time now is 10:15 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration