nvim plugin to move the cursor with a vive tracker attached to your head
If you have a vive tracker and want to try it out, here's some (linux) install instructions:
- install, setup and calibrate libsurvive (including pysurvive): https://github.com/cntools/libsurvive
- optionally install pygame to use the calibration dot tool
- clone this repo
- make the rplugin directory for nvim, and add a link to nvim_headtracker.py
mkdir -p ~/.config/nvim/rplugin/python3
ln -s nvim_headtracker.py ~/.config/nvim/rplugin/python3/nvim_headtracker.py
- open nvim_headtracker.py in nvim, and do :UpdateRemotePlugins
- use calibration_dot.py to get calibration numbers cx, cy, sx, sy. Edit bg.py and put the new cx, cy, sx, sy into it.
- put a keybind in your .vimrc to toggle the head tracking cursor on/off. I use the s key:
noremap <nowait> s :ToggleTracking<CR>
- put this in your .vimrc to let the cursor go through whitespace while tracking
set virtualedit=all
- run bg.py in the background before starting nvim
(Try using it with neovide for smooth cursor animations and high refresh rate too!)