dotfiles/waybar/.config/waybar/ivpn-reconnect.sh
2022-03-06 16:22:37 +01:00

6 lines
226 B
Bash
Executable file

#!/usr/bin/env dash
ivpn connect -last \
&& notify-send -u low "IVPN" "Successfully reconnected to IVPN server:\n$(ivpn status | sed -n 2p | xargs)" \
|| notify-send -u critical "IVPN" "Failed to reconnect to IVPN\!"