#!/usr/bin/env sh pid_file="/tmp/wayland-idle-inhibitor-$(id --user).pid" pid=$(cat "${pid_file}") if [ -n "${pid}" ] && kill -0 "${pid}" then echo -n " " else echo -n " " fi