Creates actual event listener that'll be run upon certain event type detection. The code will be invoked in btt-node-server, and this method is dependand on this project
Keep in mind that this is persisent - it'll exist until you manually delete it.
Adds a trigger action to the BetterTouchTool. Keep in mind, that the callback function that you'll pass to this function will be invoked upon registering the action in the BetterTouchTool, not after you trigger the specific eventType!
Keep in mind that this is persisent - it'll exist until you manually delete it.
Delays the next action. For most cases manually managing the execution of actions in JavaScript should be sufficient - using this will block any new action that BTT will recieve
Executes passed nodejs script. Requires manual specificying of node executable binary if used on frontend
Triggers a haptic response. Takes a number as a param due to BTT lack of information which ID represents which mode, in order to know what value represents what open BTT and map the order of selects options in config of "Perform Haptic Feedback on Trackpad" action
Open an application on the given path
Locks the screen
Logouts current user
Moves mouse to specified position
Toggles the mute state in the system
Quits BetterTouchTool
Removes previously created event listener
Removes a trigger of specified ID from the BetterTouchTool
Restarts BetterTouchTool
Saves selected text to variable selected_text This can be later retrieved via btt.state.get('selected_text')
Sends shortcut to txhe application. Some apps need to have focus so they can recieve shortcuts.
Sends / Types / Inserts / Pastes custom text
Shows HUD with given config
Shows system wide notification. Keep in mind that it's presence depends on the DnD state in the system.
Opens a web view
Sleeps computer
Sleeps computer display
Starts Siri
Toggles the BetterTouchTool gesture recognition
Toggles the visibility of given application
Toggles the system dark mode
Toggles do not disturb mode
Toggles mouse cursor visibility
Toggles between the big and regular mouse cursor size
Toggles the mouse speed between a regular and speeded up one
Toggles night shift
Toggles do not disturb mode
Triggers system wide keyboard shortcut
Sends a request to real BTT built in webserver with given data translated as GET query params
Allows to create a queue of actions, and just then invoke them
Class used to manage the BTT webserver
IBTTConfig