aboutsummaryrefslogtreecommitdiff
path: root/xres
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-01-10 13:43:13 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-01-10 13:43:13 -0200
commita87516e177ba31215e6811094e92cb3412be4a23 (patch)
treeab6aa3eb78971bfacb71824857652255d85a8e3e /xres
parent3a8f0e063562be65aa79c88e81555cd9b8468367 (diff)
downloadutils-x11-a87516e177ba31215e6811094e92cb3412be4a23.tar.gz
utils-x11-a87516e177ba31215e6811094e92cb3412be4a23.tar.bz2
Updates xres
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