Need a gtk window to display battery and temp info.

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
joel
Posts: 185
Joined: Thu 26 Feb 2009, 16:39
Location: Buffalo, NY & Nottingham, England

Need a gtk window to display battery and temp info.

#1 Post by joel »

Hey all I am using MacPup Opera 2 and since it cant use Pwidgets, nor can it properly read my temperature or battery state with its epplets, I was wondering if I could just make a gtk window.

I would like to make this appear in a gtk window instead of the terminal.

#!/bin/sh

rxvt -T battery -e bash -c "cat /proc/acpi/battery/C198/state ; read a "

Any way to do this? I know little of programming so I was hoping someone could help me out.
I am not a Mac, not a PC... I am a Puppy. :idea:

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#2 Post by jemimah »

Yep it's easy with Xdialog. Read the docs here:
http://xdialog.free.fr/
http://xdialog.free.fr/doc/index.html


[does macpup have a systray? you might be able to use Vattery. http://www.murga-linux.com/puppy/viewtopic.php?t=50696 ]

Post Reply