onboard_auto
automatically stops/starts onboard
depending on whether your yoga is/isn't in laptop mode.
$ git clone https://github.com/r00tman/onboard_auto
$ cd onboard_auto && cargo install --path . --force
Now you can add ~/.cargo/bin/onboard_auto
to your startup script.