#!/bin/bash
env GDK_BACKEND=wayland gamescope -w 1920 -h 1080 -f -R --RT --force-grab-cursor --prefer-vk-device  --adaptive-sync --sharpness 15 -- /usr/bin/one-launcher &
process_id=$!
# Wait for one-launcher to finish launching
while ! pgrep -f "one-launcher" > /dev/null; do

    # Set optional delay
    sleep 0.1

done
systemctl --user -M $(id -un 1000)@ restart one-overlay &
# Wait for one-launcher process to end ...
wait $process_id
#steamos-session-select desktop
#shutdown -h now
