diff --git a/bin/apple-display-brightness b/bin/apple-display-brightness index b1f6c9e..8d091f8 100755 --- a/bin/apple-display-brightness +++ b/bin/apple-display-brightness @@ -1,3 +1,7 @@ #!/bin/bash -sudo asdcontrol $(sudo asdcontrol --detect /dev/usb/hiddev* | grep ^/dev/usb/hiddev | cut -d: -f1) -- "$1" +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