Compare commits

...

3 Commits

5 changed files with 14 additions and 3 deletions

View File

@ -12,13 +12,14 @@ WIFIDEVICE=wlan0
# Scan and list results
iwctl station $WIFIDEVICE scan
iwctl station $WIFIDEVICE get-networks
iwctl station $WIFIDEVICE get-hidden-access-points
# Print the command to connect. Replace $KEY and $SSID with the actual ones
# The manpage says: iwctl --passphrase=PASSPHRASE station DEVICE connect SSID
# but considering it says -P is shorthand for passphrase, I think this should
# work too while being more logical in my opinion.
echo "To connect:
% iwctl station $WIFIDEVICE connect \$SSID -P \$KEY
% iwctl station $WIFIDEVICE connect-[hidden] \$SSID -P \$KEY
"
# For permanent connections https://gitea.blesmrt.net/mikaela/shell-things/src/branch/master/var/lib/iwd

9
bash/usr-local-bin/bitwarden Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -x
if [ -f /snap/bin/bitwarden ]; then
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/104
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
snap run bitwarden --ozone-platform=x11 --ozone-platform-hint=wayland --enable-features=WaylandWindowDecorations "$@"
fi
set +x

View File

@ -0,0 +1 @@
../iwd-wifi.bash

View File

@ -11,7 +11,7 @@ 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;;"
# Might as well jpg this too
convert "$1".png "$1".jpg
magick "$1".png "$1".jpg
# Prints details
echo "SSID: $1"

View File

@ -11,7 +11,7 @@ qrencode -l H -t utf8 "WIFI:T:WPA;S:$1;P:$2;;"
# 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;;"
# Might as well jpg this too
convert "$1".png "$1".jpg
magick "$1".png "$1".jpg
# Prints details
echo "SSID: $1"