mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-08-17 20:07:20 +02:00
Compare commits
No commits in common. "2953f724da14547994160c1adfd2d569f1de65ec" and "17545687abb948df8757ea538247d5e8371e1c52" have entirely different histories.
2953f724da
...
17545687ab
@ -12,14 +12,13 @@ WIFIDEVICE=wlan0
|
|||||||
# Scan and list results
|
# Scan and list results
|
||||||
iwctl station $WIFIDEVICE scan
|
iwctl station $WIFIDEVICE scan
|
||||||
iwctl station $WIFIDEVICE get-networks
|
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
|
# Print the command to connect. Replace $KEY and $SSID with the actual ones
|
||||||
# The manpage says: iwctl --passphrase=PASSPHRASE station DEVICE connect SSID
|
# The manpage says: iwctl --passphrase=PASSPHRASE station DEVICE connect SSID
|
||||||
# but considering it says -P is shorthand for passphrase, I think this should
|
# but considering it says -P is shorthand for passphrase, I think this should
|
||||||
# work too while being more logical in my opinion.
|
# work too while being more logical in my opinion.
|
||||||
echo "To connect:
|
echo "To connect:
|
||||||
% iwctl station $WIFIDEVICE connect-[hidden] \$SSID -P \$KEY
|
% iwctl station $WIFIDEVICE connect \$SSID -P \$KEY
|
||||||
"
|
"
|
||||||
# For permanent connections https://gitea.blesmrt.net/mikaela/shell-things/src/branch/master/var/lib/iwd
|
# For permanent connections https://gitea.blesmrt.net/mikaela/shell-things/src/branch/master/var/lib/iwd
|
||||||
|
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
#!/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
|
|
@ -1 +0,0 @@
|
|||||||
../iwd-wifi.bash
|
|
@ -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
|
# 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;;"
|
||||||
# Might as well jpg this too
|
# Might as well jpg this too
|
||||||
magick "$1".png "$1".jpg
|
convert "$1".png "$1".jpg
|
||||||
|
|
||||||
# Prints details
|
# Prints details
|
||||||
echo "SSID: $1"
|
echo "SSID: $1"
|
||||||
|
@ -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
|
# 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;;"
|
||||||
# Might as well jpg this too
|
# Might as well jpg this too
|
||||||
magick "$1".png "$1".jpg
|
convert "$1".png "$1".jpg
|
||||||
|
|
||||||
# Prints details
|
# Prints details
|
||||||
echo "SSID: $1"
|
echo "SSID: $1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user