Skip to content

Instantly share code, notes, and snippets.

@fredrik-rambris
Last active August 29, 2015 14:23
Show Gist options
  • Save fredrik-rambris/54167cffe48d4287f237 to your computer and use it in GitHub Desktop.
Save fredrik-rambris/54167cffe48d4287f237 to your computer and use it in GitHub Desktop.
Script to keep Pidgin available
#!/usr/bin/env bash
# My Lync client and Pidgin fights over whether I'm inactive or not. I got mad and made this script
# to keep Pidgin status as "available"
KEEP_STATUS="available"
while sleep 1 ; do
status="$( purple-remote getstatus )"
if ! [ "$status" = "$KEEP_STATUS" ] ; then
echo "Reset status to $KEEP_STATUS"
purple-remote setstatus?status=$KEEP_STATUS
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment