From d9008f094da886716f102414010398e1b06a83fd Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Wed, 5 Aug 2015 09:36:26 +0200 Subject: [PATCH] xsettings: do not rely on a primary screen It is likely that we don't have one. --- bin/xsettingsd-setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/xsettingsd-setup b/bin/xsettingsd-setup index 8a6aa91..259ed68 100755 --- a/bin/xsettingsd-setup +++ b/bin/xsettingsd-setup @@ -2,8 +2,8 @@ # Don't try to guess DPI. For a laptop, we don't want the same DPI as # for an external screen. Just hardcode stuff... -case $(hostname),$(xrandr --current | sed -n 's/\([^ ]*\) connected primary.*/\1/p') in - zoro,eDP1) dpi=144 ;; +case $(hostname),$(xrandr --current | sed -n 's/\([^ ]*\) connected .*/\1/p' | sort | tr '\n' ':') in + zoro,eDP1:) dpi=144 ;; *) dpi=96 ;; esac