dotfiles/waybar/.config/waybar/ivpn-reconnect.sh

8 lines
233 B
Bash
Executable File

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