notify-send.sh icon indicating copy to clipboard operation
notify-send.sh copied to clipboard

Enhancement: Show QR Codes generated in /tmp

Open duracell80 opened this issue 3 years ago • 0 comments

It would be great to add a python generated QR Code just big enough to be readable in the main body of the message.

$ sudo pip3 install pyqrcode
$ sudo pip3 install pypng
import pyqrcode
import png
from pyqrcode import QRCode

url = "http://www.example.com"
qrl = pyqrcode.create(url)
irl = "/tmp/qr_" + url.replace("://", "-") + ".png"

qrl.png(irl, scale =8, module_color=[0, 0, 0, 255], background=[0xff, 0xff, 0xff])

https://www.geeksforgeeks.org/python-generate-qr-code-using-pyqrcode-module/ https://github.com/phuhl/notify-send.py

duracell80 avatar Jul 06 '22 22:07 duracell80