How to show hostname or username on system tray?
-
- Posts: 7
- Joined: Thu 07 Jun 2018, 15:10
- Location: 828 Pike Street San Diego, CA 92111
- Contact:
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
I am not sure about what you mean by system tray? (foreigner, you know ) 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.
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.
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-getlo ... ility.html
It is called 'getlocalip'
______________________________________________
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-getlo ... ility.html
It is called 'getlocalip'
Simple to compile a C program...The source is in 'pup-tools-20180225.tar.gz':
http://distro.ibiblio.org/quirky/quirky ... betical/p/
______________________________________________
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.
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.
[size=75]( ͡° ͜ʖ ͡°) :wq[/size]
[url=http://murga-linux.com/puppy/viewtopic.php?p=1028256#1028256][size=75]Fatdog multi-session usb[/url][/size]
[size=75][url=https://hashbang.sh]echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh[/url][/size]
[url=http://murga-linux.com/puppy/viewtopic.php?p=1028256#1028256][size=75]Fatdog multi-session usb[/url][/size]
[size=75][url=https://hashbang.sh]echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh[/url][/size]