#!/bin/bash

# Test cases for the Xfce genmon plugin's command launcher.
# Configure the genmon plugin to invoke this shell script once per second.
# Uncomment one of the "<click>" commands
# while the plugin is running to test a particular case.
# Each test case can be selected while the plugin is running,
# because the plugin reinvokes the command each second.

SECONDS=$(date +%s)

echo "<img>/usr/share/icons/gnome/8x8/emblems/emblem-default.png</img>"
echo "<txt>$SECONDS</txt>"

#echo "<click>/bin/true</click>"
echo "<click>sleep 3600</click>"
#echo "<click>xxxsleep 3600</click>"
#echo "<click>zenity --info --text=\"hello, world\n$SECONDS\"</click>"

echo "<tool>seconds: $SECONDS</tool>"

exit 0

