Dotfiles-dwm/dwmbar/modules/publicip

14 lines
153 B
Plaintext
Raw Normal View History

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