diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-02-16 11:39:32 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-02-16 11:39:32 +0900 |
| commit | b15e249d2d9cd503c39b3adede854f08f6fcf5fd (patch) | |
| tree | f13507bbe02e7ab8ef1ccdc30cf4c5a88050fb51 /ar/.local/share/qutebrowser/userscripts/qr | |
| parent | cd4ab86d34904aa4b1b39f97da71f21f9e9a0102 (diff) | |
updates
Diffstat (limited to 'ar/.local/share/qutebrowser/userscripts/qr')
| -rwxr-xr-x | ar/.local/share/qutebrowser/userscripts/qr | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ar/.local/share/qutebrowser/userscripts/qr b/ar/.local/share/qutebrowser/userscripts/qr new file mode 100755 index 0000000..8421524 --- /dev/null +++ b/ar/.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 |
