File: qr

package info (click to toggle)
qutebrowser 3.6.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,432 kB
  • sloc: python: 72,411; javascript: 31,862; sh: 874; xml: 149; makefile: 52
file content (8 lines) | stat: -rwxr-xr-x 253 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
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