#Shadow Monitor
#
#The work is not mine just re-arranging stuff to suit me.
#
# Shadow Monitor v1.4
# Author: Jupiter
# Created: 2006-11-26
# Modified: 2008-02-013
# Needs nvidia-settings nvclock hddtemp lm_sensors
# chmod u+s /usr/sbin/hddtemp
# chmod u+s /usr/local/bin/nvclock
# chmod u+s /usr/local/bin/nvclock_gtk
# or if installed via ebuild
# chmod u+s /usr/bin/nvclock
# chmod u+s /usr/bin/nvclock_gtk
#
#######################
#general
#KARAMBA x=500 y=350 w=272 h=450 interval=500 lock=false
#KARAMBA x=0 y=0 w=165 h=365 interval=1000 locked=true
#image x=0 y=0 path="images/bg.png" name="background"
#image x=-2 y=0 path="images/sh.png"
#######################
## Theme Defaults
karamba x=0 y=0 w=165 h=365 interval=1000 locked=true
##defaultfont shadow color=0,0,0
#defaultfont color=255,255,255 fontsize=9 font="Bitstream Vera Sans" shadow=2 bgcolor=0,0,0
#defaultfont color=255,255,255 bgcolor=16,117,238 shadow=1 fontsize=9 font="Cure" #white
#defaultfont font="Sans" fontsize=9 color=255,255,255 shadow=1
#defaultfont color=255,255,255 fontsize=9 font="Bitstream Vera Sans" shadow=1 bgcolor=0,0,0
#defaultfont color=0,0,0 fontsize=9 font="Bitstream Vera Sans" bgcolor=255,255,255 #black
#defaultfont color=255,255,255 bgcolor=16,117,238 shadow=1 fontsize=10 font="Arial" #white
#defaultfont color=0,0,255 bgcolor=16,117,238 shadow=1 fontsize=10 font="Arial" #blue
defaultfont color=0,255,255 bgcolor=16,117,238 shadow=1 fontsize=9 font="Cure" #cyan
#defaultfont color=102,0,0 bgcolor=16,117,238 shadow=1 fontsize=9 font="Cure" #bloodred
#defaultfont color=0,255,127 fontsize=9 font="Cure"
#defaultfont color=0,255,127 fontsize=9 font="Cure" #spring green
#defaultfont color=173,255,47 bgcolor=16,117,238 shadow=1 fontsize=10 font="Arial" #green yellow
#defaultfont color=34,139,34 bgcolor=16,117,238 shadow=1 fontsize=10 font="Arial" #forest green
#defaultfont color=255,255,0 bgcolor=16,117,238 shadow=1 fontsize=10 font="Arial" #yellow
#defaultfont color=255,0,0 bgcolor=16,117,238 shadow=1 fontsize=10 font="Arial" #red
#######################
## BackGround Images and Icons
#image x=0 y=0 path="image/transparent-background.png"
#image x=-15 y=25 path="icons/case5.png"
#image x=3 y=78 path="icons/cpu6.png"
#image x=10 y=255 path="icons/temperature2.png"
#image x=10 y=335 path="icons/memory1.png"
#image x=0 y=430 path="icons/fans_temps.png"
#######################
x=0 y=0
## User@Host
text x=50 y=0 sensor=program program="echo ${USER}@`hostname`" fontsize=14 font="Arial" color=100,255,100
## CPU Type
text x=43 y=15 sensor=program program="cat /proc/cpuinfo | grep 'model name' | awk '{print $4$6,$7}' | tail -1" color=255,200,0
text x=95 y=15 sensor=program program="cat /proc/cpuinfo | grep 'model name' | awk '{print $11}' | tail -1" color=255,200,0
#######################
x=5 y=25
## Misc Sys Info
#text x=0 y=0 value="Kernel:"
#text x=55 y=0 sensor=program program="uname -r"
#text x=0 y=10 value="KDE/QT:"
#text x=55 y=10 sensor=program program="kde-config --version | grep KDE | sed -e 's/.*: //'"
#text x=80 y=10 value="/"
#text x=85 y=10 sensor=program program="kde-config --version | grep Qt | sed -e 's/.*: //'"
#text x=0 y=20 value="Uptime:"
#text x=55 y=20 sensor=uptime format="%d D %H h: %M m: %S s" interval=1000
#text x=0 y=30 value="Date:"
#text x=55 y=30 sensor=time format="ddd MM-dd-yyyy" interval=1000
#text x=0 y=40 value="Time:"
#text x=55 y=40 sensor=time format="hh:mm:ss" interval=1000
#text x=0 y=50 value="Users:"
#text x=55 y=50 sensor=program program="users" interval=30000
## Sensor CPU Stats ## "type" depends on your mainboard
text x=0 y=0 value="MHz:"
#text x=55 y=0 sensor=program program="cat /proc/cpuinfo | grep 'cpu MHz' | sed -e 's/.*: //'| sed -e 's/\..../ #MHz/' | line 1" interval=600000
text x=55 y=0 value="2708 MHz"
text x=105 y=0 value="/"
#text x=110 y=0 sensor=program program="cat /proc/cpuinfo | grep 'cpu MHz' | sed -e 's/.*: //'| sed -e 's/\..../ #MHz/' | line 1" interval=600000
text x=110 y=0 value="2708 MHz"
text x=0 y=10 value="Cache:"
text x=55 y=10 value="1024 KB"
text x=100 y=10 value="/"
text x=110 y=10 value="1024 KB"
#######################
x=0 y=45
## CPU1 Load
text x=5 y=0 value="CPU1:" fontsize=8
text x=38 y=0 sensor=cpu format="%v%" interval=1000 fontsize=8 color=1,247,1
bar x=60 y=5 w=20 h=0 vertical=false sensor=cpu path="image/bar4.png" max=100
image x=5 y=10 path="image/grilla.png"
graph x=7 y=10 w=150 h=50 sensor=cpu points=100 color=0,255,255 interval=500
graph x=7 y=10 w=150 h=50 points=100 color=255,255,0 sensor=cpu format="%system" cpu=0 interval=500
graph x=7 y=10 w=150 h=50 points=100 color=1,247,1 sensor=cpu format="%user" cpu=0 interval=500
## CPU2 Load
text x=5 y=65 value="CPU2:" fontsize=8
text x=38 y=65 sensor=CPU cpu=1 format="%v%" interval=1000 fontsize=8 color=1,247,1
bar x=60 y=70 w=20 h=0 vertical=false sensor=cpu cpu=1 path="image/bar4.png" max=100
image x=5 y=75 path="image/grilla.png"
graph x=7 y=75 w=150 h=50 sensor=CPU cpu=1 points=100 color=0,255,255 interval=500
graph x=7 y=75 w=150 h=50 points=100 color=255,255,0 sensor=cpu format="%system" cpu=1 interval=500
graph x=7 y=75 w=150 h=50 points=100 color=1,247,1 sensor=cpu format="%user" cpu=1 interval=500
image x=43 y=125 path="image/backbar5.png"
text x=45 y=125 value="CPU" fontsize=09
text x=68 y=125 value="System" fontsize=09 color=255,255,0
text x=106 y=125 value="User" fontsize=09 color=1,247,1
#######################
x=3 y=185
# Temp Sensor Bar Graphs
## CPU1 Temp
image x=0 y=0 path="image/backbar2.png"
bar x=0 y=0 w=150 h=12 vertical=false sensor=sensor type="Core0-T" path="image/bar66.png" max=65 interval=10000
text x=0 y=1 value="CPU 1 Temp" color=0,255,255
text x=160 y=1 sensor=sensor type="Core0-T" format="%v.0C°" align="right" interval=10000
## CPU2 Temp
image x=0 y=14 path="image/backbar2.png"
bar x=0 y=14 w=150 h=12 vertical=false sensor=sensor type="Core1-T" path="image/bar44.png" max=65 interval=10000
text x=0 y=15 value="CPU 2 Temp" color=0,255,255
text x=160 y=15 sensor=sensor type="Core1-T" format="%v.0C°" align="right" interval=10000
## Chipset Temp
image x=0 y=28 path="image/backbar2.png"
bar x=0 y=28 w=150 h=12 vertical=false sensor=sensor type="Chipset" path="image/bar66.png" max=85 interval=10000
text x=0 y=29 value="Chipset Temp" color=0,255,255
text x=160 y=29 sensor=sensor type="Chipset" format="%v.0C°" align="right" interval=10000
## Nvidia Board Temp
#image x=0 y=42 path="image/backbar2.png"
#bar x=0 y=42 w=150 h=12 vertical=false sensor=program program="/usr/bin/nvidia-settings -q gpucoretemp |grep '):' | awk '{print $4}'" path="image/bar44.png" max=100 interval=10500
#text x=0 y=43 value="nVidia Board" color=0,255,255
#text x=160 y=43 value="°" align="right"
#text x=155 y=43 sensor=program program="/usr/bin/nvclock -i |grep 'Board temperature:' | awk '{print $3}'" align="right" interval=10000
## Nvidia GPU Temp
image x=0 y=42 path="image/backbar2.png"
bar x=0 y=42 w=150 h=12 vertical=false sensor=program program="nvidia-settings -q gpucoretemp |grep '):' | awk '{print $4}'" path="image/bar44.png" max=90 interval=13100
text x=0 y=43 value="nVidia GPU" color=0,255,255
text x=160 y=43 value="0C°" align="right"
text x=142 y=43 sensor=program program="nvidia-settings -q gpucoretemp |grep '):' | awk '{print $4}'" align="right" interval=13000
## Nvidia Fan Speed
image x=0 y=56 path="image/backbar2.png"
bar x=0 y=56 w=150 h=12 vertical=false sensor=program program="/usr/bin/nvclock -i |grep 'Fanspeed:' | awk '{print $2}'" align="right" path="image/bar66.png" max=2675 interval=10100
text x=0 y=57 value="nVidia Fan" color=0,255,255
text x=160 y=57 sensor=program program="/usr/bin/nvclock -i | grep 'Fanspeed:' | sed -e 's/.*: //'" align="right" interval=10000
## Water Fan RPM
image x=0 y=70 path="image/backbar2.png"
bar x=0 y=70 w=150 h=12 vertical=false sensor=sensor type="CPU Fan" path="image/bar44.png" max=1900 interval=10000
text x=0 y=71 value="CPU Fan" color=0,255,255
text x=160 y=71 value=" RPM" align="right"
text x=138 y=71 sensor=sensor type="CPU Fan" align="right" interval=10000
## Chipset Fan RPM
image x=0 y=84 path="image/backbar2.png"
bar x=0 y=84 w=150 h=12 vertical=false sensor=sensor type="Chip Fan" path="image/bar66.png" max=3800 interval=10000
text x=0 y=85 value="Chipset Fan" color=0,255,255
text x=160 y=85 value=" RPM" align="right"
text x=138 y=85 sensor=sensor type="Chip Fan" align="right" interval=10000
## Memory Usage
image x=0 y=98 path="image/backbar2.png"
bar x=0 y=98 w=150 h=12 vertical=false sensor=memory format="%um" path="image/bar44.png" min=0 interval=5000
text x=0 y=99 value="RAM" color=0,255,255
text x=160 y=99 sensor=memory format="%um / %tm MB" align="right" interval=5000
#######################
x=0 y=298
## Internet Sensor Up/Down Load
image x=8 y=0 path="image/backbar3.png"
text x=10 y=1 value="DL:" color=1,247,1
text x=30 y=1 sensor=network device="eth0" format="%in kB/s" interval=1000 decimals=2 color=1,247,1
text x=90 y=1 value="UL:" color=255,255,0
text x=110 y=1 sensor=network device="eth0" format="%out kB/s" interval=1000 decimals=2 color=255,255,0
#######################
# System Process
## Top
text x=5 y=310 value="TOP:"
text x=155 y=310 align=right sensor=program program="ps axo comm,user,pcpu --sort -pcpu | head -n5|tail -n4 | awk '{print $1,$3}'" interval=1000 fontsize=8 color=255,255,0
text x=156 y=309 value="%" color=255,255,0
text x=156 y=319 value="%" color=255,255,0
text x=156 y=329 value="%" color=255,255,0
text x=156 y=339 value="%" color=255,255,0
########################
text x=112 y=350 value="by Jupiter" fontsize=10