Skip to content

feat: ship a sketchybar-app-font glyph set and match app name prefixes - #27

Merged
Seb-GRAF merged 1 commit into
mainfrom
feat/app-glyphs
Oct 16, 2026
Merged

Seb-GRAF merged 1 commit into
mainfrom
feat/app-glyphs

Conversation

@Seb-GRAF

Copy link
Copy Markdown
Collaborator

Problem

Using sketchybar-app-font in workspace widgets means writing its 880-name map into appGlyphs by hand. Matching is also exact, while 11 of the font's names are wildcards such as Adobe Bridge*. Fixes #20.

Changes

  • examples/modules/sketchybar-app-font.json is generated from the font's v3.0.8 icon_map.json (CC0-1.0). It sets the appGlyphs token, with 880 app names plus "*": ":default:", and a sketchybarAppFontVersion token. A workspace widget opts in with "appGlyphs": "@token.appGlyphs", and root tokens.appGlyphs entries merge into the map.
  • scripts/update-app-glyphs.sh regenerates the module from the font's latest release, using zsh, curl and the system perl, with no new dependencies. Keys are sorted, so regenerating gives small diffs.
  • A key ending in * matches app names that start with the rest of the key. Exact bundle IDs and names win, then the longest such key, and a bare * is the fallback (appGlyph(for:in:) in BarView.swift). AeroSpace and yabai workspaces both use it.
  • Schema: appGlyphs also accepts a token reference.
  • README "Workspace appearance": installing the font, including the module, opting in, prefix keys and the regeneration script. The font isn't bundled.

Testing

  • swift test: 103 passed, including a new WidgetTests case for exact over longest prefix over fallback, and for no glyph when there is no *.
  • StableBar --validate accepts the module on its own, through an include and a nested include, and with root entries merged in. It rejects a non-string root entry, which shows the token resolves to the whole map.
  • Checked the module against the downloaded icon_map.json: every name maps to its icon.
  • Not yet checked in the running app: glyphs rendering with the font installed, a prefix match, and Customize with the 881-entry map. Screenshots to follow.

Notes:

  • Prefix keys match app names only, not bundle IDs, and matching is case-sensitive like exact keys.
  • Homebrew's font-sketchybar-app-font cask is at 3.0.7, one release behind the module, so the newest glyphs may be missing with it.

Merging

One commit, so any merge method keeps it in the changelog.

Claude Opus 5.5 via Claude Code

@Seb-GRAF
Seb-GRAF merged commit 878fccc into main Oct 16, 2026
4 checks passed
@Seb-GRAF
Seb-GRAF deleted the feat/app-glyphs branch October 16, 2026 06:50
@stablebar-releases

Copy link
Copy Markdown

🎉 This PR is included in version 0.5.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ship an app glyph set for sketchybar-app-font in workspace widgets

1 participant