Controlling screen brigthness with ubuntu
#!/bin/bash
# Setting low brightness at night
xrandr --display :0 --output DP-0 --brightness 0.8 --verbose
xrandr --display :0 --output HDMI-0 --brightness 0.8 --verbose
xrandr --display :0 --output VGA-0 --brightness 0.8 --verbose
echo "Set brigthness to 0.8"
xrandr --current --verbose | grep -i "Brightness:*" | grep -io -m 1 [[:digit:]].[[:digit:]]