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 19 Sep 2018, 14:43
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
How to show hostname or username on system tray?
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [9 Posts]  
Author Message
Benctes

Joined: 07 Jun 2018
Posts: 7
Location: 828 Pike Street San Diego, CA 92111

PostPosted: Sun 01 Jul 2018, 12:24    Post subject:  How to show hostname or username on system tray?  

is there someone who knows how to show the hostname or user in system tray? thanks in advance
Back to top
View user's profile Send private message Visit poster's website 
tallboy


Joined: 21 Sep 2010
Posts: 1020
Location: Oslo, Norway

PostPosted: Sun 01 Jul 2018, 19:22    Post subject:  

I am not sure about what you mean by system tray? (foreigner, you know Rolling Eyes ) Can you please be more specific?
After all, Puppylinux was designed for a single user, usually running as root.

Edit: OK, I think I know what you ask for. In my Lucid 5.2.8.7 I can right-click the network icon, and get Network status information, where I'll find the hostname, which is puppypc. Do you want a permanent view of the hostname in the system tray? You'll find the hostname in /etc/hostname/ or in /proc/sys/kernel/hostname. You could make a new icon with the hostname, to replace the existing network icon, if that is what you look for.

_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send private message 
tallboy


Joined: 21 Sep 2010
Posts: 1020
Location: Oslo, Norway

PostPosted: Fri 06 Jul 2018, 20:42    Post subject:  

Some little comment to my aswer would be the polite way, Benctes. Very Happy
_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 5142
Location: Ontario

PostPosted: Sat 07 Jul 2018, 11:47    Post subject:  

It would take some programming knowledge to put the info in the tray,
However there is a C language program that will return the host name and address that I find useful...


Barryk describes it here...
http://bkhome.org/news/201802/new-getlocalip-utility.html

It is called 'getlocalip'

Quote:
The source is in 'pup-tools-20180225.tar.gz':

http://distro.ibiblio.org/quirky/quirky6/sources/alphabetical/p/


Simple to compile a C program...

______________________________________________
Back to top
View user's profile Send private message 
Benctes

Joined: 07 Jun 2018
Posts: 7
Location: 828 Pike Street San Diego, CA 92111

PostPosted: Tue 10 Jul 2018, 11:05    Post subject:  

tallboy wrote:
Some little comment to my aswer would be the polite way, Benctes. Very Happy


thank you tallboy...
Back to top
View user's profile Send private message Visit poster's website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 13010
Location: Arizona USA

PostPosted: Tue 10 Jul 2018, 21:12    Post subject:  

Benctes, where exactly is Pike Street in San Diego?
Back to top
View user's profile Send private message 
tallboy


Joined: 21 Sep 2010
Posts: 1020
Location: Oslo, Norway

PostPosted: Thu 12 Jul 2018, 20:05    Post subject:  

You're welcome, Benctes. Very Happy
_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send private message 
rufwoof

Joined: 24 Feb 2014
Posts: 2534

PostPosted: Wed 25 Jul 2018, 02:59    Post subject:  

A trick I've used (not tried it in Puppy), is to use xclock. If you set the type to digital you can specify the date/time format ... and (the trick) include other characters. I built up a xclock that showed the various temperatures ...etc values as part of that and ran xclock with a size and geometry that fitted where I wanted that. Something like

xclock -digital -strftime "$TEMP"

and where $TEMP contained the date/time formatting along with other text.

That could just as easily show the hostname, and in Puppy (jwm) you can load the likes of xload, or xclock into the tray using the Swallow jwm tag.

_________________
( ͡° ͜ʖ ͡°) :wq
Back to top
View user's profile Send private message 
tallboy


Joined: 21 Sep 2010
Posts: 1020
Location: Oslo, Norway

PostPosted: Wed 25 Jul 2018, 23:01    Post subject:  

rufwoof, me like! Very Happy
_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [9 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
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.0979s ][ Queries: 12 (0.0222s) ][ GZIP on ]