Skip to content

Latest commit

 

History

History
234 lines (201 loc) · 23.3 KB

plugins.core.touchbar.manager.md

File metadata and controls

234 lines (201 loc) · 23.3 KB

docs » plugins.core.touchbar.manager


Touch Bar Manager Plugin. This handles both the Virtual Touch Bar and adding items to the physical Touch Bar.

Submodules

API Overview

API Documentation

Variables

Signature plugins.core.touchbar.manager.closeBox -> boolean
Type Variable
Description An optional boolean, specifying whether or not the system
Signature plugins.core.touchbar.manager.defaultGroup -> string
Type Variable
Description The default group.
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.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.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.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.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) -> none
Type Function
Description Updates a Touch Bar action.
Parameters
  • button - Button ID as string
  • group - Group ID as string
  • action - Action 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 action.
Parameters
  • button - Button ID as string
  • group - Group ID as string
  • label - Label 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.