Replace :ipv4 with your external IPv4 and :ip6 with your IPv6 (Linux and MacOS)
Paste this command in a terminal to install the package
espanso install ip64
curl
:ip4
:ip6
# ip64 package matches: - trigger: ":ip4" replace: "{{output}}" vars: - name: output type: shell params: cmd: "echo $(curl https://api.ipify.org)" - trigger: ":ip6" replace: "{{output}}" vars: - name: output type: shell params: cmd: "echo $(curl https://api64.ipify.org)"