[Goodies-commits] r2099 - in xfce4-genmon-plugin/trunk: . scripts
Julien Devemy
jujucece at xfce.org
Tue Oct 10 14:05:40 CEST 2006
Author: jujucece
Date: 2006-10-10 12:05:39 +0000 (Tue, 10 Oct 2006)
New Revision: 2099
Modified:
xfce4-genmon-plugin/trunk/README
xfce4-genmon-plugin/trunk/scripts/monBat
xfce4-genmon-plugin/trunk/scripts/monCPU
xfce4-genmon-plugin/trunk/scripts/monTime
xfce4-genmon-plugin/trunk/scripts/monUSB
xfce4-genmon-plugin/trunk/scripts/monWIFI
Log:
Scripts for new version plugin
Modified: xfce4-genmon-plugin/trunk/README
===================================================================
--- xfce4-genmon-plugin/trunk/README 2006-10-10 11:23:21 UTC (rev 2098)
+++ xfce4-genmon-plugin/trunk/README 2006-10-10 12:05:39 UTC (rev 2099)
@@ -59,8 +59,8 @@
<txt>Text to display</txt>
<img>Path to the image to display</img>
<tool>Tooltip text</tool>
-<bar>Pourcentage to display in the bar</img>
-<click>The command to be executed by clicking on the image</click>
+<bar>Pourcentage to display in the bar</bar>
+<click>The command to be executed when clicking on the image</click>
If None of the tags are detected in the result of the command, the plugin
returns to its original behaviour (displaying the result of the command).
Modified: xfce4-genmon-plugin/trunk/scripts/monBat
===================================================================
--- xfce4-genmon-plugin/trunk/scripts/monBat 2006-10-10 11:23:21 UTC (rev 2098)
+++ xfce4-genmon-plugin/trunk/scripts/monBat 2006-10-10 12:05:39 UTC (rev 2099)
@@ -1,5 +1,7 @@
#!/bin/bash
+# An example script for the genmon plugin displaying information on the 2 batteries state
+
pres0=$(cat /proc/acpi/battery/BAT0/info | grep "present" | sed 's/\ \ */ /g' | cut -f2 -d" ")
if [ $pres0 != "no" ]
then
Modified: xfce4-genmon-plugin/trunk/scripts/monCPU
===================================================================
--- xfce4-genmon-plugin/trunk/scripts/monCPU 2006-10-10 11:23:21 UTC (rev 2098)
+++ xfce4-genmon-plugin/trunk/scripts/monCPU 2006-10-10 12:05:39 UTC (rev 2099)
@@ -1,4 +1,7 @@
#!/bin/bash
+
+# An example script for the genmon plugin displaying information on the CPU
+
echo "<img>/usr/local/share/icons/Tango/16x16/apps/utilities-system-monitor.png</img>"
declare -i cpuFreq
Modified: xfce4-genmon-plugin/trunk/scripts/monTime
===================================================================
--- xfce4-genmon-plugin/trunk/scripts/monTime 2006-10-10 11:23:21 UTC (rev 2098)
+++ xfce4-genmon-plugin/trunk/scripts/monTime 2006-10-10 12:05:39 UTC (rev 2099)
@@ -1,4 +1,7 @@
#!/bin/bash
+
+# An example script for the genmon plugin displaying the date
+
echo "<txt>"$(date +"%a %d/%m/%Y")
echo " "$(date +"%H:%M")"</txt>"
echo "<tool>"$(date +"%A %d %B %Y")"</tool>"
Modified: xfce4-genmon-plugin/trunk/scripts/monUSB
===================================================================
--- xfce4-genmon-plugin/trunk/scripts/monUSB 2006-10-10 11:23:21 UTC (rev 2098)
+++ xfce4-genmon-plugin/trunk/scripts/monUSB 2006-10-10 12:05:39 UTC (rev 2099)
@@ -1,4 +1,9 @@
#!/bin/bash
+
+# An example script for the genmon plugin to mount/umount USB disk
+
+# Change sda1 to your USB disk device
+
ls -l /dev/sda1 >/dev/null 2>&1
if [ $? == 0 ]
then
Modified: xfce4-genmon-plugin/trunk/scripts/monWIFI
===================================================================
--- xfce4-genmon-plugin/trunk/scripts/monWIFI 2006-10-10 11:23:21 UTC (rev 2098)
+++ xfce4-genmon-plugin/trunk/scripts/monWIFI 2006-10-10 12:05:39 UTC (rev 2099)
@@ -1,4 +1,9 @@
#!/bin/bash
+
+# An example script for the genmon plugin displaying information on the Wireless connection
+
+# Change eth1 to your Wifi interface
+
echo "<img>/usr/local/share/icons/Tango/16x16/devices/network-wireless.png</img>"
res1=$(/sbin/ifconfig eth1 | grep inet)
More information about the Goodies-commits
mailing list