1

I want to change the screen brightness of an external monitor using command line, for kdeconnect.

How can I achieve that?

0
1
echo "scale=2; $( xrandr --current --verbose | grep "Brightness:" | cut -d ":" -f 2 | cut -d $'\n' -f 1 ) +0.2" | bc |xargs -t xrandr --output HDMI-0 --brightness 

Yea weird solution but it works for me

echo "scale=2; $( xrandr --current --verbose | grep "Brightness:" | cut -d ":" -f 2 | cut -d $'\n' -f 1 ) - 0.2" | bc |xargs -t xrandr --output HDMI-0 --brightness

Try changing output via

xrandr --current --verbose | grep "Brightness:" 

and -f 2 to 1 or for multiple monitors as well

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.