emacs-server-set-wayland-display.zsh 391 B

12345678910111213
  1. #!/usr/bin/env zsh
  2. setopt rcquotes
  3. printf '%s' "${WAYLAND_DISPLAY}" |
  4. /usr/bin/emacs --batch --insert=/dev/fd/0 \
  5. --eval \
  6. '(let ((wayland-display (buffer-string)))
  7. (require ''server)
  8. (server-eval-at
  9. "server"
  10. `(setenv "WAYLAND_DISPLAY" ,wayland-display)))'