From: Silvio Rhatto Date: Tue, 10 Jan 2017 15:43:13 +0000 (-0200) Subject: Updates xres X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=a87516e177ba31215e6811094e92cb3412be4a23;p=utils-x11.git Updates xres --- diff --git a/xres b/xres index d2b22c3..2a385cf 100755 --- a/xres +++ b/xres @@ -26,7 +26,7 @@ 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 $NAME; then +if ! xrandr | grep -q -e "^ $NAME"; then xrandr --newmode $MODELINE fi