{"id":16216851,"url":"https://github.com/mrmekon/touchtest","last_synced_at":"2026-02-24T20:37:52.889Z","repository":{"id":145135253,"uuid":"96218615","full_name":"mrmekon/touchtest","owner":"mrmekon","description":"MacOS Touch Bar Control Strip daemon","archived":false,"fork":false,"pushed_at":"2017-07-04T13:21:28.000Z","size":27,"stargazers_count":22,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-27T08:51:49.137Z","etag":null,"topics":["cli","cocoa","command-line","control-strip","controlstrip","daemon","macos","objective-c","touch-bar","touchbar"],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrmekon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-04T12:59:34.000Z","updated_at":"2024-08-12T19:10:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"9565e077-7041-4263-af19-b347b458d793","html_url":"https://github.com/mrmekon/touchtest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mrmekon/touchtest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrmekon%2Ftouchtest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrmekon%2Ftouchtest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrmekon%2Ftouchtest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrmekon%2Ftouchtest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrmekon","download_url":"https://codeload.github.com/mrmekon/touchtest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrmekon%2Ftouchtest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29799210,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T19:56:48.334Z","status":"ssl_error","status_checked_at":"2026-02-24T19:55:43.372Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","cocoa","command-line","control-strip","controlstrip","daemon","macos","objective-c","touch-bar","touchbar"],"created_at":"2024-10-10T11:22:55.784Z","updated_at":"2026-02-24T20:37:52.864Z","avatar_url":"https://github.com/mrmekon.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TouchTest - MacOS Touch Bar Control Strip daemon\n\nExample of adding an icon to the Control Strip region of the Mac Touch Bar using\na headless/UI-less background app.  Icon is always displayed, regardless of which\napp is in the foreground.\n\nUses a private API, not suitable for the App Store.\n\nNo XCode project, no Nib/Xib, builds from command-line.  Just the minimum\nnecessary to add an always-available button to the Control Strip.\n\n\u003cimg src=\"https://github.com/mrmekon/touchtest/blob/master/screenshot.png\" width=\"800\"\u003e\n\nInspired by: https://github.com/a2/touch-baer\n\n## Usage\n\n### Build\n```\n$ make\n```\n\n### Build and launch\n```\n$ make run\n```\n\n### Kill running daemon\n```\n$ make kill\n```\n\n### Cleanup\n```\n$ make clean\n```\n\n### Design Notes\n\nLinks against private framework DFRFoundation.\n\nUses two DFRFoundation functions: ```DFRElementSetControlStripPresenceForIdentifier``` and ```DFRSystemModalShowsCloseBoxWhenFrontMost```\n\nUses private NSTouchBarItem method: ```+(void)addSystemTrayItem:(NSTouchBarItem *)item;```\n\nUses private NSTouchBar method: ```+(void)presentSystemModalFunctionBar:(NSTouchBar *)touchBar systemTrayItemIdentifier:(NSString *)identifier;```\n\nSimply creates a windowless NSApplication and an NSApplicationDelegate implementing the private functions.\n\n**MUST** execute from a mac _.app_ bundle.  The TouchBar service doesn't seem to communicate with a binary when launched outside of a bundle.  I did not investigate why.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrmekon%2Ftouchtest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrmekon%2Ftouchtest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrmekon%2Ftouchtest/lists"}