#!/bin/bash # Check if X is running if ! pgrep -x "Xorg" > /dev/null; then echo "ERROR: X Server not running" exit 1 fi # Check if PipeWire is running if ! pgrep -x "pipewire" > /dev/null; then echo "WARNING: PipeWire not running" fi # Check if Bluetooth is running if ! systemctl is-active --quiet bluetooth; then echo "WARNING: Bluetooth service not active" fi echo "OK: System healthy" exit 0