github soundcloud rss
hipchat
Nov 21, 2017
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.

Also recommend xautolock.

https://www.reddit.com/r/i3wm/comments/6rqv17/i3lock_script_lock_mute_sound_unlock_unmute_sound/ https://www.reddit.com/r/unixporn/comments/3358vu/i3lock_unixpornworthy_lock_screen/


Back to posts


comments powered by Disqus