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