From: Silvio Rhatto Date: Tue, 10 Jan 2017 15:53:42 +0000 (-0200) Subject: Simplify xres X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=93256841deaf8771a07ce853987f178b04c795d5;p=utils-x11.git Simplify xres --- diff --git a/xres b/xres index 2a385cf..5495b6c 100755 --- a/xres +++ b/xres @@ -25,11 +25,7 @@ MODELINE="`cvt $X $Y | grep -v '^#' | sed -e 's/^Modeline //'`" INTERFACE="`xrandr | grep " connected" | cut -d ' ' -f 1 | head`" NAME="`echo $MODELINE | cut -d ' ' -f 1 | sed -e 's/"//g'`" -# Add modeline -if ! xrandr | grep -q -e "^ $NAME"; then - xrandr --newmode $MODELINE -fi - # Apply +xrandr --newmode $MODELINE &> /dev/null xrandr --addmode $INTERFACE $NAME xrandr --output $INTERFACE --mode $NAME