diff options
-rw-r--r-- | .config/waybar/config | 3 | ||||
-rwxr-xr-x | bin/iwctl-re | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/.config/waybar/config b/.config/waybar/config index d65a5e5..d32c360 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -38,7 +38,8 @@ "format": "{ipaddr}", "format-disconnected": "Offline", "interval": 1, - "on-click-right": "~/bin/iwctl-re" + "on-click-right": "~/bin/iwctl-re", + "on-click-middle": "notify-send 'WLAN Reload' 'Restart iwd.service'; sudo systemctl restart iwd.service" }, "battery": { "format": "E {capacity}%", diff --git a/bin/iwctl-re b/bin/iwctl-re index b79cee2..4343b30 100755 --- a/bin/iwctl-re +++ b/bin/iwctl-re @@ -1,5 +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) |