path: weechat-scripts_20260123-1/python/i3lock_away.py pidof = subprocess.Popen("pidof i3lock", shell=True, stdout=subprocess.PIPE) pidof.wait() if pidof.returncode == 0: set_away(weechat.config_get_plugin('away_message'), []) path: weechat-scripts_20260123-1/python/i3lock_away.py def check(): """Check for existance of process and set away if it isn't there""" pidof = subprocess.Popen("pidof i3lock", shell=True, stdout=subprocess.PIPE) pidof.wait() path: weechat-scripts_20260123-1/python/i3lock_away.py shell=True, stdout=subprocess.PIPE) pidof.wait() if pidof.returncode == 0: set_away(weechat.config_get_plugin('away_message'), []) else: