From 739885fcd19cc48bbced36d86e9d818aa74303c3 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Wed, 21 Jul 2021 09:43:38 +0200 Subject: [PATCH] xsettings: fix xsettings script --- bin/xsettingsd-setup | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/xsettingsd-setup b/bin/xsettingsd-setup index 66f370f..75727e7 100755 --- a/bin/xsettingsd-setup +++ b/bin/xsettingsd-setup @@ -1,7 +1,7 @@ #!/bin/sh # Compute DPI of each screens -dpi=$(xrandr --current \ +dpis=$(xrandr --current \ | sed -En 's/^([^ ]+)* connected.* ([0-9]+)x.* ([0-9]+)mm x .*/\1 \2 \3/p' \ | while read output pixels mm; do @@ -21,7 +21,8 @@ dpi=$(xrandr --current \ echo "$output: ${dpi}dpi (corrected to ${corrected}dpi, rounded to ${rounded}dpi)" >&2 echo "$rounded" -done) + done | + tr '\n' ' ') # Use first screen DPI dpi=${dpis%% *}