You're probably going to need to create a script which calls my script to figure out the status of the player and creates a file if playing...
Here's an attempt at a script (should work...):
Code:
#!/bin/sh
status=`conkyBanshee --datatype=ST`
if [ $status = Playing ]; then
touch /tmp/banshee_playing
else
if [ -f /tmp/banshee_playing ]; then
rm /tmp/banshee_playing
fi
fi
The script will need executing via a exec call in the conkyrc file, i.e.
Code:
${exec /path/to/script.sh
Here's the if_existing conky help:
Code:
if_existing file (string) if FILE exists, display everything between if_existing and the matching $endif. The optional second paramater checks for FILE containing the specified string and prints everything between $if_existing and the matching $endif.
So you would want something like:
Code:
${if_existing "/tmp/banshee_playing"}
...do stuff when player is playing...
$endif
There may be a better solution using $if_matching...someone may jump in to help more...
Hope that helps
Bookmarks