summaryrefslogtreecommitdiff
path: root/bin/iwctl-re
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-02-06 16:32:20 +0100
committerDaniel Weipert <code@drogueronin.de>2023-10-30 09:52:23 +0100
commite57d8077cca60fc32ead0277f4807d90a96cb715 (patch)
treef1502d07a3c1569f5e3153f0c4ced30d9949d6a4 /bin/iwctl-re
parentaac699069c97fe85581fca4950bec5c7bddc7e2d (diff)
[iwctl+waybar] add wlan reconnect script
Diffstat (limited to 'bin/iwctl-re')
-rwxr-xr-xbin/iwctl-re5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/iwctl-re b/bin/iwctl-re
new file mode 100755
index 0000000..b79cee2
--- /dev/null
+++ b/bin/iwctl-re
@@ -0,0 +1,5 @@
+#!/bin/zsh
+
+iwctl station wlan0 disconnect
+sleep 5
+iwctl --passphrase $(pass router/passphrase) station wlan0 connect "$(pass router/name)" $(pass router/security)