aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-04-21 01:24:39 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-04-21 01:24:39 +0100
commit1f3c2328c19c3db5e835acc1c43b30435baabe3c (patch)
tree06b670dc332b5636239b7ffd011588b9534ad165
parent0c299966bb5914d78f6f65894d54aec9877145f0 (diff)
downloaddotfiles-1f3c2328c19c3db5e835acc1c43b30435baabe3c.tar.gz
dotfiles-1f3c2328c19c3db5e835acc1c43b30435baabe3c.tar.bz2
dotfiles-1f3c2328c19c3db5e835acc1c43b30435baabe3c.zip
fix(rqr): use --nodisplay to avoid X11 dependency on Wayland
zbarcam defaults to opening an X11 preview window, which fails on Sway without XWayland ("unable to open X display"). --nodisplay runs the scanner headlessly; we don't need the preview since -1 exits on the first barcode anyway.
-rwxr-xr-xdot_local/bin/executable_rqr2
1 files changed, 1 insertions, 1 deletions
diff --git a/dot_local/bin/executable_rqr b/dot_local/bin/executable_rqr
index 335f55b..89cb8bf 100755
--- a/dot_local/bin/executable_rqr
+++ b/dot_local/bin/executable_rqr
@@ -1,6 +1,6 @@
#!/usr/bin/env sh
-text="$(zbarcam -q -1 --raw)"
+text="$(zbarcam --nodisplay -q -1 --raw)"
printf '%s' "$text" | wl-copy
echo "$text"