Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Latest commit

 

History

History
314 lines (271 loc) · 25.8 KB

plugins.core.touchbar.manager.md

File metadata and controls

314 lines (271 loc) · 25.8 KB

docs » plugins.core.touchbar.manager


Touch Bar Manager Plugin.

Submodules

API Overview

API Documentation

Constants

Signature plugins.core.touchbar.manager.DEFAULT_GROUP -> string
Type Constant
Description The default group.
Signature plugins.core.touchbar.manager.FILE_NAME -> string
Type Constant
Description File name of settings file.
Signature plugins.core.touchbar.manager.FOLDER_NAME -> string
Type Constant
Description Folder Name where settings file is contained.

Variables

Signature plugins.core.touchbar.manager.maxItems -> number
Type Variable
Description The maximum number of Touch Bar items per group.
Signature plugins.core.touchbar.manager.numberOfSubGroups -> number
Type Variable
Description The number of Sub Groups per Touch Bar Group.

Functions

Signature plugins.core.touchbar.manager.activeGroup() -> string
Type Function
Description Returns the active group.
Parameters
  • None
Returns
  • Returns the active group or manager.defaultGroup as a string.
Signature plugins.core.touchbar.manager.activeSubGroup() -> string
Type Function
Description Returns the active sub-group.
Parameters
  • None
Returns
  • Returns the active sub group as string
Signature plugins.core.touchbar.manager.clear() -> none
Type Function
Description Clears the Touch Bar items.
Parameters
  • None
Returns
  • None
Signature plugins.core.touchbar.manager.forceGroupChange(combinedGroupAndSubGroupID) -> none
Type Function
Description Loads a specific sub-group.
Parameters
  • combinedGroupAndSubGroupID - The group and subgroup as a single string.
Returns
  • None
Signature plugins.core.touchbar.manager.getAction(button, group) -> string
Type Function
Description Returns a specific Touch Bar Action.
Parameters
  • button - Button ID as string
  • group - Group ID as string
Returns
  • Action as string
Signature plugins.core.touchbar.manager.getActionHandlerID(button, group) -> string
Type Function
Description Returns a specific Touch Bar Action Handler ID.
Parameters
  • button - Button ID as string
  • group - Group ID as string
Returns
  • Action as string
Signature plugins.core.touchbar.manager.getActionTitle(button, group) -> string
Type Function
Description Returns a specific Touch Bar Action Title.
Parameters
  • button - Button ID as string
  • group - Group ID as string
Returns
  • Action as string
Signature plugins.core.touchbar.manager.getBankLabel(group) -> string
Type Function
Description Returns a specific Touch Bar Bank Label.
Parameters
  • group - Group ID as string
Returns
  • Label as string
Signature plugins.core.touchbar.manager.getIcon(button, group) -> string
Type Function
Description Returns a specific Touch Bar Icon.
Parameters
  • button - Button ID as string
  • group - Group ID as string
Returns
  • Icon data as string
Signature plugins.core.touchbar.manager.getLabel(button, group) -> string
Type Function
Description Returns a specific Touch Bar Label.
Parameters
  • button - Button ID as string
  • group - Group ID as string
Returns
  • Label as string
Signature plugins.core.touchbar.manager.gotoSubGroup() -> none
Type Function
Description Loads a specific sub-group.
Parameters
  • id - The ID of the sub-group.
Returns
  • None
Signature plugins.core.touchbar.manager.groupStatus(groupID, status) -> none
Type Function
Description Updates a group's visibility status.
Parameters
  • groupID - the group you want to update as a string.
  • status - the status of the group as a boolean.
Returns
  • None
Signature plugins.core.touchbar.manager.incrementActiveSubGroup() -> none
Type Function
Description Increments the active sub-group
Parameters
  • None
Returns
  • None
Signature plugins.core.touchbar.manager.init(deps) -> self
Type Function
Description Initialises the module.
Parameters
  • None
Returns
  • The module.
Signature plugins.core.touchbar.manager.nextSubGroup() -> none
Type Function
Description Goes to the next sub-group for the active group.
Parameters
  • None
Returns
  • None
Signature plugins.core.touchbar.manager.previousSubGroup() -> none
Type Function
Description Goes to the previous sub-group for the active group.
Parameters
  • None
Returns
  • None
Signature plugins.core.touchbar.manager.start() -> none
Type Function
Description Starts the CommandPost Touch Bar module.
Parameters
  • None
Returns
  • None
Signature plugins.core.touchbar.manager.stop() -> none
Type Function
Description Stops the CommandPost Touch Bar module.
Parameters
  • None
Returns
  • None
Signature plugins.core.touchbar.manager.toggle() -> none
Type Function
Description Toggles the CommandPost Touch Bar module.
Parameters
  • None
Returns
  • None
Signature plugins.core.touchbar.manager.touchbar() -> none
Type Function
Description Returns the hs._asm.undocumented.touchbar object if it exists.
Parameters
  • None
Returns
  • hs._asm.undocumented.touchbar
Signature plugins.core.touchbar.manager.update() -> none
Type Function
Description Updates the Touch Bar.
Parameters
  • None
Returns
  • None
Signature plugins.core.touchbar.manager.updateAction(button, group, action) -> boolean
Type Function
Description Updates a Touch Bar action.
Parameters
  • button - Button ID as string
  • group - Group ID as string
  • actionTitle - Action Title as string
  • handlerID - Handler ID as string
  • action - Action as table
Returns
  • true if successfully updated, or false if a duplicate entry was found
Signature plugins.core.touchbar.manager.updateBankLabel(group, label) -> none
Type Function
Description Updates a Touch Bar Bank Label.
Parameters
  • group - Group ID as string
  • label - Label as string
Returns
  • None
Signature plugins.core.touchbar.manager.updateIcon(button, group, icon) -> none
Type Function
Description Updates a Touch Bar icon.
Parameters
  • button - Button ID as string
  • group - Group ID as string
  • icon - Icon Data as string
Returns
  • None
Signature plugins.core.touchbar.manager.updateLabel(button, group, label) -> none
Type Function
Description Updates a Touch Bar label.
Parameters
  • button - Button ID as string
  • group - Group ID as string
  • label - Label as string
Returns
  • None
Signature plugins.core.touchbar.manager.updateOrder(direction, button, group) -> none
Type Function
Description Shifts a Touch Bar button either up or down.
Parameters
  • direction - Either "up" or "down"
  • button - Button ID as string
  • group - Group ID as string
Returns
  • None

Fields

Signature plugins.core.touchbar.manager.buttons <cp.prop: table>
Type Field
Description Contains all the saved Touch Bar Buttons
Signature plugins.core.touchbar.manager.enabled <cp.prop: boolean>
Type Field
Description Enable or disable Touch Bar Support.
Signature plugins.core.touchbar.manager.supported <cp.prop: boolean; read-only>
Type Field
Description Is true if the Touch Bar is supported on this version of macOS.