diff options
-rw-r--r-- | .config/waybar/config | 3 | ||||
-rwxr-xr-x | bin/iwctl-re | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/.config/waybar/config b/.config/waybar/config index a3e2fa7..d65a5e5 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -37,7 +37,8 @@ "network": { "format": "{ipaddr}", "format-disconnected": "Offline", - "interval": 1 + "interval": 1, + "on-click-right": "~/bin/iwctl-re" }, "battery": { "format": "E {capacity}%", 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) |