Re: FVWM: Application icons in panel and icon man

2010-02-09 Thread Nathan Hüsken
On 02/09/2010 10:30 AM, Thomas Adam wrote:
> On 9 February 2010 07:33, Nathan Hüsken  wrote:
>   
>> OK, I can redefine the icon for those applications.
>> I understand, firefox and co. have no obligation to define their icon.
>> But it still amazes me, that they do not.
>> 
> But they tend to.  Look:
>
> _NET_WM_ICON
>
> Most applications,  if they define this will allow FVWM to use them.
> You can use "xprop" to find out.Read up on:
>
> EWMHDonateIcon
> EWMHDonateMiniIcon
>
> ... in the FVWM man page.
>
>   
>> I am also wondering: Can you confirm that firefox,thinderbird,pidgin and
>> chromium do not define an Icon? Otherwise something might be wrong with
>> my installation ...
>> 
> See above.
>
> -- Thomas Adam
>   
Well, maybe it is not that many applications. I will define icons for
them. Thanks!
Nathan



Re: FVWM: Application icons in panel and icon man

2010-02-09 Thread Thomas Adam
On 9 February 2010 07:33, Nathan Hüsken  wrote:
> OK, I can redefine the icon for those applications.
> I understand, firefox and co. have no obligation to define their icon.
> But it still amazes me, that they do not.

But they tend to.  Look:

_NET_WM_ICON

Most applications,  if they define this will allow FVWM to use them.
You can use "xprop" to find out.Read up on:

EWMHDonateIcon
EWMHDonateMiniIcon

... in the FVWM man page.

> I am also wondering: Can you confirm that firefox,thinderbird,pidgin and
> chromium do not define an Icon? Otherwise something might be wrong with
> my installation ...

See above.

-- Thomas Adam



Re: FVWM: Application icons in panel and icon man

2010-02-08 Thread Nathan Hüsken
On 02/08/2010 10:08 PM, Thomas Adam wrote:
> On Mon, Feb 08, 2010 at 09:11:51PM +0100, Nathan H?sken wrote:
>   
>> On 02/08/2010 09:02 PM, Thomas Adam wrote:
>> 
>>> On Mon, Feb 08, 2010 at 08:53:25PM +0100, Nathan H?sken wrote:
>>>   
>>>   
 Hi,

 I am using fvwm for not to much time, and I like it very much. Thanks
 for the great work!

 What is nagging me: besides urxvt and gvim, every application is shown
 with the standard rotatet square icon.
 How can I change it?
 
 
>>> I think you want:
>>>
>>> *FvwmIconMan: DrawIcons Always
>>>
>>> ... and note theat unless the application defines for itself an icon, you'll
>>> want to set a style on the application to define the miniicon.
>>>
>>> -- Thomas Adam
>>>   
>>>   
>> Hi,
>> Thanks for the fast reply.
>> *FvwmIconMan: DrawIcons Always
>> did not help, its still almost always the not-so-nice rotated square.
>> Maybe the applications do not define themeselfs the icons ...
>>
>> What could be the reoson, that applications like chromium, firefox,
>> thunderbird do not define their icons?
>> 
> They're under no obligation to.  Welcome to defining your own icon styles.
>   
Hi,

OK, I can redefine the icon for those applications.
The Problem I have with that is: I can do this now. But I at some moment
I would like to end up with an fvwm config, that is completly fine. But
if I then install a new application, I have to define a new icon ...

I understand, firefox and co. have no obligation to define their icon.
But it still amazes me, that they do not.

Under other wms (or better under xfce i.E.) these apps have icons. Well,
since they are pretty standard, it could of course be that xfce defines
the icons for them. But midori is not so much a standard program and has
a icon und xfce. How could xfce find the icon for midori and can I maybe
"copy" that way?

I am also wondering: Can you confirm that firefox,thinderbird,pidgin and
chromium do not define an Icon? Otherwise something might be wrong with
my installation ...

Regards,
Nathan



Re: FVWM: Application icons in panel and icon man

2010-02-08 Thread Thomas Adam
On Mon, Feb 08, 2010 at 09:11:51PM +0100, Nathan H?sken wrote:
> On 02/08/2010 09:02 PM, Thomas Adam wrote:
> > On Mon, Feb 08, 2010 at 08:53:25PM +0100, Nathan H?sken wrote:
> >   
> >> Hi,
> >>
> >> I am using fvwm for not to much time, and I like it very much. Thanks
> >> for the great work!
> >>
> >> What is nagging me: besides urxvt and gvim, every application is shown
> >> with the standard rotatet square icon.
> >> How can I change it?
> >> 
> > I think you want:
> >
> > *FvwmIconMan: DrawIcons Always
> >
> > ... and note theat unless the application defines for itself an icon, you'll
> > want to set a style on the application to define the miniicon.
> >
> > -- Thomas Adam
> >   
> Hi,
> Thanks for the fast reply.
> *FvwmIconMan: DrawIcons Always
> did not help, its still almost always the not-so-nice rotated square.
> Maybe the applications do not define themeselfs the icons ...
> 
> What could be the reoson, that applications like chromium, firefox,
> thunderbird do not define their icons?

They're under no obligation to.  Welcome to defining your own icon styles.

Please keep this on-list.

-- Thomas Adam

-- 
"It was the cruelest game I've ever played and it's played inside my head."
-- "Hush The Warmth", Gorky's Zygotic Mynci.



Re: FVWM: Application icons in panel and icon man

2010-02-08 Thread Thomas Adam
On Mon, Feb 08, 2010 at 08:53:25PM +0100, Nathan H?sken wrote:
> Hi,
> 
> I am using fvwm for not to much time, and I like it very much. Thanks
> for the great work!
> 
> What is nagging me: besides urxvt and gvim, every application is shown
> with the standard rotatet square icon.
> How can I change it?

I think you want:

*FvwmIconMan: DrawIcons Always

... and note theat unless the application defines for itself an icon, you'll
want to set a style on the application to define the miniicon.

-- Thomas Adam

-- 
"It was the cruelest game I've ever played and it's played inside my head."
-- "Hush The Warmth", Gorky's Zygotic Mynci.



Re: FVWM: Application icons in panel and icon man

2010-02-08 Thread Thomas Adam
On Mon, Feb 08, 2010 at 05:37:30PM -0500, des...@verizon.net wrote:
> In some cases, you may need to add "OverrideIcon" to the style
> command.

s/\(Override\)\(Icon\)/\2/\1/

And, actually, see also EWMHMiniIconOverride for the same purpose.  And also
the oft-forgotten:

Style ** IconOverride foo.xpm

for a global icon definition.

-- Thomas Adam


"It was the cruelest game I've ever played and it's played inside my head."
-- "Hush The Warmth", Gorky's Zygotic Mynci.



Re: FVWM: Application icons in panel and icon man

2010-02-08 Thread Thomas Adam
On Mon, Feb 08, 2010 at 09:57:16PM +0100, Kenneth H. Nielsen wrote:
> On Mon, 08 Feb 2010 20:53:25 +0100
> Nathan H?sken  wrote:
> 
> Hi Nathan, 
> 
> > 
> > What is nagging me: besides urxvt and gvim, every application is shown
> > with the standard rotatet square icon.
> > How can I change it?
> 
> I'm not quite sure what you mean by the "standard rotated square icon"

The stand-by "the program has been iconified, FvwmIconMan will show a
square" type of thing.

> If you're thinking about the icon representing it in your menu list,
> you can change it to whatever you would like, simply by adding your
> desired icon image ie:
> 
> AddToMenu ProgramMenu "Programs" Title
> +%%"" Exec xterm &

Exec exec, please.  There's no need to use "Exec foo &" as this just leaves
the subshell hanging around for no good reason.

> AddToFunc Thumbnail

See the FVWM FAQ on this.  Likely nothing to do with the original question.

-- Thomas Adam

-- 
"It was the cruelest game I've ever played and it's played inside my head."
-- "Hush The Warmth", Gorky's Zygotic Mynci.



Re: FVWM: Application icons in panel and icon man

2010-02-08 Thread despen
Nathan Hüsken  writes:

> Hi,
>
> I am using fvwm for not to much time, and I like it very much. Thanks
> for the great work!
>
> What is nagging me: besides urxvt and gvim, every application is shown
> with the standard rotatet square icon.
> How can I change it?

This is a little simpler than the other reply:

First use FvwmIdent to look at the window's name(s).
You want to look at the "name", "class" or "resource".

Then assign an icon using any of the 3 names above:

Style "name" Icon xyz.xpm


I'm not sure about urxvt, (I use rxvt) but you may
want to use different icons for each urxvt you have open.
In that case, I start rxvt like this:

rxvt -name xyz

The "xyz" becomes the "resource".
Than you can assign an icon base on that resource name.

In some cases, you may need to add "OverrideIcon" to the style
command.



Re: FVWM: Application icons in panel and icon man

2010-02-08 Thread Kenneth H. Nielsen
On Mon, 08 Feb 2010 20:53:25 +0100
Nathan Hüsken  wrote:

Hi Nathan, 

> 
> What is nagging me: besides urxvt and gvim, every application is shown
> with the standard rotatet square icon.
> How can I change it?

I'm not quite sure what you mean by the "standard rotated square icon"
If you're thinking about the icon representing it in your menu list,
you can change it to whatever you would like, simply by adding your
desired icon image ie:

AddToMenu ProgramMenu "Programs" Title
+%%"" Exec xterm &


If you're thinking when you're minimizing a window and theres a icon
displayed, then you can make it a miniturize of the window contence by
adding a few hooks ie:

AddToFunc StartFunction
...
+ I Test (Restart) All (Iconic) Test\
(f $[HOME]/.fvwm/icon.tmp.$[w.id].png) WindowStyle IconOverride, \
   Icon $[HOME]/.fvwm/icon.tmp.$[w.id].png

...
AddToFunc ExitFunction
+ I Test (!ToRestart) Exec exec rm -f $[HOME]/.fvwm/icon.tmp.*
...

AddToFunc Thumbnail
+ I Raise
+ I Piperead "xwd -silent -id $[w.id] \
> $[HOME]/.fvwm/icon.tmp.$[w.id].xwd"
+ I Iconify
+ I Exec nice -19 convert -resize 32x27 -frame 1x1 -mattecolor black\
  -quality 0 xwd:$[HOME]/.fvwm/icon.tmp.$[w.id].xwd\
  png:$[HOME]/.fvwm/icon.tmp.$[w.id].png;\
  FvwmCommand'WindowId $[w.id] WindowStyle IconOverride,\
  Icon $[HOME]/.fvwm/icon.tmp.$[w.id].png, StaysOnBottom'

DestroyFunc DeThumbnail AddToFunc DeThumbnail
+ I DestroyWindowStyle
+ I Exec rm -f $HOME/.fvwm/icon.tmp.$[w.id].*
+ I Iconify
...

Then hook the Thumbnail function to your assigned minimize button on
the window setup and hook the DeThumbnail function to the
Iconify-and-Raise function aswell as the Move-or-Iconify


I hope this gives some idears, else take a look at Chris fvwm
configuration: http://www.adebenham.com/files/fvwm/config
As I snagged it from there..

Regards
Kenneth



FVWM: Application icons in panel and icon man

2010-02-08 Thread Nathan Hüsken
Hi,

I am using fvwm for not to much time, and I like it very much. Thanks
for the great work!

What is nagging me: besides urxvt and gvim, every application is shown
with the standard rotatet square icon.
How can I change it?

I am on gentoo linux running gvwm 2.5.28

Regards,
Nathan