This script uses ddcutil and allows you to also control the brightness of external displays. It changes the brightness of the display that you are currently focused in.