wifiqr*.bash: specify H:false

As a very basic form of hidden network awareness
This commit is contained in:
Aminda Suomalainen 2024-07-15 11:08:22 +03:00
parent 7fcd19c4d7
commit 5d871bf3a4
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 8 additions and 6 deletions

View File

@ -2,14 +2,15 @@
# Argument: SSID
# -l H uses the highest error correction in case 30 % gets damaged (or artistried upon)
# -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;;"
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

View File

@ -1,15 +1,16 @@
#!/usr/bin/env bash
# Arguments: SSID and WPA2 (3 untested) passphrase
# Arguments: SSID and WPA2 passphrase
# -l H uses the highest error correction in case 30 % gets damaged (or artistried upon)
# -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:WPA;S:$1;P:$2;;"
qrencode -l H -t utf8 "WIFI:T:WPA;S:$1;P:$2;H:false;"
# Stores QR code as SSID.png, -s doubles pixel size from default 3
qrencode -l H -s $PIXELSIZE -o $1.png "WIFI:T:WPA;S:$1;P:$2;;"
qrencode -l H -s $PIXELSIZE -o $1.png "WIFI:T:WPA;S:$1;P:$2;H:false;"
# Might as well jpg this too
magick "$1".png "$1".jpg