[Goodies-dev] Genmon plugin
Juju
jujucece at gmail.com
Mon Jul 10 11:16:51 CEST 2006
I finally manage to install xfce 4.4 on FC4, so I get the last version
of the genmon plugin, and make my modifications on my local
repository.
I test the new plugin on FC4 and Debian Testing and it works fine.
I also add a new functionnality : a command can be executed when you
click the image.
So I develop a simple script, to mount and umount an usbdisk.
So can I have a developper access to commit my modifications ?
Or perhaps, I can send my patches to somebody which have a svn account ?
I'm also interesting in having an account in the Xfce Goodies wiki to
fill the xfce4-genmon-plugin page...
Thanks in advance,
Juju
Ps: And sorry for my bad english...
2006/7/3, Juju <jujucece at gmail.com>:
> Hi,
>
> Some months ago, I modified the genmon plugin (for panel 4.2) to add
> some functionalities.
>
> Now, the script that genmon spawns every x seconds, can generate a
> simple XML file containing some data :
> - The icon
> - The tooltip (if you want a special tooltip)
> - The text
> - The percentage of the bar (if you want the plugin to display a bar)
>
> With that improvement, you can simply create a cute plugin to monitor
> what you want on your computer : You just have to develop a little
> script.
>
> Here's a example script which displays the t° of the CPU and the freq
> in a tooltip :
> ######################################
> #!/bin/bash
> echo "<img>/usr/local/share/icons/Tango/16x16/apps/utilities-system-monitor.png</img>"
>
> declare -i cpuFreq
> cpuFreq=$(cat /proc/cpuinfo | grep "cpu MHz" | sed 's/\ \ */ /g' | cut
> -f3 -d" " | cut -f1 -d".")
>
> if [ $cpuFreq -ge 1000 ]
> then
> cpu=$(echo $cpuFreq | cut -c1).$(echo $cpuFreq | cut -c2)GHz
> else
> cpu=${cpuFreq}MHz
> fi
> echo "<txt>"$(cat /proc/acpi/thermal_zone/THM/temperature | sed 's/\ \
> */ /g' |cut -f2 -d" ")"°C</txt>"
> echo "<tool>Freq: "$cpu"</tool>"
> ######################################
>
> Actually, I use it to monitor my batteries (the normal battery plugin
> doesn't understand when you have 2 batteries), the t° of my CPU and
> disk, and the WiFi quality (in my opinion, the WaveLAN plugin is not
> very well designed : too big, not well integrated in Xfce)
>
> I'll soonly port my modifications to Xfce 4.4, but my linuxBox is on
> Fedora Core 4, so I'll probably have to wait a bit to have packages of
> Xfce 4.4 (or do you have any tricks to install cleanly Xfce 4.4 on FC4
> ?)
>
> If you have any questions or remarks to help me developing this
> plugin, don't hesitate...
>
> See you...
> Juju
>
>
>
More information about the Goodies-dev
mailing list