Topic: A purple-remote powered shell script for setting pidgin/finch status.
As the title says, this is a shell script for setting your status in Pidgin/Finch, using purple-remote.
Simply copy/paste this code into a new file, and set the permissions with chmod +x <filename>.
#!/bin/bash
echo "Status? (Valid Options are available,away,unavailable,invisible, and offline):"
read status
case $status in
"available") purple-remote setstatus?status=available;echo "Message?:";read message;purple-remote setstatus?message="$message";;
"away") purple-remote setstatus?status=away;echo "Message?:";read message;purple-remote setstatus?message="$message";;
"unavailable") purple-remote setstatus?status=unavailable;echo "Message?:";read message;purple-remote setstatus?message="$message";;
"invisible") purple-remote setstatus?status=invisible;echo "Message?:";read message;purple-remote setstatus?message="$message";;
"offline") purple-remote setstatus?status=offline;echo "Message?:";read message;purple-remote setstatus?message="$message";;
*) echo "Invalid Status. Please Try Again.";;
esacBe nice, as its my first shell script, well, at least my first one that takes user input.
EDIT
Changelog
v0.1: Initial release
v0.1-1: Fixed a small bug where the status message was only able to be one word.
Last edited by kmason (2010-02-08 02:03:08)
[Custom Desktop|Intel C2D E8400|2GB RAM|80GB & 250GB HDD|NVIDIA GeForce GT220|Win7Pro|#! 9.04]
[last.fm|deviantART|Bloodstar Studios]