Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 23 Apr 2014, 16:59
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Need a gtk window to display battery and temp info.
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
joel


Joined: 26 Feb 2009
Posts: 185
Location: Buffalo, NY & Nottingham, England

PostPosted: Wed 28 Apr 2010, 08:55    Post subject:  Need a gtk window to display battery and temp info.  

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
Back to top
View user's profile Send private message 
jemimah


Joined: 26 Aug 2009
Posts: 4309
Location: Tampa, FL

PostPosted: Wed 28 Apr 2010, 09:20    Post subject:  

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 ]
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0368s ][ Queries: 11 (0.0043s) ][ GZIP on ]