How to set away or idle status in HipChat when using i3 and i3lock?
i3-msg "[class=Firefox]" focus xdotool type "/away" xdotool key Return
After you unlock:
i3-msg "[class=Firefox]" focus xdotool type "/here" xdotool key Return
Add in some sleep for good measure.
You should also check the PID if HipChat is running (
Make a wrapper script that uses
i3lock --nofork so the commands will only run after i3lock has finished running.
Also recommend xautolock.