These command-line tools let you pipe signals between the sensors, speakers, and lights on your Apple silicon MacBook. Try a patch below, then install the toolkit with either command to run it in your terminal.
$ uv tool install mac-hardware-toys ⧉
$ pip install mac-hardware-toys ⧉
PREVIEW
Use microphone ↔ Pitch ↕ Volume A –K Play
— Hz
Sensors, Transformers, and Outputs
Sources
trackpad-xy
Default --low-hz 110 --high-hz 880 --low-hz 220 --high-hz 1760
microphone
Default
accelerometer
Default --axis x --axis y --axis z
ambient-light
Default --color-aware --channel lux --channel x --channel y --channel z --channel ch0 --channel ch1 --channel ch2 --channel ch3 --low-hz 100 --high-hz 800
gyroscope
Default
lid-angle
Default --low-hz 110 --high-hz 880
lid-magnetic-flux
Default
trackpad-force
Default
magnetometer
Default
temp-sensor
Default
power-sensor
Default --source system --source gpu
wifi-signal
Default
latency-bandwidth
Default
camera-motion
Default
airpods-accelerometer
Default
airpods-gyroscope
Default
sine
440 110 220 880
metronome
120 60 90 150
Transformers
autotune
--scale pentatonic --scale major --scale minor --scale chromatic
bandpass
400 4000 100 1000 1 40
frequency-shift
2 0.5 1.5
volume-shift
0.5 1.5 2
metronome
Default --min-bpm 60 --max-bpm 160
heartbeat
Default --interval 1
mix
- <(metronome 120) - <(sine 220) - <(sine 440) + trackpad X
Bypass
Direct
Outputs
speaker
Default
visualizer
Default --fps 30 --fps 60
trackpad-vibration
Default --level 0.5 --pitch level --volume frequency
keyboard-brightness
Default --gain 2
screen-brightness
Default --gain 2
capslock-light
Default --threshold 0.2
fan-speed
Default --alternate
magsafe-led
Default --color amber --color green
screen-color
Default --gain 1 --gain 4 --pitch brightness --volume hue