https://github.com/olivierodo/mbp-btt-docker-touchbar
:whale: Docker touchbar widget for Macbook pro
https://github.com/olivierodo/mbp-btt-docker-touchbar
applescript bettertouchtool docker macbook touch widget
Last synced: 1 day ago
JSON representation
:whale: Docker touchbar widget for Macbook pro
- Host: GitHub
- URL: https://github.com/olivierodo/mbp-btt-docker-touchbar
- Owner: olivierodo
- Created: 2018-04-08T15:16:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-09T14:40:46.000Z (over 7 years ago)
- Last Synced: 2025-04-12T21:12:05.938Z (6 months ago)
- Topics: applescript, bettertouchtool, docker, macbook, touch, widget
- Language: AppleScript
- Size: 296 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BetterTouchTool - Docker running container display - Touch Bar
## Description
If you have a MacBook Pro with the touchbar this project will help you to customize your touchbar by :
- Displaying the number of docker running container
## Screenshot
Example Full bar (3rd widget) :
Example widget :

## Prerequisite
- MacBook pro with the Touch Bar
- [BetterTouchTool](https://www.boastr.net/downloads/) installed
- Docker install on the Macbook or a virtual machine
- You can read this article: [Hands-on: Creating a custom Touch Bar button using BetterTouchTool](https://9to5mac.com/2016/12/02/hands-on-custom-touch-bar-button-bettertouchtool-video/)## Config
First, you need to add a new widget on the global section. Find the configuration below.

#### Icon

#### Script
##### Local install
For the widget display paste the following script as shared on the previous screenshot.
[Script: Running docker on local](./touchbar.applescript)
##### Virtual machine install
###### Prerequisite
- [Enable the Docker API](https://success.docker.com/article/how-do-i-enable-the-remote-api-for-dockerd) (run docker with the option -H x.x.x.x:port)
⚠️ Before saving think about replacing the text *_________YOUR_DOCKER_TCP_ENDPOINT_________* by your docker api endpoint[Script: Running docker in a virtual machine](./touchbar-virtualbox.applescript)
And Voila !

### Other widget available on github
- [Spotify](https://github.com/olivierodo/MBP-BTT-spotify-touchbar)
- [Clipboard](https://github.com/olivierodo/MBP-BTT-clipboard-touchbar)
- [Wifi](https://github.com/olivierodo/MBP-BTT-wifi-touchbar)
- [Activity Monitor](https://github.com/olivierodo/MBP-BTT-activity-monitor-touchbar)
- [Volume](https://github.com/olivierodo/MBP-BTT-volume-touchbar)
- [Docker](https://github.com/olivierodo/MBP-BTT-docker-touchbar)