#!/bin/sh while ! pgrep '^gdm$'; do echo "GDM not running yet." sleep 2 done exec 2>&1 exec pipewire