Ruby service for this button

Bluebutton

Simple daemon that allows you to execute action when bluetooth button shutter pressed. So you can control your PC by low energy button device and few scripts.

https://github.com/kinnalru/bluebutton