mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-08-17 11:57:22 +02:00
Compare commits
3 Commits
17545687ab
...
2953f724da
Author | SHA1 | Date | |
---|---|---|---|
2953f724da | |||
c2c19323df | |||
36f88b78bb |
@ -12,13 +12,14 @@ 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 \$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
|
# For permanent connections https://gitea.blesmrt.net/mikaela/shell-things/src/branch/master/var/lib/iwd
|
||||||
|
|
||||||
|
9
bash/usr-local-bin/bitwarden
Executable file
9
bash/usr-local-bin/bitwarden
Executable 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
|
1
bash/usr-local-bin/iwd-wifi.bash
Symbolic link
1
bash/usr-local-bin/iwd-wifi.bash
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../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
|
||||||
convert "$1".png "$1".jpg
|
magick "$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
|
||||||
convert "$1".png "$1".jpg
|
magick "$1".png "$1".jpg
|
||||||
|
|
||||||
# Prints details
|
# Prints details
|
||||||
echo "SSID: $1"
|
echo "SSID: $1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user