looks like XDG_RUNTIME_DIR
is unset, so you can check what value contains this variable in your user environment by executing echo $XDG_RUNTIME_DIR
in the terminal and then change
WAYLAND_DISPLAY="wayland-1" wlr-randr --output HDMI-A-1 --off
to
XDG_RUNTIME_DIR="value-from-above" WAYLAND_DISPLAY="wayland-1" wlr-randr --output HDMI-A-1 --off