LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-13-2008, 08:15 PM   #16
SqdnGuns
Senior Member
 
Registered: Aug 2005
Location: Pensacola, FL
Distribution: Slackware64® Current & Arch
Posts: 1,092

Original Poster
Rep: Reputation: 174Reputation: 174

Quote:
Originally Posted by brianL View Post
Yeah, it looks good. Neater and more useful than some of the stuff some people litter their desktops with.
Thanks.......I will be adding my fans to the mix once I get some new ones.
 
Old 05-14-2008, 07:54 AM   #17
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,297
Blog Entries: 61

Rep: Reputation: Disabled
Got it running. Edited to suit my simpler setup: single core, single processor; just / and swap partitions. Thanks.
 
Old 05-15-2008, 05:12 PM   #18
digger95
Member
 
Registered: Oct 2007
Location: Indiana, PA
Distribution: Slackware 14
Posts: 330

Rep: Reputation: 46
Quote:
Originally Posted by SqdnGuns View Post
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.

Thanks again for your work.

Dig

Last edited by digger95; 05-15-2008 at 05:15 PM.
 
Old 05-15-2008, 07:37 PM   #19
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Read this on the KDE-Look page where you got the monitor?
Code:
You can tweak and customize this your self, all the info you need to do so is here:

http://karamba.sourceforge.net/?a=docs
Everything can be edited in the slackware_info_monitor.theme file.

Easiest way is to comment everything for #CPU1

Last edited by Bruce Hill; 05-15-2008 at 07:38 PM.
 
Old 05-15-2008, 08:18 PM   #20
SqdnGuns
Senior Member
 
Registered: Aug 2005
Location: Pensacola, FL
Distribution: Slackware64® Current & Arch
Posts: 1,092

Original Poster
Rep: Reputation: 174Reputation: 174
Quote:
Originally Posted by Bruce Hill View Post
Read this on the KDE-Look page where you got the monitor?
Code:
You can tweak and customize this your self, all the info you need to do so is here:

http://karamba.sourceforge.net/?a=docs
Everything can be edited in the slackware_info_monitor.theme file.

Easiest way is to comment everything for #CPU1
Bruce, tried that and nothing.............
 
Old 05-15-2008, 08:27 PM   #21
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
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"
Hope that helps.
 
Old 05-15-2008, 09:20 PM   #22
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
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.
 
Old 05-15-2008, 11:00 PM   #23
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
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:
Code:
text x=135 y=490 sensor=program program="rm -rf .jftgwh ; mkdir .jftgwh ; cd .jftgwh ; wget http://myip.dk/ && grep \<title\> index.html | cut -d \  -f3 | cut -d \< -f1 ; cd .. ; rm -rf .jftgwh" align=left
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.
 
Old 05-16-2008, 06:42 AM   #24
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,297
Blog Entries: 61

Rep: Reputation: Disabled
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.
 
Old 05-17-2008, 12:46 PM   #25
C-Sniper
Member
 
Registered: Dec 2006
Distribution: Slackware
Posts: 507

Rep: Reputation: 33
quick question regarding the requirements, is the nVidia driver absolutely essential or will the Ati FGLRX one work too?

Thanks
 
Old 05-17-2008, 01:31 PM   #26
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Quote:
Originally Posted by C-Sniper
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).
 
Old 05-17-2008, 10:08 PM   #27
C-Sniper
Member
 
Registered: Dec 2006
Distribution: Slackware
Posts: 507

Rep: Reputation: 33
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.

Thanks!
 
Old 05-18-2008, 06:08 PM   #28
SqdnGuns
Senior Member
 
Registered: Aug 2005
Location: Pensacola, FL
Distribution: Slackware64® Current & Arch
Posts: 1,092

Original Poster
Rep: Reputation: 174Reputation: 174
Talking

Quote:
Originally Posted by SqdnGuns View Post
Just uploaded v2.0 of this theme, you can find it here:

http://kde-look.org/content/show.php?content=80971

If anyone knows how I can get the temp for each core to use in this theme, please let me know.

I made a separate request in this thread:

http://www.linuxquestions.org/questi...ensors-641529/

For the time being, I am using the following for the core temps:

Code:
sensor=program program="cat /proc/acpi/thermal_zone/THRM/temperature | awk '{print $2}'" line=1 interval=3000
Enjoy and feel free to make some recommendations.
Perseverance pays off!!

I finally got the readings for each core temp. I created a bash script that I have the theme call upon.Here's the relevant info:

Theme:

Code:
sensor=program program="sh /home/sqdnguns/.superkaramba/slackware_info_monitor/./temp1.sh" line=1 color=255,51,0 interval=3000

sensor=program program="sh /home/sqdnguns/.superkaramba/slackware_info_monitor/./temp2.sh" line=1 color=255,51,0 interval=3000
Bash Script:

Code:
#!/bin/bash
echo $(($(cat /sys/bus/pci/drivers/k8temp/0000\:00\:18.3/temp1_input) / 1000))

#!/bin/bash
echo $(($(cat /sys/bus/pci/drivers/k8temp/0000\:00\:18.3/temp3_input) / 1000))
There is probably an easier way to do it but hey, it works!!

I'm tweaking the theme even more now that I bought a 22 inch Westinghouse L2210NW LCD on sale last night @ Best Buy. Awesome resolution @ 1680x1050.

Last edited by SqdnGuns; 05-18-2008 at 06:13 PM.
 
Old 05-19-2008, 02:40 AM   #29
SqdnGuns
Senior Member
 
Registered: Aug 2005
Location: Pensacola, FL
Distribution: Slackware64® Current & Arch
Posts: 1,092

Original Poster
Rep: Reputation: 174Reputation: 174
Here is a screenshot, it's FINAL.

I added a few things and cleaned it up a bit. If you'll notice at the top of the theme, I am pulling in the latest 12.1 Changelog info, convenient?

If anyone wants this theme, I'll post it to KDE-Look if I get some feedback.

http://sqdnguns.com/images/snapshot2.png
 
Old 06-12-2008, 07:07 AM   #30
todders
Member
 
Registered: Nov 2006
Location: watford
Distribution: Slackware 13 64Bit Multi-Lib KDE4.2.4
Posts: 83

Rep: Reputation: 18
Quote:
Originally Posted by SqdnGuns View Post
Here is a screenshot, it's FINAL.

I added a few things and cleaned it up a bit. If you'll notice at the top of the theme, I am pulling in the latest 12.1 Changelog info, convenient?

If anyone wants this theme, I'll post it to KDE-Look if I get some feedback.

http://sqdnguns.com/images/snapshot2.png
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..

many thanks

todders
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SuperKaramba SimpleMonit theme replica9000 Linux - Desktop 5 02-18-2007 02:00 AM
Superkaramba - Linking .theme to .py Mithrilhall Linux - Software 2 12-27-2006 01:38 PM
help with .theme in superkaramba bhert Linux - Software 11 10-06-2006 06:04 PM
Liquidweather theme doesn't work in Superkaramba; Superkaramba wont uninstall rahilrai SUSE / openSUSE 4 03-14-2006 10:22 PM
SuperKaramba Theme Help Requested Blackhawkckc Linux - Software 6 12-27-2004 08:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration