Skip to content

Instantly share code, notes, and snippets.

@deckerego
Created December 6, 2013 22:16
Show Gist options
  • Save deckerego/7833081 to your computer and use it in GitHub Desktop.
Save deckerego/7833081 to your computer and use it in GitHub Desktop.
SuperKaramba system display initially based on revolutionist's "all system info engl. v." from http://www.kde-look.org/content/show.php?content=33202
karamba x=100 y=210 w=220 h=900 interval=1000 locked=true
defaultfont color=255,255,255 fontsize=9 font="DejaVu Sans" shadow=1 bgcolor=0,0,0
# time
text x=55 y=0 sensor=time format="ddd, MMM d yyyy" fontsize=12
text x=45 y=15 sensor=time format="hh:mm" font="DejaVu Sans Mono" fontsize=48
text x=65 y=70 sensor=uptime format="Up %dd %Hh:%Mm" fontsize=12
# proc
image x=95 y=80 path="/usr/share/icons/oxygen/48x48/devices/cpu.png"
image x=42 y=115 path="image/cuadricula.png"
text x=25 y=120 sensor=program program="cat /proc/cpuinfo | grep -m 1 'model name' | sed -e 's/.*: Intel(R)//' | sed -e 's/ //g'" interval=14400000
graph x=45 y=115 w=150 h=50 sensor=cpu cpu=0 points=100 color=225,35,0
graph x=45 y=115 w=150 h=50 sensor=cpu cpu=1 points=100 color=35,225,0
text x=30 y=170 value="CPU 0:" color=255,255,255
text x=100 y=170 sensor=cpu cpu=0 format="%v%" color=225,35,0
text x=150 y=170 sensor=program program="cpufreq-info -m -c 0 -f" color=255,35,0 interval=1000
text x=30 y=180 value="CPU 1:" color=255,255,255
text x=100 y=180 sensor=cpu cpu=1 format="%v%" color=35,225,0
text x=150 y=180 sensor=program program="cpufreq-info -m -c 1 -f" color=35,225,0 interval=1000
text x=30 y=190 value="CPU Cache:"
text x=150 y=190 sensor=program program="echo `cat /proc/cpuinfo | grep -m 1 '^cache size' | sed -e 's/^.*: //'`" interval=14400000
# net
image x=95 y=205 path="/usr/share/icons/oxygen/48x48/devices/network-wired.png"
image x=42 y=249 path="image/cuadricula.png"
text x=98 y=255 value="Ethernet" fontsize=10
graph x=45 y=250 w=150 h=50 color=1,247,1 points=100 sensor=network format="%in" device="eth0" max=75
graph x=45 y=249 w=150 h=50 color=225,35,0 points=100 sensor=network format="%out" device="eth0" max=75
text x=30 y=305 value="DOWNLOAD:"
text x=95 y=305 sensor=network device="eth0" format="%in kB/s" decimals=1 color=1,247,1
text x=150 y=305 sensor=program program="/sbin/ifconfig eth0 | grep 'RX byte' | awk '{print $3 $4}'"
text x=30 y=315 value="UPLOAD:"
text x=95 y=315 sensor=network device="eth0" format="%out kB/s" decimals=1 color=225,35,0
text x=150 y=315 sensor=program program="/sbin/ifconfig eth0 | grep 'TX byte' | awk '{print $7 $8}'"
text x=30 y=325 value="IP:"
text x=50 y=325 sensor=program program="/sbin/ip addr show eth0 | grep 'inet ' | cut -d t -f2 | cut -d / -f1 | cut -b 2- "
image x=42 y=340 path="image/cuadricula.png"
text x=98 y=345 value="Wireless" fontsize=10
graph x=45 y=340 w=150 h=50 color=1,247,1 points=100 sensor=network format="%in" device="eth1" max=75
graph x=45 y=341 w=150 h=50 color=225,35,0 points=100 sensor=network format="%out" device="eth1" max=75
text x=30 y=395 value="DOWNLOAD:"
text x=95 y=395 sensor=network device="eth1" format="%in kB/s" decimals=1 color=1,247,1
text x=150 y=395 sensor=program program="/sbin/ifconfig eth1 | grep 'RX byte' | awk '{print $3 $4}'"
text x=30 y=405 value="UPLOAD:"
text x=95 y=405 sensor=network device="eth1" format="%out kB/s" decimals=1 color=225,35,0
text x=150 y=405 sensor=program program="/sbin/ifconfig eth1 | grep 'TX byte' | awk '{print $7 $8}'"
text x=30 y=415 value="IP:"
text x=50 y=415 sensor=program program="/sbin/ip addr show eth1 | grep 'inet ' | cut -d t -f2 | cut -d / -f1 | cut -b 2- "
image x=42 y=430 path="image/cuadricula.png"
text x=62 y=435 value="Virtual Private Network" fontsize=10
graph x=45 y=430 w=150 h=50 color=1,247,1 points=100 sensor=network format="%in" device="tun0" max=75
graph x=45 y=431 w=150 h=50 color=225,35,0 points=100 sensor=network format="%out" device="tun0" max=75
text x=30 y=485 value="DOWNLOAD:"
text x=95 y=485 sensor=network device="tun0" format="%in kB/s" decimals=1 color=1,247,1
text x=150 y=485 sensor=program program="/sbin/ifconfig tun0 | grep 'RX byte' | awk '{print $3 $4}'"
text x=30 y=495 value="UPLOAD:"
text x=95 y=495 sensor=network device="tun0" format="%out kB/s" decimals=1 color=225,35,0
text x=150 y=495 sensor=program program="/sbin/ifconfig tun0 | grep 'TX byte' | awk '{print $7 $8}'"
text x=30 y=505 value="IP:"
text x=50 y=505 sensor=program program="/sbin/ip addr show tun0 | grep 'inet ' | cut -d t -f2 | cut -d / -f1 | cut -b 2- "
# ram & swap
image x=95 y=520 path="/usr/share/icons/oxygen/48x48/apps/kchart.png"
text x=30 y=580 value="RAM:"
text x=100 y=580 sensor=memory format="%um MB from %tm MB"
bar x=23 y=597 path="image/barra.png" sensor=memory format="%um" interval=100000
image x=22 y=596 path="image/barrab.png"
text x=30 y=610 value="Swap:"
text x=100 y=610 sensor=memory format="%us MB from %ts MB"
bar x=23 y=625 path="image/barra.png" sensor=memory format="%us" interval=100000
image x=22 y=624 path="image/barrab.png"
# drive
image x=95 y=640 path="/usr/share/icons/oxygen/48x48/devices/drive-harddisk.png"
text x=30 y=690 value="/home:"
text x=125 y=690 sensor=disk format="USED: %up%" mountpoint="/home/"
text x=110 y=715 value="from"
text x=40 y=715 sensor=disk format="%f MB" mountpoint="/home/"
text x=150 y=715 sensor=disk format="%t MB" mountpoint="/home/"
bar x=23 y=705 path="image/barra.png" sensor=disk mountpoint="/home/" interval=100000
image x=22 y=705 path="image/barrab.png"
text x=30 y=740 value="/:"
text x=125 y=740 sensor=disk format="USED: %up%" mountpoint="/"
text x=110 y=765 value="from"
text x=40 y=765 sensor=disk format="%f MB" mountpoint="/"
text x=150 y=765 sensor=disk format="%t MB" mountpoint="/"
bar x=23 y=755 path="image/barra.png" sensor=disk mountpoint="/" interval=100000
image x=22 y=755 path="image/barrab.png"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment