Gnome applets

If it doesn't seem to have anything to do with FVWM directly it should be asked here.

Gnome applets

Postby elwe » Wed Oct 24, 2007 12:15 am

Hello,

does anybody knows how to use gnome applets in fvwm2?

Thanks in advance,
Elwe
elwe
Kitten
Kitten
 
Posts: 2
Joined: Wed Oct 24, 2007 12:12 am

Re: Gnome applets

Postby thomasadam » Wed Oct 24, 2007 12:16 am

elwe wrote:Hello,

does anybody knows how to use gnome applets in fvwm2?


You just... use them.

What makes you think they need special treatment? Some applets aren't standalone (requiring gnome-panel, for instance.)

-- Thomas Adam
User avatar
thomasadam
Administrator
Administrator
 
Posts: 2996
Joined: Mon Nov 08, 2004 1:12 am
Location: England

Re: Gnome applets

Postby elwe » Tue Oct 30, 2007 12:20 am

So, I'm back again. Thanks for your answer. I haven't tested other applets, I just want to run nm-applet. Now I know, that it needs a tray to become visible. I found the program ktray, which starts a standalone tray, in which nm-applet appears. Fine!

Now I want to swallow the ktray in my FvwmButtons:
*FvwmButtons: ( Swallow (UseOld) ktray 'Exec ktray & nm-applet &')

ktray is started, but sometimes the ktray-window is not swallowed. Maybe because of the change of the window size?

Do you have an idea?

Thanks in advance,
Elwe
elwe
Kitten
Kitten
 
Posts: 2
Joined: Wed Oct 24, 2007 12:12 am

Re: Gnome applets

Postby thomasadam » Tue Oct 30, 2007 12:22 am

elwe wrote:So, I'm back again. Thanks for your answer. I haven't tested other applets, I just want to run nm-applet. Now I know, that it needs a tray to become visible. I found the program ktray, which starts a standalone tray, in which nm-applet appears. Fine!

Now I want to swallow the ktray in my FvwmButtons:
*FvwmButtons: ( Swallow (UseOld) ktray 'Exec ktray & nm-applet &')


Try Stalonetray instead.

-- Thomas Adam
User avatar
thomasadam
Administrator
Administrator
 
Posts: 2996
Joined: Mon Nov 08, 2004 1:12 am
Location: England

Re: Gnome applets

Postby Treadstone » Fri Nov 02, 2007 1:15 pm

Or trayer - on my computer works perfectly
Treadstone
Kitten
Kitten
 
Posts: 24
Joined: Wed Sep 27, 2006 10:07 pm

Re: Gnome applets

Postby thomasadam » Fri Nov 02, 2007 2:29 pm

Treadstone wrote:Or trayer - on my computer works perfectly


It has a lot of quirks though. Stalonetray is the lesser of two evils in this case.

-- Thomas Adam
User avatar
thomasadam
Administrator
Administrator
 
Posts: 2996
Joined: Mon Nov 08, 2004 1:12 am
Location: England

Re: Gnome applets

Postby mimosinnet » Fri Nov 02, 2007 9:17 pm

Excellent hint! This is one of the things that were missing in my desktop.

I have stalonetray working with the following settings:
Code: Select all
geometry -0+0
grow_gravity W
icon_gravity NW
transparent true


In the man page there is this option:
window_type: Sets the EWMH–compliant type of tray‘s window. Possible values for type: dock, normal, toolbar, utility.


I wonder if this makes any difference in fvwm.

Cheers!
User avatar
mimosinnet
Pussycat
Pussycat
 
Posts: 77
Joined: Thu Jul 12, 2007 3:54 am

Re: Gnome applets

Postby thomasadam » Fri Nov 02, 2007 9:20 pm

mimosinnet wrote:
window_type: Sets the EWMH–compliant type of tray‘s window. Possible values for type: dock, normal, toolbar, utility.


I wonder if this makes any difference in fvwm.


Setting it to normal will suffice.

-- Thomas Adam
User avatar
thomasadam
Administrator
Administrator
 
Posts: 2996
Joined: Mon Nov 08, 2004 1:12 am
Location: England

Re: Gnome applets

Postby mimosinnet » Sat Nov 03, 2007 1:48 pm

I was having an issue when starting stalonetray. I had it in startfunction:
Code: Select all
AddToFunc    StartFunction
+ I Exec exec stalonetray


It did not start with fvwm, but it did if I restarted fvwm afterwards. From this thread I got the tip:
Code: Select all
AddToFunc    StartFunction
+ I Schedule 800 Exec exec stalonetray


Why it is "Schedule 800" needed?

As I find this a rellevant issue, I have added this information in the gentoo wiki FVWM_Advanced, and I would appreciate if somebody could check its accuracy.

Cheers!
User avatar
mimosinnet
Pussycat
Pussycat
 
Posts: 77
Joined: Thu Jul 12, 2007 3:54 am

Re: Gnome applets

Postby thomasadam » Sat Nov 03, 2007 2:03 pm

mimosinnet wrote:I was having an issue when starting stalonetray. I had it in startfunction:
Code: Select all
AddToFunc    StartFunction
+ I Exec exec stalonetray


It did not start with fvwm, but it did if I restarted fvwm afterwards. From this thread I got the tip:
Code: Select all
AddToFunc    StartFunction
+ I Schedule 800 Exec exec stalonetray


Why it is "Schedule 800" needed?


Because if you're using it in transparent mode (i,.e., it defines transparency) or it's being swallowed into FvwmButtons, you sometimes need to ensure that the background image is loaded first, before stalonetray is loaded, otherwise it gets into a bit of a mess and dies.

Of course, if you're swallowing it in FvwmButtons, the best way of doing this is:

Code: Select all
*FvwmFoo: (1x1, Swallow (NoClose, UseOld) `stalonetray` `Exec exec stalonetray`)


Or what have you to use the old one of it's available. and to allow it to persist if FVWM restarts, etc.

mimosinnet wrote:As I find this a rellevant issue, I have added this information in the gentoo wiki FVWM_Advanced, and I would appreciate if somebody could check its accuracy.


I'll take a look.

-- Thomas Adam
User avatar
thomasadam
Administrator
Administrator
 
Posts: 2996
Joined: Mon Nov 08, 2004 1:12 am
Location: England


Return to Other questions

Who is online

Users browsing this forum: No registered users and 1 guest

cron