From 088b411ed489ecc0e0dc301a922b9c47ca427e9f Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Tue, 21 Apr 2026 01:24:40 +0100 Subject: revert(zprofile): drop DISPLAY=:0 hack now that xorg-xwayland is installed Sway sets DISPLAY in its own environment at compositor startup when xwayland support is enabled and the Xwayland binary is available, so all children (terminals, scripts) inherit it automatically. The zprofile override was only needed as a workaround while xorg-xwayland was missing. --- dot_config/zsh/dot_zprofile | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dot_config/zsh/dot_zprofile b/dot_config/zsh/dot_zprofile index 3a4af62..32b9245 100644 --- a/dot_config/zsh/dot_zprofile +++ b/dot_config/zsh/dot_zprofile @@ -81,10 +81,6 @@ export INPUTRC="$XDG_CONFIG_HOME/sh/inputrc" # ── Wayland ─────────────────────────────────────────────────────────────────── export XDG_CURRENT_DESKTOP=sway export MOZ_ENABLE_WAYLAND=1 -# Point X clients at sway's (lazy) XWayland socket. XWayland spawns on demand -# when the first X client connects; setting DISPLAY unconditionally avoids -# "unable to open X display" errors from tools like zbarcam. -export DISPLAY="${DISPLAY:-:0}" # ── XDG cleanup: keep $HOME tidy ───────────────────────────────────────────── # https://wiki.archlinux.org/title/XDG_Base_Directory#Partial -- cgit v1.2.3-70-g09d2