Files
omarchy/bin/omarchy-cmd-apple-display-brightness

8 lines
249 B
Plaintext
Raw Permalink Normal View History

#!/bin/bash
2025-06-23 11:30:39 -04:00
if [[ $# -eq 0 ]]; then
2025-06-23 11:27:35 -04:00
echo "Adjust Apple Display Brightness by passing +5000 or -5000 (or any range from 0-60000)"
else
sudo asdcontrol $(sudo asdcontrol --detect /dev/usb/hiddev* | grep ^/dev/usb/hiddev | cut -d: -f1) -- "$1"
fi