Created
June 19, 2023 08:48
-
-
Save iliakonnov/2a536be58d97dc7a87ce2a3b3d54b0dd to your computer and use it in GitHub Desktop.
Sets same brightness on all displays
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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