diff options
| author | 2026-04-21 01:24:39 +0100 | |
|---|---|---|
| committer | 2026-04-21 01:24:39 +0100 | |
| commit | 21ba27be8423b5e3790cefd04306a2f287ffd247 (patch) | |
| tree | 284e155c6d65a873e56a7af6f75c9d1b3a7f3cd8 /dot_config | |
| parent | 1f3c2328c19c3db5e835acc1c43b30435baabe3c (diff) | |
| download | dotfiles-21ba27be8423b5e3790cefd04306a2f287ffd247.tar.gz dotfiles-21ba27be8423b5e3790cefd04306a2f287ffd247.tar.bz2 dotfiles-21ba27be8423b5e3790cefd04306a2f287ffd247.zip | |
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.
Diffstat (limited to 'dot_config')
| -rw-r--r-- | dot_config/sway/config | 4 |
1 files changed, 2 insertions, 2 deletions
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" |
