Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/garbit/autotdm
Python script to automatically start Target Display Mode when connecting a Thunderbolt cable to your iMac or MacBook
https://github.com/garbit/autotdm
Last synced: about 1 month ago
JSON representation
Python script to automatically start Target Display Mode when connecting a Thunderbolt cable to your iMac or MacBook
- Host: GitHub
- URL: https://github.com/garbit/autotdm
- Owner: garbit
- Created: 2015-12-10T12:19:27.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-10T13:35:37.000Z (almost 9 years ago)
- Last Synced: 2023-03-12T02:16:43.962Z (over 1 year ago)
- Language: Python
- Size: 2.93 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AutoTDM
AutoTDM will automatically start Target Display Mode when connecting a Thunderbolt cable to your iMac or MacBook. Works when devices have gone to sleep and when you reboot your iMac host.The script polls your network interfaces and checks for when an established Thunderbolt bridge connection is assigned an IP. It then fires off the CMD+F2 keyboard command to your host machine (iMac) to start the Target Display Mode.
## Setup
Place thunderbolt_TDM.py and thunderbolt_TDM.command in your home directory## Running via command line
```python
python ~/thunderbolt_TDM.py
```## Running on Startup
If you want to have the script execute on iMac startup, add the shell file to your start up list:
- Apple Icon (top left) > System Preferences > Users and Groups > Login Items (right hand side)
- Click the + button and select the thunderbolt_TDM.command file located in your home directory (/Users/yourUserAccount)
- Enjoy :)