Hacker News new | ask | show | jobs
by Timon3 14 days ago
That sounds very interesting, do you have any links or references on how you set it up?
2 comments

Don't know about gamescope, but the core of my own wine launch script is basically this:

  if [ -z "$DISPLAY" ]; then
    /usr/bin/startx /usr/bin/dbus-launch "$(readlink -f $0)" "$1" -- -layout singleLayout
  fi
  pw-cli i || (pipewire & sleep .5 ;\
               pipewire-media-session &\
               pipewire-pulse &)
  cd "$DIR"
  exec unshare -rcn $ENGINE "$IMAGE" $ARGS
and the rest of the script is about setting up the environment for the game: setting all the parameters used above, exporting the correct WINEPREFIX, mounting .iso's if required, etc.
I just used an llm to configure bashrc at login to offer a menu to fire it off. Either steam heroic or CLI (logging in as a separate game user)

Gamescope replaces X or Wayland so you just run it and then the app you want it to open