diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-02-16 11:36:46 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-02-16 11:36:46 +0900 |
| commit | cd4ab86d34904aa4b1b39f97da71f21f9e9a0102 (patch) | |
| tree | b9c0706ce9824df0f7b6d5f4e692b061f4395f25 | |
| parent | a8a00c1e4ee22c65feef98b397415d70a50c48b4 (diff) | |
created userscripts/qr
| -rwxr-xr-x | ar/.config/qutebrowser/userscripts/qr | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ar/.config/qutebrowser/userscripts/qr b/ar/.config/qutebrowser/userscripts/qr new file mode 100755 index 0000000..8421524 --- /dev/null +++ b/ar/.config/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 |
