From a87516e177ba31215e6811094e92cb3412be4a23 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 10 Jan 2017 13:43:13 -0200 Subject: Updates xres --- xres | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3