Last active
August 29, 2015 14:23
-
-
Save fredrik-rambris/54167cffe48d4287f237 to your computer and use it in GitHub Desktop.
Script to keep Pidgin available
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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