dwmbar/modules/publicip
2023-01-02 13:59:13 -05:00

13 lines
153 B
Bash
Executable file

#!/bin/bash
# Prints out your public IP address
# Depends on curl
PREFIX=' '
get_pub_ip()
{
echo "$PREFIX$(curl -s ifconfig.co)"
}
get_pub_ip