Discussion:
FVWM: Force application to use my icons
Walter Alejandro Iglesias
2014-07-31 10:23:45 UTC
Permalink
Hello,

Is there a effective way to force applications to use the icon I set
with Style * Icon someicon.png?

I accomplished that for mini icons with:

Style * EWMHMiniIconOverride

But I couldn't with icons. I've tried IconOverride,
Icon[Dont]DonateIcon, both settings fails.
Dominik Vogt
2014-07-31 17:22:47 UTC
Permalink
Post by Walter Alejandro Iglesias
Is there a effective way to force applications to use the icon I set
with Style * Icon someicon.png?
Style * EWMHMiniIconOverride
But I couldn't with icons. I've tried IconOverride,
Icon[Dont]DonateIcon, both settings fails.
Overriding icons is tricky. :-)

Try something like this

Style SeaMonkey IconOverride, Icon the_icon_you_want_wo_use.xpm

As far as I can see it is *not* possible to simply remove the icon
image, you would have to make a small transparent pixmap and use
it as the icon to achieve that.

Note that setting icons works differently if the style name is '*',
in other words: the "Icon" style needs to be present on a style
line with a real name to work here.

Ciao

Dominik ^_^ ^_^
--
Dominik Vogt
Walter Alejandro Iglesias
2014-07-31 19:02:07 UTC
Permalink
Hi Dominik!
Post by Dominik Vogt
Post by Walter Alejandro Iglesias
Is there a effective way to force applications to use the icon I set
with Style * Icon someicon.png?
Style * EWMHMiniIconOverride
But I couldn't with icons. I've tried IconOverride,
Icon[Dont]DonateIcon, both settings fail.
Overriding icons is tricky. :-)
Try something like this
Style SeaMonkey IconOverride, Icon the_icon_you_want_wo_use.xpm
As far as I can see it is *not* possible to simply remove the icon
image, you would have to make a small transparent pixmap and use
it as the icon to achieve that.
Note that setting icons works differently if the style name is '*',
in other words: the "Icon" style needs to be present on a style
line with a real name to work here.
My goal is to have all 48x48 icons and avoid maximized windows to cover
them with:

EwmhBaseStruts 0 48 0 0

The curious thing is I'm now using a modified version of fvwm.org FAQ's
Thumbnail function that includes this line:

echo WindowStyle IconOverride, Icon /tmp/icon-$[w.id].png || \

And in this case the trick works. But if I use plain Iconify using i.e.
this style:

Style xboard IconOverride, Icon xboard.png

Xboard obeys the first time after restarting fvwm, but from the second
time I iconify and upwards it insists in loading some big svg file (I
know the simple dirty solution would be to remove that file). I even
tried to fool it with:

Style xboard IconOverride, Icon xboard.svg:48x48

Without success. By the way:

$ grep ImagePath .fvwm/config
ImagePath $HOME/.icons
ImagePath +:$HOME/.icons/fvwm
ImagePath +:$HOME/.icons/fvwm-extra
$ ls .icons/xboard.png
.icons/xboard.png

And I've also tried using "Xboard" like name.


I haven't that problem with mini icons, I've been able to override even
the firefox one using EWMHMiniIconOverride.
Post by Dominik Vogt
Ciao
Dominik ^_^ ^_^
--
Dominik Vogt
Thanks!

Walter
Dominik Vogt
2014-07-31 19:24:22 UTC
Permalink
Post by Walter Alejandro Iglesias
The curious thing is I'm now using a modified version of fvwm.org FAQ's
echo WindowStyle IconOverride, Icon /tmp/icon-$[w.id].png || \
And in this case the trick works. But if I use plain Iconify using i.e.
Style xboard IconOverride, Icon xboard.png
Xboard obeys the first time after restarting fvwm, but from the second
time I iconify and upwards it insists in loading some big svg file (I
know the simple dirty solution would be to remove that file). I even
Style xboard IconOverride, Icon xboard.svg:48x48
Without success.
I'm not sure what you mean. Can you try to explain it again?

Ciao

Dominik ^_^ ^_^
--
Dominik Vogt
Walter Alejandro Iglesias
2014-07-31 20:06:14 UTC
Permalink
Post by Dominik Vogt
Post by Walter Alejandro Iglesias
The curious thing is I'm now using a modified version of fvwm.org FAQ's
echo WindowStyle IconOverride, Icon /tmp/icon-$[w.id].png || \
And in this case the trick works. But if I use plain Iconify using i.e.
Style xboard IconOverride, Icon xboard.png
Xboard obeys the first time after restarting fvwm, but from the second
time I iconify and upwards it insists in loading some big svg file (I
know the simple dirty solution would be to remove that file). I even
Style xboard IconOverride, Icon xboard.svg:48x48
Without success.
I'm not sure what you mean. Can you try to explain it again?
Yeah my Tarzan English :-).

I use this:

# ---- THUMBNAILS ON ICONS -----------------------------------------------
DestroyFunc Thumbnail
AddToFunc Thumbnail
+ I Raise
+ I SetEnv Icon-$[w.id] $[w.iconfile]
+ I ThisWindow (!Shaded, Iconifiable, !Iconic) PipeRead \
"import -silent -quality 0 -window $[w.id] \
-frame -resize 16% png:/tmp/icon-$[w.id].png && \
echo Nop"
+ I TestRc (Match) Test (f $[w.miniiconfile], f /tmp/icon-$[w.id].png) \
PipeRead "composite -geometry +4+4 $[w.miniiconfile] \
/tmp/icon-$[w.id].png /tmp/icon-$[w.id].png && \
echo WindowStyle IconOverride, Icon /tmp/icon-$[w.id].png || \
echo Nop"
+ I TestRc (NoMatch) WindowStyle IconOverride, Icon /tmp/icon-$[w.id].png
+ I Iconify

DestroyFunc DeThumbnail
AddToFunc DeThumbnail
+ I PipeRead "echo WindowStyle Icon \\$\\[Icon-$[w.id]\\]"
+ I UnsetEnv Icon-$[w.id]
+ I Exec rm -f /tmp/icon-$[w.id].png

*FvwmEvent: deiconify DeThumbnail

AddToFunc StartFunction I Module FvwmEvent

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

DestroyFunc ExitFunction
AddToFunc ExitFunction I Test (!ToRestart) \
Exec rm -f /tmp/icon-*.png
#------------------------------------------------------------------------

That works as expected replacing icons with thumbnails, thanks to the
"IconOverride" option passed to WindowStyle. Now, if instead of using
the Thumbnail function I use just "Iconify" to iconify the window with a
style as you told me:

Style xboard IconOverride, Icon xboard.png

this time the same IconOverride option doesn't do its magic.
Post by Dominik Vogt
Ciao
Dominik ^_^ ^_^
--
Dominik Vogt
Walter
Dominik Vogt
2014-08-01 05:45:55 UTC
Permalink
Post by Walter Alejandro Iglesias
# ---- THUMBNAILS ON ICONS -----------------------------------------------
DestroyFunc Thumbnail
AddToFunc Thumbnail
+ I Raise
+ I SetEnv Icon-$[w.id] $[w.iconfile]
^^^^^^^^^^^^

This variable is not used anywhere.
Post by Walter Alejandro Iglesias
+ I TestRc (Match) Test (f $[w.miniiconfile], f /tmp/icon-$[w.id].png) \
^^^^^^^^^^^^^^^^^
Note that this function will never run for windows that do not
have an associated miniicon.
Post by Walter Alejandro Iglesias
DestroyFunc DeThumbnail
AddToFunc DeThumbnail
+ I PipeRead "echo WindowStyle Icon \\$\\[Icon-$[w.id]\\]"
+ I UnsetEnv Icon-$[w.id]
+ I Exec rm -f /tmp/icon-$[w.id].png
Add

+ I DestroyWindowStyle

(see explanation below)
Post by Walter Alejandro Iglesias
That works as expected replacing icons with thumbnails, thanks to the
"IconOverride" option passed to WindowStyle. Now, if instead of using
the Thumbnail function I use just "Iconify" to iconify the window with a
Style xboard IconOverride, Icon xboard.png
this time the same IconOverride option doesn't do its magic.
It doesn't work because you forget to destroy the window specific
style. A style specified with the WindowStyle command is always
preferred over styles specified with the Style command. You need
to add this at the end of the DeThumbnail fucntion:

+ I DestroyWindowStyle

Ciao

Dominik ^_^ ^_^
--
Dominik Vogt
Walter Alejandro Iglesias
2014-08-01 09:20:37 UTC
Permalink
Post by Dominik Vogt
Post by Walter Alejandro Iglesias
# ---- THUMBNAILS ON ICONS -----------------------------------------------
DestroyFunc Thumbnail
AddToFunc Thumbnail
+ I Raise
+ I SetEnv Icon-$[w.id] $[w.iconfile]
^^^^^^^^^^^^
This variable is not used anywhere.
I thought it was used by DeThumbnail. Now I see the UnsetEnv on
DeThumbnail is useless too so I removed both.
Post by Dominik Vogt
Post by Walter Alejandro Iglesias
+ I TestRc (Match) Test (f $[w.miniiconfile], f /tmp/icon-$[w.id].png) \
^^^^^^^^^^^^^^^^^
Note that this function will never run for windows that do not
have an associated miniicon.
I think that the Test is there for Windows that don't have mini icons
associated to show just the thumbnail (without the mini icon).
Post by Dominik Vogt
Post by Walter Alejandro Iglesias
DestroyFunc DeThumbnail
AddToFunc DeThumbnail
+ I PipeRead "echo WindowStyle Icon \\$\\[Icon-$[w.id]\\]"
+ I UnsetEnv Icon-$[w.id]
+ I Exec rm -f /tmp/icon-$[w.id].png
Add
+ I DestroyWindowStyle
(see explanation below)
Post by Walter Alejandro Iglesias
That works as expected replacing icons with thumbnails, thanks to the
"IconOverride" option passed to WindowStyle. Now, if instead of using
the Thumbnail function I use just "Iconify" to iconify the window with a
Style xboard IconOverride, Icon xboard.png
this time the same IconOverride option doesn't do its magic.
It doesn't work because you forget to destroy the window specific
style. A style specified with the WindowStyle command is always
preferred over styles specified with the Style command.
I wake up this morning thinking exactly on that. I'd replaced Thumbnail
with Iconify in the ShowDesktop function (to speed it up) and forgot
about FvwmEvent in DeThumbnail. I had it in front of my nose!

Sorry guys, I'm getting old and idiot.
Post by Dominik Vogt
You need
+ I DestroyWindowStyle
I've added this to DeThumbnail and all works perfectly. Thanks Dominik.
Post by Dominik Vogt
Ciao
Dominik ^_^ ^_^
--
Dominik Vogt
Walter
Dominik Vogt
2014-08-01 16:25:40 UTC
Permalink
Post by Walter Alejandro Iglesias
Post by Dominik Vogt
It doesn't work because you forget to destroy the window specific
style. A style specified with the WindowStyle command is always
preferred over styles specified with the Style command.
I wake up this morning thinking exactly on that. I'd replaced Thumbnail
with Iconify in the ShowDesktop function (to speed it up) and forgot
about FvwmEvent in DeThumbnail. I had it in front of my nose!
Sorry guys, I'm getting old and idiot.
No, the icon syntax is simply a pain. It took me half a day to
figure out what's going wrong. Icon choices are simply
unintuitive and hard to understand.
Post by Walter Alejandro Iglesias
Post by Dominik Vogt
You need
+ I DestroyWindowStyle
I've added this to DeThumbnail and all works perfectly. Thanks Dominik.
Youre welcome. :-) I'm glad that it works now. I had a tough
fight with your configuration because I use FvwmCpp to process my
config file, and then I have to replace *some* line continuations
('\') with "\\", but not all (the ones inside duoble quotes can be
left unchanged).

And I also noticed that if I define a MiniIcon style for the
window and run the scripts too, the mini icon is displayed on top
of the real icon. I wonder if that's a bug or if it's a secret
feature that I could not find in the documentation yet.

Ciao

Dominik ^_^ ^_^
--
Dominik Vogt
Walter Alejandro Iglesias
2014-08-01 20:04:51 UTC
Permalink
Post by Dominik Vogt
Post by Walter Alejandro Iglesias
Post by Dominik Vogt
It doesn't work because you forget to destroy the window specific
style. A style specified with the WindowStyle command is always
preferred over styles specified with the Style command.
I wake up this morning thinking exactly on that. I'd replaced Thumbnail
with Iconify in the ShowDesktop function (to speed it up) and forgot
about FvwmEvent in DeThumbnail. I had it in front of my nose!
Sorry guys, I'm getting old and idiot.
No, the icon syntax is simply a pain. It took me half a day to
figure out what's going wrong. Icon choices are simply
unintuitive and hard to understand.
Post by Walter Alejandro Iglesias
Post by Dominik Vogt
You need
+ I DestroyWindowStyle
I've added this to DeThumbnail and all works perfectly. Thanks Dominik.
Youre welcome. :-) I'm glad that it works now. I had a tough
fight with your configuration because I use FvwmCpp to process my
config file, and then I have to replace *some* line continuations
('\') with "\\", but not all (the ones inside duoble quotes can be
left unchanged).
And I also noticed that if I define a MiniIcon style for the
window and run the scripts too, the mini icon is displayed on top
of the real icon. I wonder if that's a bug or if it's a secret
feature that I could not find in the documentation yet.
The function I've posted? Well the aim is to get something similar to
what MacOSX does. Let me explain the whole history. I borrowed the
idea from here:

http://zensites.net/fvwm/guide/advanced_functions.html

And combined it with what I've read in the fvwm.org FAQ:

http://www.fvwm.org/documentation/faq/#toc_7.18

Note that Thomas put two versions in the FAQ, the first using
DestrowWindowStyle and the second using SetEnv.

I got the thing working (the function I've pasted in my second message),
I simplified a bit the pipe commands (used just import) and instead of
icons like the guy of the first site did I used mini icons at the top of
the thumbnail. The result I got was:

Loading Image...


The problem came because, time ago I'd borrowed from some place (I don't
remember from where) a ShowDesktop function, I modified it a bit too:

DestroyFunc ShowDesktop
AddToFunc ShowDesktop
+ I SendToModule FvwmAnimate pause
+ I All (AcceptsFocus, CurrentPage, Iconic, State 1) RestoreDesktop
+ I TestRc (Match) Break
+ I All (AcceptsFocus, CurrentPage, !Iconic, !State 1) ThisWindow State 1 True
+ I All (AcceptsFocus, CurrentPage, !Iconic, State 1) Thumbnail
^^^^^^^^^
(replaced with Iconify)
+ I SendToModule FvwmAnimate play

DestroyFunc RestoreDesktop
AddToFunc RestoreDesktop
+ I SendToModule FvwmAnimate pause
+ I All (AcceptsFocus, CurrentPage, Iconic, State 1, !Focused) Iconify
+ I All (AcceptsFocus, CurrentPage, Iconic, State 1) Iconify
+ I All (AcceptsFocus, CurrentPage, State 1) ThisWindow State 1 False
+ I SendToModule FvwmAnimate play

Thumbnail was too slow for this function, the idea is ShowDesktop to be
instantaneous. Hence I put here "Iconify". I forgot DeThumbnail
function :-), FvwmEvent reseted the icon each time the application was
de-iconified that's why the icon setted in styles worked just the first
time and the IconOverride was ignored.
Post by Dominik Vogt
Ciao
Dominik ^_^ ^_^
--
Dominik Vogt
Dominik Vogt
2014-08-02 09:12:22 UTC
Permalink
Post by Walter Alejandro Iglesias
Post by Dominik Vogt
And I also noticed that if I define a MiniIcon style for the
window and run the scripts too, the mini icon is displayed on top
of the real icon. I wonder if that's a bug or if it's a secret
feature that I could not find in the documentation yet.
The function I've posted? Well the aim is to get something similar to
what MacOSX does.
Oh, that's something your function does. I didn't even read the
image processing functions. :-)
Post by Walter Alejandro Iglesias
Let me explain the whole history. I borrowed the
http://zensites.net/fvwm/guide/advanced_functions.html
http://www.fvwm.org/documentation/faq/#toc_7.18
Note that Thomas put two versions in the FAQ, the first using
DestrowWindowStyle and the second using SetEnv.
Actually, it was me who put Q7.18 into the FAQ. I cannot remember
who wrote these functions in the first place, though. ;-)
Post by Walter Alejandro Iglesias
I got the thing working (the function I've pasted in my second message),
I simplified a bit the pipe commands (used just import) and instead of
icons like the guy of the first site did I used mini icons at the top of
http://roquesor.com/Downloads/fvwm_desktop.png
Nice.
Post by Walter Alejandro Iglesias
The problem came because, time ago I'd borrowed from some place (I don't
DestroyFunc ShowDesktop
AddToFunc ShowDesktop
+ I SendToModule FvwmAnimate pause
+ I All (AcceptsFocus, CurrentPage, Iconic, State 1) RestoreDesktop
+ I TestRc (Match) Break
+ I All (AcceptsFocus, CurrentPage, !Iconic, !State 1) ThisWindow State 1 True
+ I All (AcceptsFocus, CurrentPage, !Iconic, State 1) Thumbnail
^^^^^^^^^
(replaced with Iconify)
+ I SendToModule FvwmAnimate play
DestroyFunc RestoreDesktop
AddToFunc RestoreDesktop
+ I SendToModule FvwmAnimate pause
+ I All (AcceptsFocus, CurrentPage, Iconic, State 1, !Focused) Iconify
+ I All (AcceptsFocus, CurrentPage, Iconic, State 1) Iconify
+ I All (AcceptsFocus, CurrentPage, State 1) ThisWindow State 1 False
+ I SendToModule FvwmAnimate play
Thumbnail was too slow for this function, the idea is ShowDesktop to be
instantaneous. Hence I put here "Iconify". I forgot DeThumbnail
function :-), FvwmEvent reseted the icon each time the application was
de-iconified that's why the icon setted in styles worked just the first
time and the IconOverride was ignored.
Oh, I see. MoveToDesk should work better and faster and not
trigger any unwanted application behaviour on iconification:

--
addtofunc showdesktop
+ i all (currentdesk, !iconic) movetodesk 42

addtofunc restoredesktop
+ i gotodesk 42
+ i all (currentdesk) movetodesk -42
+ i gotodesk -42
Walter Alejandro Iglesias
2014-08-02 09:45:41 UTC
Permalink
Post by Dominik Vogt
Post by Walter Alejandro Iglesias
Thumbnail was too slow for this function, the idea is ShowDesktop to be
instantaneous.
Oh, I see. MoveToDesk should work better and faster and not
--
addtofunc showdesktop
+ i all (currentdesk, !iconic) movetodesk 42
addtofunc restoredesktop
+ i gotodesk 42
+ i all (currentdesk) movetodesk -42
+ i gotodesk -42
--
I thought in doing something like this. I will try it.


Thanks Dominik!
Post by Dominik Vogt
Ciao
Dominik ^_^ ^_^
--
Dominik Vogt
Chris Bannister
2014-08-03 00:59:46 UTC
Permalink
Post by Dominik Vogt
Post by Walter Alejandro Iglesias
Post by Dominik Vogt
And I also noticed that if I define a MiniIcon style for the
window and run the scripts too, the mini icon is displayed on top
of the real icon. I wonder if that's a bug or if it's a secret
feature that I could not find in the documentation yet.
The function I've posted? Well the aim is to get something similar to
what MacOSX does.
Oh, that's something your function does. I didn't even read the
image processing functions. :-)
Post by Walter Alejandro Iglesias
Let me explain the whole history. I borrowed the
http://zensites.net/fvwm/guide/advanced_functions.html
http://www.fvwm.org/documentation/faq/#toc_7.18
Note that Thomas put two versions in the FAQ, the first using
DestrowWindowStyle and the second using SetEnv.
Actually, it was me who put Q7.18 into the FAQ. I cannot remember
who wrote these functions in the first place, though. ;-)
Post by Walter Alejandro Iglesias
I got the thing working (the function I've pasted in my second message),
I simplified a bit the pipe commands (used just import) and instead of
icons like the guy of the first site did I used mini icons at the top of
http://roquesor.com/Downloads/fvwm_desktop.png
Nice.
Post by Walter Alejandro Iglesias
The problem came because, time ago I'd borrowed from some place (I don't
DestroyFunc ShowDesktop
AddToFunc ShowDesktop
+ I SendToModule FvwmAnimate pause
+ I All (AcceptsFocus, CurrentPage, Iconic, State 1) RestoreDesktop
+ I TestRc (Match) Break
+ I All (AcceptsFocus, CurrentPage, !Iconic, !State 1) ThisWindow State 1 True
+ I All (AcceptsFocus, CurrentPage, !Iconic, State 1) Thumbnail
^^^^^^^^^
(replaced with Iconify)
+ I SendToModule FvwmAnimate play
DestroyFunc RestoreDesktop
AddToFunc RestoreDesktop
+ I SendToModule FvwmAnimate pause
+ I All (AcceptsFocus, CurrentPage, Iconic, State 1, !Focused) Iconify
+ I All (AcceptsFocus, CurrentPage, Iconic, State 1) Iconify
+ I All (AcceptsFocus, CurrentPage, State 1) ThisWindow State 1 False
+ I SendToModule FvwmAnimate play
Thumbnail was too slow for this function, the idea is ShowDesktop to be
instantaneous. Hence I put here "Iconify". I forgot DeThumbnail
function :-), FvwmEvent reseted the icon each time the application was
de-iconified that's why the icon setted in styles worked just the first
time and the IconOverride was ignored.
Oh, I see. MoveToDesk should work better and faster and not
--
addtofunc showdesktop
+ i all (currentdesk, !iconic) movetodesk 42
addtofunc restoredesktop
+ i gotodesk 42
+ i all (currentdesk) movetodesk -42
+ i gotodesk -42
--
The restoration function is a bit complicated because at the
moment you cannot say "all (desk 42) ..."; you can only check for
the current desk. Note that sticky windows are not affected. If
that is necessary, you would have to unstick them, store their
"sticky" status in one of the windowstate flags and restore their
stickyness in the restoredesktop function. I'm to lazy to do that
now, but if you would like to see how to do that, just ask.
Wow! Sorry, for butting in, but is there a link where all this is
explained for the layman?

I've tried reading the man page - not easy! :(
--
"If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the
oppressing." --- Malcolm X
Walter A. Iglesias
2014-08-03 09:54:12 UTC
Permalink
Post by Chris Bannister
Post by Dominik Vogt
Post by Walter Alejandro Iglesias
Post by Dominik Vogt
And I also noticed that if I define a MiniIcon style for the
window and run the scripts too, the mini icon is displayed on top
of the real icon. I wonder if that's a bug or if it's a secret
feature that I could not find in the documentation yet.
The function I've posted? Well the aim is to get something similar to
what MacOSX does.
Oh, that's something your function does. I didn't even read the
image processing functions. :-)
Post by Walter Alejandro Iglesias
Let me explain the whole history. I borrowed the
http://zensites.net/fvwm/guide/advanced_functions.html
http://www.fvwm.org/documentation/faq/#toc_7.18
Note that Thomas put two versions in the FAQ, the first using
DestrowWindowStyle and the second using SetEnv.
Actually, it was me who put Q7.18 into the FAQ. I cannot remember
who wrote these functions in the first place, though. ;-)
Post by Walter Alejandro Iglesias
I got the thing working (the function I've pasted in my second message),
I simplified a bit the pipe commands (used just import) and instead of
icons like the guy of the first site did I used mini icons at the top of
http://roquesor.com/Downloads/fvwm_desktop.png
Nice.
Post by Walter Alejandro Iglesias
The problem came because, time ago I'd borrowed from some place (I don't
DestroyFunc ShowDesktop
AddToFunc ShowDesktop
+ I SendToModule FvwmAnimate pause
+ I All (AcceptsFocus, CurrentPage, Iconic, State 1) RestoreDesktop
+ I TestRc (Match) Break
+ I All (AcceptsFocus, CurrentPage, !Iconic, !State 1) ThisWindow State 1 True
+ I All (AcceptsFocus, CurrentPage, !Iconic, State 1) Thumbnail
^^^^^^^^^
(replaced with Iconify)
+ I SendToModule FvwmAnimate play
DestroyFunc RestoreDesktop
AddToFunc RestoreDesktop
+ I SendToModule FvwmAnimate pause
+ I All (AcceptsFocus, CurrentPage, Iconic, State 1, !Focused) Iconify
+ I All (AcceptsFocus, CurrentPage, Iconic, State 1) Iconify
+ I All (AcceptsFocus, CurrentPage, State 1) ThisWindow State 1 False
+ I SendToModule FvwmAnimate play
Thumbnail was too slow for this function, the idea is ShowDesktop to be
instantaneous. Hence I put here "Iconify". I forgot DeThumbnail
function :-), FvwmEvent reseted the icon each time the application was
de-iconified that's why the icon setted in styles worked just the first
time and the IconOverride was ignored.
Oh, I see. MoveToDesk should work better and faster and not
--
addtofunc showdesktop
+ i all (currentdesk, !iconic) movetodesk 42
addtofunc restoredesktop
+ i gotodesk 42
+ i all (currentdesk) movetodesk -42
+ i gotodesk -42
--
The restoration function is a bit complicated because at the
moment you cannot say "all (desk 42) ..."; you can only check for
the current desk. Note that sticky windows are not affected. If
that is necessary, you would have to unstick them, store their
"sticky" status in one of the windowstate flags and restore their
stickyness in the restoredesktop function. I'm to lazy to do that
now, but if you would like to see how to do that, just ask.
Wow! Sorry, for butting in, but is there a link where all this is
explained for the layman?
I've tried reading the man page - not easy! :(
Being me a layman too I ignore how all this functionality was added to
FVWM. I agree that to be really accessible it should go with a book
analog to "The C Programming Language" by Dennis Ritchie :-).

Start like me, cutting, pasting and using your intuition.
--
Walter
Thomas Adam
2014-08-03 19:25:38 UTC
Permalink
Post by Chris Bannister
Wow! Sorry, for butting in, but is there a link where all this is
explained for the layman?
I've tried reading the man page - not easy! :(
What is it you don't understand?

-- Thomas Adam

Thomas Funk
2014-07-31 18:44:14 UTC
Permalink
Post by Walter Alejandro Iglesias
Hello,
Is there a effective way to force applications to use the icon I set
with Style * Icon someicon.png?
Style * EWMHMiniIconOverride
But I couldn't with icons. I've tried IconOverride,
Icon[Dont]DonateIcon, both settings fails.
Style <your_app> EWMHMiniIconOverride, Icon bomb.svg:48x48, MiniIcon bomb.svg:16x16

<your_app> is the window's name, class, visible name, or resource string (in that order)

For the Icon/MiniIcon you have to use the full path or set it in ImagePath

Test it in FvwmConsole. It'll change it on the fly.

-- Thomas --


--
Loading...