I’m using Chinese with UTF-8 encoding on my system. And no matter which font did I use, mrxvt could not display the Chinese character currectly. And I could not find any thing about utf-8 or unicode in its man page. On it’s todo list, I saw “unicode support”. I wander if it support utf-8 now? Does anyone know? Thanks.
Thanks PE for your theme which is very nice !
I’ve used Fvwm for five years now, happy with the functionalities.
Now, it’s not only powerful, it’s nice too !!
I have a problem with Thumbmail. It does not work directly with several
applications, among which “xmms”.
If I open a console and type
Style * Icon $[fvwm_icon]/16x16/apps/gnome-help.png
then xmms does not recognize this sentence and thumbmail does not work
on xmms
On the other hand, if I type
Style xmms Icon $[fvwm_icon]/16x16/apps/gnome-help.png
then xmms does recognize the sentence and thumbmail works.
I suppose you have something like Style * IconOverride in your configuration so that you can replace an app supplied icon with one of your own. Now Style * Icon blabla sets the default icon that’s used, eg the one on applications that don’t have one of themselves and the ones you don’t assign one to.
I checked against the documentation and realised that I didn’t understand
it well. When the documentation explained the special meaning of
Style * Icon unknown.xpm
I thought that “unknown.xpm” was a reserved keyword.
I admit that I could have thought a bit more. Nevertheless, maybe
one could change the term “unknown.xpm” with something like “anyIcon.xpm”
in the documentation …
Now, what I don’t understand is how the function Thumbnail works.
Let us say that I apply “Thumbnail” on a window whose application is
xmms. Xmms has its own Icon and the command “echo
WindowStyle…” has no effect. If I change the Icon of xmms by
something like “Style xmms Icon myIcon” before I use “Thumbnail”, then
the command “echo WindowStyle …” does change the Icon.
Why do I need to change the Icon first for the commmand “echo
WindowStyle…” to be effective ?
“I” means ‘immediately’. So for the window this function is axting upon, the window is raised (so that we can see all of it before the snapshot is taken.)
Because XMMS is a PITA. You only need to search these forums to determine that. :) Actually, the answer is because some applications specify their own icon which the WM must obey (according to the ICCCM) What you really want is a style line such as this:
Thanks for your thorough answer, which is more than I expected
Ok. And when I have changed the Icon at least once,
then the application is not considered as having its own icon anymore, thus
it behaves differently under the WindowStyle command.
Is it correct ?
Does not work
Never mind. The point for me was to understand. I can choose an icon for the
applications I use. I am not that lazy 8)
BTW, I don’t know if you noticed it, but this thumbnailling thing is a bit sluggish. On this post, Sasha has provided us a good way to make a more efficient one. I’ve modified it a bit to match the conf your are playing with. Check it, it’s worth the detour.
Note, that there should be a better way by using the composite extension… One day, I will may be take some time to check that.
BTW, that reminds me an old post of mine related to one question you’ve asked some time ago.
In this post, I was referring to 2 scripts. The first script was intended to generate data from forecasts get from weather.com and create a log file out of them in the /dev/shm. The other was intended to generate a menu out of the log freshly created. I guess you are not calling the good script and that you need the second and missing script in my post (though, it was available in my config)
I’ve written 2 scripts caus’ I use the log in the /dev/shm to also generate the icon in my dock. It avoids to call 2 times the same request to the poor lads at weather.com
Yes, it will work with the gb2312 or gbk encoding, but not it seems will not work with utf8. For some reason, I should use utf8 instead of gb, that’s why I’m puzzled…
Anyway, thank you all the same.
thanks, pem i’ve already saw the script on you fvwm2rc conf…, i already have the dynamicmenu, but doesn’t show me information… only the day and the images… if you know where is the problem… tell me please… tks again
Seems to be fine. Just for info, here’s my output:
24.png
25º/16ºC
20 %
39.png
25º/16ºC
50 %
30.png
32º/17ºC
20 %
38.png
29º/17ºC
40 %
30.png
27º/15ºC
10 %
38.png
26º/15ºC
30 %
30.png
26º/15ºC
20 %
39.png
26º/15ºC
30 %
30.png
26º/15ºC
10 %
Actually, this output corresponds to the extracted content of the html page found at the specified URL. Each 3 lines corresponds to one forecast for a day starting from today/tonigh. The first line of a forecast is a bitmap displayed to show the expected weather. The second line is the range of temperature (man and min) in celsius. The third line is the degree of humidity (as you can see, it does not rain often these days in France 8) ).
In the output, the bitmap is brute. For Fvwm or any script, it must be set along with a path. If you call this script with the right path as argument to your stored weather bitmap, it will concatenate the path with the bitmap file. Thus, it’s easy to draw some value for a menu or an icon. I provide 2 sets of bitmaps in my archive but there are more on deviantart.com for instance.
Once you have succeeded in creating the right log at the right place, I mean the /dev/shm, could you provide me with the output of your weather_menu.plx output? And BTW, could you also show me how do you call weather_log.plx in your config?
The call seems OK. Anyway, I was requesting the output of the second script because it’s this script that should provide the menu content Just to check if everything is OK, you could directly execute these scripts on the command line:
.fvwm/script/weather_log.plx /home/joao/.fvwm/img/weather/um/> /dev/shm/weather.log
cat /dev/shm/weather.log
/home/joao/.fvwm/img/weather/um/11.png
16ºC
60 %
/home/joao/.fvwm/img/weather/um/39.png
31º/20ºC
30 %
/home/joao/.fvwm/img/weather/um/39.png
30º/18ºC
30 %
/home/joao/.fvwm/img/weather/um/12.png
25º/15ºC
...
And the second output which interest us most:
%/home/joao/.fvwm/img/weather/um/32.png%“Day 9 Temp 26º/15ºC Hum 0 % %%”[/code]
If you got this ouput and if every bitmap can be accessed in the proper directory can, now it will be time to have some Fvwm checks.