Generate QR codes of Wi-Fi networks
Eventually, all dependencies should become optional
-
the fish shell (will make a shell-agnostic binary later, in Go)
-
ImageMagick (the
displaycommand) -
The
qrcodecommand, install it like this:$ go install github.com/skip2/go-qrcode/qrcode@latest
-
To leave out some arguments
- NetworkManager as the system's network manager
If you don't have this, you can still use wifiqr, but you'll have to provide all arguments (the name, password and "WPA" or "WEP")
- Make sure your current shell is fish:
$ echo $SHELL /usr/bin/fish
- Install
qrcodeand put the qrwifi function in your fish config:$ go install github.com/skip2/go-qrcode/qrcode@latest $ git clone https://github.com/ewen-lbh/wifiqr $ cp wifiqr/wifiqr.fish ~/.config/fish/functions/ $ rm -rf wifiqr
wifiqr [<name> [<password> [WPA|WEP]]]
Any unspecified argument will be auto-detected from /etc/NetworkManager/system-connections/<name>.nmconnection.
If <name> is not specified, it is assumed to be the currently in-use network (see nmcli dev wifi)