Files
omarchy/bin/apple-display-brightness
David Heinemeier Hansson 3b04123104 Explain use
2025-06-23 11:27:35 -04:00

8 lines
248 B
Bash
Executable File

#!/bin/bash
if [[ -z "$1" ]]; then
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