Hacker News new | ask | show | jobs
by tim-projects 14 days ago
I use gamescope on a separate TTY that directly launches either steam or heroic launcher. I find this works exceptionally well. No window manager needed as you are playing a game full screen anyway. It fixed some other things like HDR too but at a loss of the volume and brightness keys no longer working.
1 comments

That sounds very interesting, do you have any links or references on how you set it up?
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