Caffeinate widget for BTT will show you current state of caffeinate process and give you the ability to toggle script execution.
Caffeinate OFF:
Caffeinate ON:
Open the BTT preferences and select global or specific application where the button should be visible.
Copy caffeinate.json
content and paste into the open BTT window.