BluePup Bluetooth managerBluePup is a GUI wrapper around the commandline 'bluetoothctl' utility, which is part of the 'bluez' package.GUI windowIn the 'Command' box, any command that bluetoothctl accepts can be entered, and the result displayed in 'Output log'.If any devices are detected, they are composed into 'Found devices', which is a list from which the user can make a choice. The 'Formula' (maybe should be 'Formulae' for plural?) are simple files with a preset set of commands to feed into bluetoothctl. The file '/usr/local/bluepup/formula/SCAN & PAIR' is one such formula. BluePup scans the folder /usr/local/bluepup/formula at startup and creates buttons for each file found. A formula file is easy to create. It also has an easy mechanism to request and wait for the use to make a choice from the 'Found devices' list. BluePup tray appletCurrently only indicates whether Bluetooth 'bluetoothd' daemon is running or not, and clicking on icon launches the BluePup GUI.Formula fileBluePup is a frontend to 'bluetoothctl' utility, in 'bluez' pkg.Utility bluetoothctl is running in the background, commands are sent to it by appending to /tmp/bluepup/alt_in Output from bluetoothctl appears in the BluePup 'Output log' window, also /tmp/bluepup/output.short.log.txt: has result of last command, and /tmp/bluepup/output.full.log.txt: has complete history. Do this before every command, so BluePup knows where in logfile latest results are appended: # wc -l /tmp/bluepup/output.full.log.txt > /tmp/bluepup/cnt_full...leave out to concatenate latest results in same log window. When user clicks on an entry in 'Found devices' list, it is written to /tmp/bluepup/chosen-device, So, the formula file can wait until this file becomes non-zero size. Legal(c) Copyright Barry Kauler, 2016, barryk.orgLicense GPL v3 (/usr/share/doc/legal). |