vvv, 3 months ago I have a stupid little script for this: <span style="color:#323232;">#!/bin/sh </span><span style="color:#323232;"> </span><span style="color:#323232;">setres() { </span><span style="color:#323232;"> output=$1 </span><span style="color:#323232;"> width=$2 </span><span style="color:#323232;"> height=$3 </span><span style="color:#323232;"> </span><span style="color:#323232;"> xrandr --output $output --brightness 0 --auto </span><span style="color:#323232;"> xrandr --delmode $output better </span><span style="color:#323232;"> xrandr --rmmode better </span><span style="color:#323232;"> </span><span style="color:#323232;"> xrandr --newmode better $(cvt $width $height | tail -n1 | cut -d'"' -f3) </span><span style="color:#323232;"> xrandr --addmode $output better </span><span style="color:#323232;"> xrandr --output $output --brightness 1 --mode better </span><span style="color:#323232;">} </span><span style="color:#323232;"> </span><span style="color:#323232;">setres "$@" </span><span style="color:#323232;"> </span>
I have a stupid little script for this:
<span style="color:#323232;">#!/bin/sh </span><span style="color:#323232;"> </span><span style="color:#323232;">setres() { </span><span style="color:#323232;"> output=$1 </span><span style="color:#323232;"> width=$2 </span><span style="color:#323232;"> height=$3 </span><span style="color:#323232;"> </span><span style="color:#323232;"> xrandr --output $output --brightness 0 --auto </span><span style="color:#323232;"> xrandr --delmode $output better </span><span style="color:#323232;"> xrandr --rmmode better </span><span style="color:#323232;"> </span><span style="color:#323232;"> xrandr --newmode better $(cvt $width $height | tail -n1 | cut -d'"' -f3) </span><span style="color:#323232;"> xrandr --addmode $output better </span><span style="color:#323232;"> xrandr --output $output --brightness 1 --mode better </span><span style="color:#323232;">} </span><span style="color:#323232;"> </span><span style="color:#323232;">setres "$@" </span><span style="color:#323232;"> </span>