I'm dual booting Win10 / OSX via bootcamp on a Macbook Pro touchbar.
When I switch to Windows, my bluetooth mouse will not connect (or with great difficulty) unless I have disabled bluetooth before shutting down OSX. I believe there is a an issue where OSX is somehow holding the bluetooth pairing of the mouse, making it problematic in Windows. If I first disable bluetooth in OSX, then Win10 connects to the mouse 100% no problems.
For this reason, I want to have a way to automatically disable bluetooth when I restart or shutdown OSX, and vice versa when OSX starts up. Then I won't be forgetting all the time to do it manually.
brew install sleepwatcher
. I think it also can monitor shutdown event.