aboutsummaryrefslogtreecommitdiff
path: root/xres
diff options
context:
space:
mode:
Diffstat (limited to 'xres')
-rwxr-xr-xxres2
1 files changed, 1 insertions, 1 deletions
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