summaryrefslogtreecommitdiff
path: root/.local/bin/iwctl-re
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/iwctl-re')
-rwxr-xr-x.local/bin/iwctl-re9
1 files changed, 9 insertions, 0 deletions
diff --git a/.local/bin/iwctl-re b/.local/bin/iwctl-re
new file mode 100755
index 0000000..4343b30
--- /dev/null
+++ b/.local/bin/iwctl-re
@@ -0,0 +1,9 @@
+#!/bin/zsh
+
+notify-send "WLAN Reload" "Disconnect"
+iwctl station wlan0 disconnect
+
+sleep 5
+
+notify-send "WLAN Reload" "Reconnect"
+iwctl --passphrase $(pass router/passphrase) station wlan0 connect "$(pass router/name)" $(pass router/security)