Skip to content

Fubs/headtracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

headtracker

nvim plugin to move the cursor with a vive tracker attached to your head

out

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!)

About

nvim plugin for head tracking

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages