In order to utilize blueutil with keyboard tools like Better Touch Tools or similar, a command line option to toggle the power state would be helpful.
The toggle option should basically do the same as this applescript (which I have assigned to the "Fn-B" hotkey via BTT), just without the need for a script in the first place:
set blueutil to "/usr/local/bin/blueutil"
set powerStatus to do shell script blueutil & " --power"
if powerStatus is "1" then
do shell script blueutil & " --power off"
else if powerStatus is "0" then
do shell script blueutil & " --power on"
end if
In order to utilize blueutil with keyboard tools like Better Touch Tools or similar, a command line option to toggle the power state would be helpful. The toggle option should basically do the same as this applescript (which I have assigned to the "Fn-B" hotkey via BTT), just without the need for a script in the first place: