add index_camera_passthrough config

This commit is contained in:
Crispy 2023-12-03 19:22:10 +01:00
parent ef72785333
commit b91bb6b7c8
2 changed files with 60 additions and 1 deletions

View file

@ -0,0 +1,58 @@
## This is the configuration file for index_camera_passthrough.
## This file should live at ~/.config/index_camera_passthrough.toml
backend = "openvr"
## camera device to use. auto detect if not set
camera_device = ""
## which button should toggle the overlay visibility. press things
## button on both controllers to toggle the overlay.
## possible values: "Menu" | "Grip" | "Trigger" | "A" | "B"
toggle_button = "Menu"
## how long does the button need to be held before the overlay open,
## closing the overlay is always instantaneous
open_delay = "0s"
[overlay.position]
## how will the overlay be positioned.
## possible values:
## - "Hmd": stay in front of your Hmd
## - "Absolute": fixed place in VR space
mode = "Hmd"
## how far away should the overlay be placed
## only meaningful if mode is "Hmd"
distance = 1.0
## transformation matrix for absolute position, column-major
## only meaningful if mode is "Absolute"
# transform = [ [1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1] ]
[display_mode]
## the display mode.
## possible values:
## - "Stereo": show a 3D image, how much you can see is limited by how
## big the overlay is in your field of view.
## - "Flat": show a flat image
mode = "Flat"
## which camera's image to display in Flat mode
## only meaningful if mode is "Flat"
eye = "Left"
## Because your eyes and the cameras are at different physical locations, it is impossible
## to project camera view into VR space perfectly. There are trade offs approximating
## this projection.
##
## possible values:
## (a smaller viewing range here means things too close to you will give you double vision).
##
## - "FromCamera": in this mode, we assume your eyes are at the cameras' physical location. this mode
## has larger viewing range, but everything will look smaller to you.
## - "FromEye": in this mode, we assume your cameras are at your eyes' physical location. everything will
## have the right scale in this mode, but the viewing range is smaller.
##
## only available if mode is "Stereo"
# projection_mode = "FromCamera"

View file

@ -17,6 +17,7 @@
~/.config/fastfetch/config.conf: fastfetch.conf
~/.config/fish: fish
~/.config/fontconfig: fontconfig
~/.config/index_camera_passthrough: index_camera_passthrough
~/.config/kitty/kitty.conf: kitty.conf
~/.config/mpv: mpv
~/.config/picom/picom.conf: picom.conf
@ -25,8 +26,8 @@
~/.config/sxhkd: sxhkd
~/.config/templates: templates
~/.config/user-dirs.dirs: user-dirs.dirs
~/.config/warpd/config: warpd_config
~/.config/VSCodium/User/settings.json: vscodium.json
~/.config/warpd/config: warpd_config
~/.local/share/ovr-utils/overlay_data.json: ovr-utils/overlay_data.json
~/.steam/debian-installation/steamapps/common/Logic World/componentrestrictions.succ: steam/Logic World/componentrestrictions.succ
~/.steam/debian-installation/steamapps/common/Logic World/FavoriteSimulationSpeeds.succ: steam/Logic World/FavoriteSimulationSpeeds.succ