HackMac ๐
Description ๐
HackMac is a set of Ruby tools specifically designed for managing and
customizing Hackintosh configurations. While primarily intended for users with
Hackintosh setups, it may also be useful for ordinary Mac users who want to
leverage its features for monitoring system performance using gfxmon
.
Documentation
Complete API documentation is available at: GitHub.io
Tools ๐ ๏ธ
efi
- EFI Partition Management ๐
Manage OpenCore EFI partitions including: - Upgrading OpenCore and kernel extensions (kexts) ๐ง - Committing changes to git repositories ๐พ - Mounting/unmounting EFI volumes ๐ - Cloning EFI partitions between devices ๐
usb
- Bootable USB Creator ๐ฅ๏ธ
Create bootable USB drives for macOS installation with:
- Format USB device with GPT partition scheme ๐
- Create bootable installer using Appleโs createinstallmedia
โก
- Initialize git repository on EFI partition ๐ฆ
gfxmon
- GPU Performance Monitor ๐ฎ
Display real-time performance statistics for your GPU in the terminal including: - Temperature, clock rates, fan rotations ๐ก๏ธ - Memory usage and power consumption โก - Color-coded visualizations with ANSI terminal graphics ๐จ
Installation ๐ฆ
Using RubyGems ๐
bash
gem install hackmac
Using Bundler ๐ฆ
Add to your Gemfile:
ruby
gem 'hackmac'
Configuration โ๏ธ
First run efi
without arguments to display available commands and initialize
the default configuration file at:
~/.config/hackmac/hackmac.yml
To use a custom configuration file, set the environment variable:
bash
export HACKMAC_CONFIG=~/config/hackmac/other.yml
Usage Examples ๐ฏ
EFI Management ๐
```bash # Mount EFI partition efi mount
Clone EFI partitions
efi clone /dev/disk0s1 /dev/disk1s1
Upgrade OpenCore
efi oc_upgrade
Show kext versions
efi kexts ```
GPU Monitoring ๐ฎ
```bash # Real-time monitoring with 2-second updates gfxmon -n 2
Monitor specific metric
gfxmon -m โTemperature(C)โ
Output as JSON for scripting
gfxmon -j ```
USB Creation ๐ฅ๏ธ
bash
# Create bootable USB
usb /dev/disk2
Download ๐
The homepage of this library is located at: https://github.com/flori/hackmac
Author ๐จโ๐ป
License ๐
This software is licensed under the MIT license. โ