Lxpanel plugin to show eth0/wlan0 IP address on top bar
$> sudo apt-get --assume-yes install libfm-dev libfm-gtk-dev libgtk2.0-dev lxpanel-dev
$> git clone https://github.com/olignyf/raspberry-pi-showip.git
$> cd raspberry-pi-showip
$> make
$> sudo python install.py
Compile source code (directly on Raspberry Pi) => showip.so is produced
Paste it in /usr/lib/aarch64-linux-gnu/lxpanel/plugins/showip.so
$> sudo cp showip.so /usr/lib/aarch64-linux-gnu/lxpanel/plugins/
Paste it in /usr/lib/arm-linux-gnueabihf/lxpanel/plugins/showip.so
$> sudo cp showip.so /usr/lib/arm-linux-gnueabihf/lxpanel/plugins/
Restart lxpanel with the following under X, or reboot:
%> sudo lxpanelctl restart
But the panel won't appear yet, you have to add it in place by right-clicking on the top bar. Programmatically you can edit ~/.config/lxpanel/LXDE-pi/panels There is a python install script which may work in your case:
$> sudo python install.py
$> cat /home/pi/.cache/lxsession/LXDE-pi/run.log
You can check if all the libraries are found with
$> ldd /usr/lib/aarch64-linux-gnu/lxpanel/plugins/showip.so
(...)
liblxpanel.so.0 => not found
If for example liblxpanel.so.0 is not found like above, it's a problem
showip is also part of pisetup https://github.com/olignyf/pisetup
https://wiki.lxde.org/en/How_to_write_plugins_for_LXPanel
5$US fee for commercial use per unit using. 20$US one-time fee for code reuse.