Project

bluebutton

0.02
No commit activity in last 3 years
No release in over 3 years
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.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

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.

Bluetooth Remote Shutter

Usage

$ bluebutton -d="Shutter3" # sudo as necessary

With config

$ cat /home/.config/bluebutton
keyup=echo UP
keydown=echo down; echo DOWN
longup=echo LONG UP
longdown=echo LONG DOWN
$ bluebutton -d="Shutter3" -c /home/.config/bluebutton # sudo as necessary

Installation

REQUIREMENTS

  • Ruby >= 2.0

  • Kernel config Kernel config

  • BlueZ

Install the gem:

$ gem install bluebutton # sudo as necessary

Bluetooth button manual installation

You must setup bluetooth stack manually.

  • Start scanning mode:
$ bluetoothctl
[bluetooth]$ power on
[bluetooth]$ scan on
  • Enable Buetooth Button and wait while it will be found:
[NEW] Device FF:FF:1D:14:79:80 AB Shutter3
  • Now you can pair Bluetooth Button and trust to it:
[bluetooth]$ pair FF:FF:1D:14:79:80
[CHG] Device FF:FF:1D:14:79:80 Paired: yes
Pairing successful
[AB Shutter3            ]$ trust FF:FF:1D:14:79:80
[CHG] Device FF:FF:1D:14:79:80 Trusted: yes
[AB Shutter3            ]$ quit