VR: Difference between revisions

Add information about hand tracking
Add symlink to Monado OpenXR
Line 53: Line 53:
If this file is not set to read-only, SteamVR will add its runtime path back, hence the use for Home Manager.
If this file is not set to read-only, SteamVR will add its runtime path back, hence the use for Home Manager.


{{Warning|Proton will always query the current OpenVR runtime. If you use OpenComposite, and it fails to initialize an OpenXR context, Proton will fail to launch. A workaround is to delete the ~/.config/home-manager/home.nix file and then retry launching the game.}}
{{Warning|Proton will always query the current OpenVR and OpenXR runtime. If you use OpenComposite, and it fails to initialize an OpenXR context, Proton will fail to launch. A workaround is to delete the ~/.config/home-manager/home.nix file and then retry launching the game.}}


An example configuration for enabling OpenComposite may look like this:
An example configuration for enabling OpenComposite may look like this:


{{file|~/.config/home-manager/home.nix|nix|3=xdg.configFile."openvr/openvrpaths.vrpath".text = ''
{{file|~/.config/home-manager/home.nix|nix|3=xdg.configFile."openxr/1/active_runtime.json".text  =''
  {
    "file_format_version": "1.0.0",
    "runtime": {
        "name": "Monado",
        "library_path": "${pkgs.monado}/lib/libopenxr_monado.so"
    }
  }
'';
 
xdg.configFile."openvr/openvrpaths.vrpath".text = ''
   {
   {
     "config" :
     "config" :