From cd4ab86d34904aa4b1b39f97da71f21f9e9a0102 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sun, 16 Feb 2025 11:36:46 +0900 Subject: created userscripts/qr --- ar/.config/qutebrowser/userscripts/qr | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 ar/.config/qutebrowser/userscripts/qr 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 -- cgit v1.2.3