From d1879ae338177a85a432e8d698583e932a7e6ece Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Wed, 22 Jan 2020 22:38:57 +0100 Subject: [PATCH] xsettingsd: correct DISPLAY for the whole script --- bin/xsettingsd-setup | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/xsettingsd-setup b/bin/xsettingsd-setup index 7fd3a41..f9e36c8 100755 --- a/bin/xsettingsd-setup +++ b/bin/xsettingsd-setup @@ -1,5 +1,7 @@ #!/bin/sh +DISPLAY=${DISPLAY%.0} + # 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),$(autorandr --current --skip-options gamma) in @@ -20,7 +22,7 @@ change() { } > ~/.xsettingsd # Signal xsettingsd - systemctl --user reload xsettingsd@$(systemd-escape -- "${DISPLAY%.0}").service + systemctl --user reload xsettingsd@$(systemd-escape -- "$DISPLAY").service # Also use xrdb for very old stuff (you know, LibreOffice) echo Xft.dpi: $dpi | xrdb -merge