SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Glad that you like it. Are you talking about both versions I have done?
Hi,
The one I downloaded was the 12.1 theme. It's very clean and looks especially nice on the the Slackware wallpaper I use. I just need to figure out how to modify it for a uni-processor then I'm good to go.
A picture is worth a thousand words ... who said that?
I have not edited your file very much, but here is what displays
the monitor in that screenshot. You can also see GKrellM, which
I've been using for years.
Code:
# ===========================================================================
# Name: slackware_info_monitor
# Version: 1.0
# Author: WSGrant
# E-mail: tingtong.farang@yahoo.com
# Last Modified: 20080418
# ===========================================================================
#
# My own Karamba hack for my Slackware box. If you like it great, if not, who cares.
# Learn to hack your own here:
# http://karamba.sourceforge.net/?a=docs
#
karamba x=0 y=0 w=240 h=660 interval=1000 locked=true
defaultfont color=255,255,255 fontsize=11 font="Sans Serif"
#Slackware icon.
image x=0 y=0 path="image/slackware.png"
#Print SO name:
text x=55 y=5 value="Slackware 12.1" fontsize=17
text x=55 y=25 value="Linux for the SubGenius" fontsize=14
#INFO
text x=50 y=60 value="User:"
text x=135 y=60 sensor=program program="echo ${USER}@`hostname`"
text x=50 y=75 value="Kernel:"
text x=135 y=75 sensor=program program="uname -r"
text x=50 y=90 value="Architechture:"
text x=135 y=90 sensor=program program="uname -m"
text x=50 y=105 value="KDE:"
text x=135 y=105 sensor=program program="kde-config --version | grep KDE | sed -e 's/.*: //'"
text x=50 y=120 value="QT:"
text x=135 y=120 sensor=program program="kde-config --version | grep Qt | sed -e 's/.*: //'"
text x=50 y=135 value="Time:"
text x=135 y=135 sensor=time format="hh:mm:ss" interval=1000
text x=50 y=150 value="Date:"
text x=135 y=150 sensor=time format="MM-dd-yyyy" interval=300000
text x=50 y=165 value="Uptime:"
text x=135 y=165 sensor=uptime format="%d day(s) %H:%M" interval=60000
#CPU's
text x=10 y=190 value="Processsors:" fontsize=14
text x=10 y=213 sensor=program program="cat /proc/cpuinfo | grep 'model name' | sed -e 's/.*: //' | sed 's/(tm)//'" fontsize=10
#CPU0
text x=50 y=245 value="Core 0"
text x=50 y=260 value="Usage:"
text x=105 y=253 sensor=cpu cpu=0 format="%v%" interval=1000
graph x=137 y=253 w=82 h=19 sensor=cpu cpu=0 points=100 color=0,255,0
image x=136 y=253 path="image/fcpu_quad.png"
#CPU1
# text x=50 y=280 value="Core 1"
# text x=50 y=295 value="Usage:"
# text x=105 y=288 sensor=cpu cpu=1 format="%v%" interval=1000
# graph x=137 y=288 w=82 h=19 sensor=cpu cpu=1 points=100 color=0,255,0
# image x=136 y=288 path="image/fcpu_quad.png"
#MEMORY
text x=10 y=325 value="Memory Usage:" fontsize=14
text x=50 y=350 value="RAM:"
text x=217 y=350 sensor=memory format="%umb of %tm MB" interval=1000 align=right
bar x=69 y=368 path="image/barload.png" sensor=memory format="%umb" interval=1000
image x=65 y=364 path="image/barlines.png"
text x=50 y=380 value="SWAP:"
text x=184 y=380 sensor=memory format="%us of %ts MB" align=center
bar x=69 y=398 path="image/barload.png" sensor=memory format="%us" interval=1000
image x=65 y=394 path="image/barlines.png"
#NETWORK
text x=10 y=420 value="Network:" fontsize=14
text x=50 y=445 value="eth0:"
text x=135 y=445 sensor=program program="/sbin/ifconfig eth0 | grep 'inet ' | cut -d : -f2 | cut -d ' ' -f1"
text x=50 y=460 value="In:"
text x=160 y=460 sensor=network device="eth0" format="%in KB/s" interval=1000 decimals=2 color=0,255,0
text x=50 y=475 value="Out:"
text x=160 y=475 sensor=network device="eth0" format="%out KB/s" interval=1000 decimals=2 color=0,255,0
text x=50 y=490 value="IP:"
text x=135 y=490 sensor=program program="rm -rf .jftgwh ; mkdir .jftgwh ; cd .jftgwh ; wget http://checkip.dyndns.org/index.html && cat index.html | cut -d ' ' -f 6 | cut -d '<' -f 1 ; cd
.. ; rm -rf .jftgwh" align=left
#HDD USAGE
text x=10 y=515 value="HD Usage:" fontsize=14
text x=50 y=535 value="Root:"
text x=215 y=540 sensor=disk format="%ug of %tg GB" mountpoint="/" interval=1000 align=right
bar x=69 y=554 path="image/barload.png" sensor=disk mountpoint="/" interval=1000
image x=65 y=550 path="image/barlines.png"
text x=50 y=565 value="Home:"
text x=215 y=570 sensor=disk format="%ug of %tg GB" mountpoint="/home" interval=1000 align=right
bar x=69 y=584 path="image/barload.png" sensor=disk mountpoint="/home" interval=1000
image x=65 y=580 path="image/barlines.png"
text x=50 y=595 value="Server Home:"
text x=215 y=600 sensor=disk format="%ug of %tg GB" mountpoint="/serverhome" interval=1000 align=right
bar x=69 y=614 path="image/barload.png" sensor=disk mountpoint="/serverhome" interval=1000
image x=65 y=610 path="image/barlines.png"
text x=50 y=625 value="Server 1:"
text x=215 y=630 sensor=disk format="%ug of %tg GB" mountpoint="/server1" interval=1000 align=right
bar x=69 y=644 path="image/barload.png" sensor=disk mountpoint="/server1" interval=1000
image x=65 y=640 path="image/barlines.png"
text x=50 y=625 value="Server 2:"
text x=215 y=630 sensor=disk format="%ug of %tg GB" mountpoint="/server2" interval=1000 align=right
bar x=69 y=644 path="image/barload.png" sensor=disk mountpoint="/server2" interval=1000
image x=65 y=640 path="image/barlines.png"
In case I can elicit a response from someone, unlike me,
who has studied and learned bash or whatever ...
The DNS servers at my ISP don't return the correct addy
for my local server, which is a DynDNS address. Because,
in China they block DynDNS.org addresses. After 3 years,
there's one way I've found to keep it on the internet, and
that is using ddclient on the server. Even that fails at times,
and I have to use a proxy server to the DynDNS website, login,
and manually change the address. However, from my workstation,
I have know no command to add in ../slackware_info_monitor.theme
which will output my correct IP address.
There are other things I want to configure according to
my personal tastes in this nice monitor. Removing the extra
space where CPU1 used to be, etc.
Bruce Hill, if you want to remove the empty space the only way to do it (or the only clean way anyway) is to subtract a constant value from each "y=" AFTER the first CPU. The pixel difference between the last INFO entry (uptime) and the "Processors:" label is 190-165=25. Therefore, the difference between the "Usage:" entry and the "Memory Usage" label should be 25. The current value of 325-260=65. 65-25=40. Therefore, subtract 40 from EVERY y= value starting at the "Memory Usage:" label (Simple stuff, and I assume you knew that, but oh well).
As for your IP problem, there are several sites that check your IP and you may be able to parse them fairly easily in the same manner. http://myip.dk/ is very simple and may do the trick (assuming it isn't blocked or anything). If the site design changes you may have to tweak your script, but right now `grep \<title\> index.html | cut -d \ -f3 | cut -d \< -f1` will do it, and so the following line should work:
For other possible sites (if that doesn't work), google "my IP". It should be noted that your monitoring line is split in two (that often happens when using a word-wrapping text editor), so that may be your problem right there -- but it may not be.
I haven't edited the spacing, but it doesn't look too bad. Changed the date to show day-month-year, changed the HD usage to show Slackware, Shared ( a 1 GB fat32, for downloaded documents, text files with useful info, etc), and XP Pro.
Interesting watching the CPU, RAM, and swap usages - when running a SlackBuild, for instance.
quick question regarding the requirements, is the nVidia driver absolutely essential or will the Ati FGLRX one work too?
Yes, it'll work, but you'll have to edit it. Version 1 doesn't do anything with the video card, so that'll work on your setup by default (though you would still have to customize it to your system -- for example, your partition setup). Version 2 could probably be adapted to your setup, but you'd need to change some things to get it to read the temperature from your ATI card instead of the nVidia card (if your card supports temperature monitoring).
Well my card is in a laptop (Radeon Xpress 200M) so i do not think i will have to worry about it. My main concern was with the Nvidia drivers and if they had any graphical impact on the program.
Hello is there nay chance of you re-posting this on kde look or emailing to me ,i really enjoyed an earlier version of this and my desktop looks a bit bare without it..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.