Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felixerdy/touchbar
Atom package to use MacBook Touchbar
https://github.com/felixerdy/touchbar
atom mac package touchbar
Last synced: about 2 months ago
JSON representation
Atom package to use MacBook Touchbar
- Host: GitHub
- URL: https://github.com/felixerdy/touchbar
- Owner: felixerdy
- License: mit
- Created: 2017-06-22T18:28:25.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-05-10T16:36:33.000Z (over 3 years ago)
- Last Synced: 2024-06-11T17:10:07.483Z (7 months ago)
- Topics: atom, mac, package, touchbar
- Language: JavaScript
- Homepage: https://atom.io/packages/touchbar
- Size: 2.75 MB
- Stars: 50
- Watchers: 3
- Forks: 10
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# touchbar package
Add touchbar elements to atom
## Installation
`apm install touchbar`## How to use
Touchbar will be loaded on startup.
Press `ctrl-alt-o` to toggle touchbar## Current shipped features:
- Labels
- Buttons
- Insert Text Buttons
- Color picker
- Emoji Picker
- Edit Touchbar
- Set Icons
- You can either use the names provided here: http://hetima.github.io/fucking_nsimage_syntax/ (without @ and ") or use your own icons and provide an absolute path
- Insert Text (e.g. `{` or `[`). Please use `Button Text Insert` and insert your desired text in the command input![touchbar screenshot](touch_screenshot.png)
## How to change elements
There is now a basic editing function build in. Press the `Edit Touchbar` button on your Touchbar or go to `Packages -> touchbar -> Edit Touchbar`. You can choose the type of your element as well as the label, command and color.
Thanks to [@fand](https://github.com/fand) you can also add / remove and sort items in the edit view!![touchbar edit screenshot](touchbar-edit.png)
#### More advanced way:
Go to `Settings -> Packages -> touchbar` and update the `Elements` input. This input must be a valid json array of elements.
Example:
```js
[{"name":"color-picker","type":"color-picker"},{"name":"comment-button","type":"button","label":"//","command":"editor:toggle-line-comments","color":"#316ed4","icon":"","iconColor":"default"},{"name":"spacer","type":"button","size":"small","label":"","command":"tree-view:toggle","color":"#00716c","icon":"NSTouchBarSidebarTemplate","iconColor":"white"},{"name":"toggle-command-palette","type":"button","label":"🎨","command":"command-palette:toggle","iconColor":"default"},{"name":"toggle-github","type":"button","label":"GitHub","color":"#919191","command":"github:toggle-github-tab","icon":"","iconColor":"default"},{"name":"edit-touchbar","type":"button","label":"Touchbar","command":"touchbar:edit","color":"#6c233b"},{"type":"spacer","size":"flexible","name":"Config 1547128866278"},{"type":"button-insert","name":"Config 1545387178508","label":"[ ... ]","command":"[","icon":""},{"type":"button-insert","name":"Config 1545387144391","label":"{ ... }","command":"{"},{"type":"button-insert","name":"Config 1545390215291","label":"\\","command":"\\"}]
```