#!/bin/bash PID_FILE="/tmp/caffeine-inhibit.pid" [[ -f "$PID_FILE" ]] && kill -0 "$(cat "$PID_FILE")" 2>/dev/null && echo "true" || echo "false"