Skip to content

Instantly share code, notes, and snippets.

@ariofrio
ariofrio / active_gpu.1m.py
Last active June 6, 2020 05:58
Improved version of Bitbar Active GPU Plugin with support for changing GPU switching mode (like gfxCardStatus, but it works on macOS Mojave). Original: https://getbitbar.com/plugins/System/active_gpu.1m.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# <bitbar.title>Active GPU</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>Eric Ripa</bitbar.author>
# <bitbar.author.github>eripa</bitbar.author.github>
# <bitbar.desc>Displays an image based on the active GPU in multi-GPU machines, such as the MacBook Pro</bitbar.desc>
# <bitbar.image>http://i.imgur.com/v2MuPOi.png</bitbar.image>
# <bitbar.dependencies></bitbar.dependencies>
# <bitbar.abouturl></bitbar.abouturl>