Overview
Variables
List of application names (strings) to watch for dock badge counts.
Seconds between badge refresh polls (default: 15).
Menu bar text shown when no badges are active (default: "・").
Convert app icons to grayscale in the menu bar (default: false).
Badge counts above this value are shown as a plus sign ("⁺") instead of the number (default: 9).
Clicking an app's menu bar item snoozes its current badge count (default: true).
Methods
Set one or more of AppBadgeWatcher's spoon-level variables from a table. Call before :start().
Parameters
opts- a table with any ofappsToWatch,refreshInterval,nothingIndicator,grayscaleIcon,infiniteThreshold,snoozeOnClick
Called automatically by hs.loadSpoon(). Logs the loaded version.
Start the badge watcher: create the menu bar item and poll at the configured interval while any watched app is running.
Stop the badge watcher and remove the menu bar item.