bazbax (foobarbazbax) wrote,
bazbax
foobarbazbax

Office Hours

I've been getting hassled a lot at work via IM. It's important for me to be available to talk to other people that I work with, but the context shifts are killing me when I'm constantly being interrupted. So-- I've implemented "office hours" and am enforcing it by going invisible in Adium, my IM client.

First I wrote a couple of simple shell scripts:

$ cat adium-invisible.sh
/usr/local/bin/growlnotify -a Adium.app -m "Adium is going invisible"
/usr/bin/osascript -e 'tell application "Adium" to go invisible'

$ cat adium-online.sh
/usr/local/bin/growlnotify -a Adium.app -m "No longer invisible"
/usr/bin/osascript -e 'tell application "Adium" to go online'

growlnotify is part of Growl, a notification system for OS x. Read more in the documentation

Then I call them via cron:

$ crontab -l
# be available from 3:00pm-4:00pm
00 15 * * * bash /Users/jaybuff/bin/adium-online.sh
00 16 * * * bash /Users/jaybuff/bin/adium-invisible.sh

# be available from 6:30pm - 11:30am
30 18 * * * bash /Users/jaybuff/bin/adium-online.sh
30 11 * * * bash /Users/jaybuff/bin/adium-invisible.sh
Subscribe
  • Post a new comment

    Error

    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 0 comments