dwmbar/modules/publicip
2019-10-24 20:09:35 +01:00

13 lines
152 B
Bash
Executable file

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