diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-02-17 04:57:37 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-02-17 04:57:37 +0900 |
| commit | 0423b9850f06a32ef102547c2dabc3015d379ecc (patch) | |
| tree | b9aae5725b58af13a2d65763e389f391ef3b62c8 /global/.local/share/qutebrowser/userscripts/qr | |
| parent | 618a7d709658ada71730ea3ff33f0ec7fd937c1e (diff) | |
updates
Diffstat (limited to 'global/.local/share/qutebrowser/userscripts/qr')
| -rwxr-xr-x | global/.local/share/qutebrowser/userscripts/qr | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/global/.local/share/qutebrowser/userscripts/qr b/global/.local/share/qutebrowser/userscripts/qr new file mode 100755 index 0000000..8421524 --- /dev/null +++ b/global/.local/share/qutebrowser/userscripts/qr @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +pngfile=$(mktemp --suffix=.png) +trap 'rm -f "$pngfile"' EXIT + +qrencode -t PNG -o "$pngfile" -s 10 "$QUTE_URL" +echo ":open -t file:///$pngfile" >> "$QUTE_FIFO" +sleep 1 # give qutebrowser time to open the file before it gets removed |
