KittyKatt / screenFetch

Fetches system/theme information in terminal for Linux desktop screenshots.
GNU General Public License v3.0
3.84k stars 454 forks source link

Display local and public IP address #693

Open TheHellSite opened 3 years ago

TheHellSite commented 3 years ago

Hello,

is it somehow possible to add custom lines to the config? I would like to check my public and local IP at the startup of my shell.

lip="ip -f inet addr show ens18 | grep -Po 'inet \K[\d.]+'" pip="curl ifconfig.me/ip"

IP: ${lip} (local) - ${pip} (public)

darealshinji commented 3 years ago

You should be able to add your stuff to the "custom lines" part of the script: https://github.com/KittyKatt/screenFetch/blob/master/screenfetch-dev#L198

TheHellSite commented 3 years ago

But then I would have to recompile my own version of screenfetch, am I right?

darealshinji commented 3 years ago

It's a script, there's nothing to compile.