{"repo":"pirate/mac-hardware-toys","free":true,"listed":false,"github":"https://github.com/pirate/mac-hardware-toys","clone":"git clone https://github.com/pirate/mac-hardware-toys.git","description":"🔆 Programmatically control Mac keyboard & display brightness, accelerometer data, fan speed, microphone, speaker, and more like modular synth components connected by shell piping.","language":"Python","stars":283,"topics":["mac","brightness","keyboard","backlight","c","terminal","utilities","accelerometer","audio","bash"],"license":null,"category":"cli-tools","readme_excerpt":"🎛️ CLI to Get/Set/Stream Mac Hardware Outputs & Sensors Inputs pip install mac-hardware-toys --- This is a suite of composable CLI tools for getting, setting, and streaming/transforming raw Mac hardware sensor values. - sensors: accelerometer , microphone , lid-angle , ambient-light , gyroscope - transformers: volume-shift , frequency-shift , bandpass , metronome , heartbeat - outputs: speaker , keyboard-brightness , screen-brightness , visualizer , fan-speed --- Most commands have basic args like --set ... , --json , --raw , making it easy to do useful things with your mac hardware. - 💡 Flash your ⌨️ keyboard lights + play a sound when a background processes completes - ☀️ Pulse your screen brightness in sync with detected ambient 🎵 music bpm / ❤️ your detected heartbeat via accelerometer - 🔬 Get/Set/Stream accelerometer+gyroscope+microphone/etc. data as simple --raw scalar values or --json , or... All commands can also pipe in/out a a simple 🎼 mono audio format. 🎤 read realtime sensor feeds represented as sine waves 🎛️ mix/filter/transform those sine waves to shape them 🔊 emit piped realtime signal to speakers/ any other hw output --- [!TIP] Some truly wild things are possible now that you can pipe together anything on your Mac... 🎷 Share your craziest combos! --- --- Quickstart Examples --- Tools accelerometer - Purpose: read Apple SPU accelerometer and emit mono signal. - Args: --rate ( 5000 Hz and low volume - high volume as light goes 0% - 100% . - Args: --rate","default_branch":null,"files":null,"tree":[],"storefront":"/r/pirate","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pirate/mac-hardware-toys/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}