#!/bin/bash

# omarchy:summary=Install Steam and graphics drivers selected for this system
# omarchy:requires-sudo=true

set -e

echo "Installing Steam..."

# Install the hardware-matched 32-bit Vulkan drivers before Steam so its
# dependencies resolve against the right GPU stack. Fedora uses .i686 packages.
omarchy-install-gaming-gpu-lib32
omarchy-pkg-add steam
omarchy-lifecycle-dispatch post-install steam

echo ""
echo "Steam will start automatically now. This might take a while..."

setsid uwsm-app -- gtk-launch steam >/dev/null 2>&1 &
