then
displays=$(xrandr -q | grep " connected" | sed -e 's| .*||')
+ # Apply brightness configuration for each available display
for display in $displays; do
- xrandr --output "$display" --brightness "$val_new"
+ echo "Setting brightness to $val_new at $display..."
+ # Use "|| true" to not exit on any errors at this stage
+ xrandr --output "$display" --brightness "$val_new" || true
done
else
>&2 echo "No low-level-method chosen!"