github soundcloud
HipChat away
Dec 9, 2018
One minute read

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 (pidof hipchat4).

Make a wrapper script that uses i3lock --nofork so the commands will only run after i3lock has finished running.

i3lock Script: Lock & mute sound > Unlock & Unmute sound {i3lock} unixporn-worthy lock screen


Back to posts