mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-21 18:12:53 +00:00
14 lines
152 B
Text
14 lines
152 B
Text
|
#!/bin/bash
|
||
|
|
||
|
# Prints out your public IP adress
|
||
|
# Depends on curl
|
||
|
|
||
|
PREFIX=' '
|
||
|
|
||
|
get_pub_ip()
|
||
|
{
|
||
|
echo "$PREFIX$(curl -s ifconfig.co)"
|
||
|
}
|
||
|
|
||
|
get_pub_ip
|