I have a need to get the IP address of my PC and put it into the clipboard.
More specifically I want to put the following into the clipboard:
where xxx.xxx.xxx.xxx is the IP of my PC.
I use ssh to connect to unix boxes and need an easy way to set the display variable back to my PC.
So I came up with this to run in the systray, i would click on the systray icon and it loads my buffer and then i paste it into my ssh window.
I have the systray icon part figured out. I need help with getting my IP (and not 127.0.0.1) and pasting it and the rest of the text into the clipboard.
Any advice on obtaining the IP address would be helpfull. I think I can figure out the clipboard part on my own, but tips are appreciated of coarse.
Thanks in advance.