I was planning to write a post of how to write a simple GTK application indicator. But there’s a really good explanation already from
candidtim that you can follow. It is actually very well explained.
What I’ll do instead is just drop here an update to the Tenma DC 72-2540 command line tool that can be found in the tenma-serial github repo. It is the
gtkIndicator.py script, that more or less looks like this:
And note that you can create a small
.desktop file, so your desktop environment knows about it 😀
[Desktop Entry] Name=Tenma DC power supply Comment= Exec=/usr/bin/tenmaSer/gtkIndicator.py Icon=/usr/bin/tenmaSer/logo.png Terminal=false Type=Application StartupNotify=true