waybar_vpn.sh - dotfiles - These are my dotfiles. There are many like it, but these are mine.
 (HTM) git clone git://jay.scot/dotfiles
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
       waybar_vpn.sh (264B)
       ---
            1 #!/bin/sh
            2 
            3 country=$(curl -s https://am.i.mullvad.net/country)
            4 
            5 if curl -s https://am.i.mullvad.net/connected | grep -q "server"; then
            6     echo "{\"text\":\"$country\",\"class\":\"connected\"}"
            7 else
            8     echo "{\"text\":\"$country\",\"class\":\"disconnected\"}"
            9 fi