From 21ba27be8423b5e3790cefd04306a2f287ffd247 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Tue, 21 Apr 2026 01:24:39 +0100 Subject: fix(rqr): restore zbarcam preview and propagate DISPLAY to XWayland zbarcam needs an X11 display for the live camera preview, which sway provides via XWayland. Two changes to make that reliable: - sway/config: add DISPLAY to the systemd/dbus user-environment imports, so anything launched through those paths (not just direct sway execs) can reach XWayland. - rqr: default DISPLAY to :0 (sway's default XWayland socket) when unset, as a belt-and-suspenders fallback. --- dot_config/sway/config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dot_config/sway/config') diff --git a/dot_config/sway/config b/dot_config/sway/config index bbd2eb0..b341df3 100644 --- a/dot_config/sway/config +++ b/dot_config/sway/config @@ -151,7 +151,7 @@ bar { } # ── Autostart ───────────────────────────────────────────────────────────────── -exec systemctl --user import-environment WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP -exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP +exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP +exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP exec mako exec "sleep 2 && ~/.config/sway/display-toggle.sh init" -- cgit v1.2.3-70-g09d2