mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-12-22 18:52:46 +01:00
20 lines
467 B
Bash
Executable File
20 lines
467 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Argument: SSID
|
|
|
|
# -l H uses the highest error correction in case 30 % gets damaged
|
|
# (or gets art upon it)
|
|
|
|
PIXELSIZE=6
|
|
|
|
# Outputs QR code to terminal
|
|
qrencode -l H -t utf8 "WIFI:T:nopass;S:$1;;"
|
|
# Stores QR code as SSID.png, -s doubles pixel size from default 3
|
|
qrencode -l H -s $PIXELSIZE -o $1.png "WIFI:T:nopass;S:$1;;H:false;"
|
|
# Might as well jpg this too
|
|
magick "$1".png "$1".jpg
|
|
|
|
# Prints details
|
|
echo "SSID: $1"
|
|
echo "Stored as $1.png"
|