diff options
| author | 2026-04-21 01:24:39 +0100 | |
|---|---|---|
| committer | 2026-04-21 01:24:39 +0100 | |
| commit | 1f3c2328c19c3db5e835acc1c43b30435baabe3c (patch) | |
| tree | 06b670dc332b5636239b7ffd011588b9534ad165 /dot_local/bin | |
| parent | 0c299966bb5914d78f6f65894d54aec9877145f0 (diff) | |
| download | dotfiles-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.
Diffstat (limited to 'dot_local/bin')
| -rwxr-xr-x | dot_local/bin/executable_rqr | 2 |
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" |
