Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Never go idle in hipchat - Disable hipchat idle when away from computer
#! /bin/bash
# This if for the mac hipchat client
# To setup, download this file to any folder and save as ``
# change the permissions of the file so it is executable using terminal
# You can do this by running `chmod u+x ./`
# Now you can run `./`
echo 'Hipchat hooray...ho... - Press CTRL+C to stop'
while :
osascript <<EOF
tell application "Hipchat" to activate
do shell script "
/usr/bin/python <<END
import sys
import time
from Quartz.CoreGraphics import *
def mouseEvent(type, posx, posy):
theEvent = CGEventCreateMouseEvent(None, type, (posx,posy), kCGMouseButtonLeft)
CGEventPost(kCGHIDEventTap, theEvent)
def mousemove(posx,posy):
mouseEvent(kCGEventMouseMoved, posx,posy);
ourEvent = CGEventCreate(None);
sleep 299
echo 'Hipchat hooray...ho...'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.