
Para configurar mis pantallas para lightdm, uso la display-setup-script
opción en/etc/lightdm/lightdm.conf
Si lo señalo a un guión real
if xrandr | grep -q "HDMI-1 connected"; then
xrandr --output eDP-1 --mode 1920x1080 --output HDMI-1 --mode 1920x1080 --same-as eDP-1
else
xrandr --output eDP-1 --mode 1920x1080
fi
funciona bien.
Pero si uso una frase como
display-setup-script=if xrandr | grep -q "HDMI-1 connected"; then xrandr --output eDP-1 --mode 1920x1080 --output HDMI-1 --mode 1920x1080 --same-as eDP-1; else xrandr --output eDP-1 --mode 1920x1080; fi
esto falla. ¿Por qué pasó esto?