Skip to content

Instantly share code, notes, and snippets.

@iliakonnov
Created June 19, 2023 08:48
Show Gist options
  • Save iliakonnov/2a536be58d97dc7a87ce2a3b3d54b0dd to your computer and use it in GitHub Desktop.
Save iliakonnov/2a536be58d97dc7a87ce2a3b3d54b0dd to your computer and use it in GitHub Desktop.
Sets same brightness on all displays
#!/bin/sh
set -e
lvl="$(brightnessctl -p -e -m s "$@" | cut -d, -f4)"
for i in $(brightnessctl -l -c 'backlight' -m | cut -d, -f1); do
echo "adjusting $i"
brightnessctl -e -d "$i" s "$lvl" &
done
wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment