{"id":20245186,"url":"https://github.com/simulatedgreg/electron-touchbar-shortcuts","last_synced_at":"2026-05-09T15:02:10.574Z","repository":{"id":91709231,"uuid":"147617253","full_name":"SimulatedGREG/electron-touchbar-shortcuts","owner":"SimulatedGREG","description":"A simple electron app built specifically for a TouchBar focused \"shortcuts\" application.","archived":false,"fork":false,"pushed_at":"2018-09-06T05:02:39.000Z","size":23,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-14T01:49:15.374Z","etag":null,"topics":["electron","macos","touchbar"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SimulatedGREG.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-09-06T04:24:57.000Z","updated_at":"2019-02-04T00:31:39.000Z","dependencies_parsed_at":"2023-03-13T17:39:41.321Z","dependency_job_id":null,"html_url":"https://github.com/SimulatedGREG/electron-touchbar-shortcuts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimulatedGREG%2Felectron-touchbar-shortcuts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimulatedGREG%2Felectron-touchbar-shortcuts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimulatedGREG%2Felectron-touchbar-shortcuts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimulatedGREG%2Felectron-touchbar-shortcuts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SimulatedGREG","download_url":"https://codeload.github.com/SimulatedGREG/electron-touchbar-shortcuts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241688626,"owners_count":20003508,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["electron","macos","touchbar"],"created_at":"2024-11-14T09:19:24.948Z","updated_at":"2026-05-09T15:02:05.520Z","avatar_url":"https://github.com/SimulatedGREG.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# electron-touchbar-shortcuts\n\n\u003e A bare bones setup for creating _shortcut_ touch bar applications using `electron`.\n\n### Overview\nIn order to create `TouchBar` items within `electron`, an instance of a `BrowserWindow` _must_ be focused in order for the items to show. This project satisfies that requirement by creating a dummy/invisible browser window that can be focused on-demand via a `globalShortcut`. Once you activate your touch bar action you can hide the application using `app.hide()` or by hitting \u003ckbd\u003eesc\u003c/kbd\u003e. Doing so will restore focus to the previous application.\n\nThe default `globalShortcut` for opening the touch bar app is \u003ckbd\u003eCommand\u003c/kbd\u003e + \u003ckbd\u003eShift\u003c/kbd\u003e + \u003ckbd\u003e2\u003c/kbd\u003e.\n\n### What's Included\nThis setup doesn't include too much, but gets you up and running with a nice development environment with support for `electron` reloading via `nodemon` and ES Module support thanks to `esm`.\n\n```bash\n# clone down the project\ngit clone https://github.com/SimulatedGREG/electron-touchbar-shortcuts.git\n\n# install dependencies\nyarn\n\n# run development setup\nyarn serve\n```\n\n\n### How can I add my own functionalties?\nIt's rather simple. All files within the `actions` directory are all individual TouchBar items, and each file is expected to export one of the supported `TouchBar` item types.\n\n* TouchBarButton\n* TouchBarColorPicker\n* TouchBarGroup\n* TouchBarLabel\n* TouchBarPopover\n* TouchBarScrubber\n* TouchBarSegmentedControl\n* TouchBarSlider\n* TouchBarSpacer\n\nSee full documentation at https://electronjs.org/docs/api/touch-bar.\n\n### That's it\nThere really isn't much more to this project. Now it's your turn to make your own actions that fit your workflow. Have fun!\n\n#### Todo\n* Packaging with `electron-builder`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimulatedgreg%2Felectron-touchbar-shortcuts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimulatedgreg%2Felectron-touchbar-shortcuts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimulatedgreg%2Felectron-touchbar-shortcuts/lists"}