Form1 Form1 0 0 478 432 Kopete Spammer unnamed 11 6 Layout12 unnamed 0 6 PrevWin true Label2 <b>Message</b> Layout17 unnamed 0 6 Layout16 unnamed 0 3 SpamStuff Text SysStat 10 90 140 20 System stats @widgetText @PrevWin.setText( @execBegin if uptime | cut -d' ' -f4- | cut -d',' -f2 | grep user > /dev/null then up=`uptime | cut -d' ' -f4- | cut -d',' -f1` echo "[Uptime] $up hours" else up=`uptime | cut -d' ' -f4- | cut -d',' -f1-2` echo "[Uptime] $up" fi Totalmem=`free | grep Mem | awk '{printf ("%d", $2/1000 )}'` Freemem=`free | grep Mem | awk '{printf ("%d", $4/1000 )}'` echo "[Total Memory] $Totalmem MB" echo "[Free Memory] $Freemem MB" Totalhd=`df -l -x tmpfs -x shm | awk '{ sum+=$2/1024^2 }; END { printf ("%d", sum )}'` Freehd=`df -l -x tmpfs -x shm | awk '{ sum+=$4/1024^2 }; END { printf ("%d", sum )}'` echo "[Total HD] $Totalhd GB" echo "[Free HD] $Freehd GB" TX1=`cat /proc/net/dev | grep "eth0" | cut -d: -f2 | awk '{print $9}'` RX1=`cat /proc/net/dev | grep "eth0" | cut -d: -f2 | awk '{print $1}'` sleep 1 TX2=`cat /proc/net/dev | grep "eth0" | cut -d: -f2 | awk '{print $9}'` RX2=`cat /proc/net/dev | grep "eth0" | cut -d: -f2 | awk '{print $1}'` echo "[Today received] $[ $RX2/1024**2 ] MB" echo "[Today sent] $[ $TX2/1024**2 ] MB" echo "[Download] $[ ($RX2 - $RX1)/1024 ] Kbytes/s" echo "[Upload] $[ ($TX2 - $TX1)/1024 ] Kbytes/s" dcop kopete KopeteIface messageContact @OnlineContacts.selection "[Uptime] $up [Total Memory] $Totalmem MB [Free Memory] $Freemem MB [Total HD] $Totalhd GB [Free HD] $Freehd GB [Today received] $[ $RX2/1024**2 ] MB [Today sent] $[ $TX2/1024**2 ] MB [Download] $[ ($RX2 - $RX1)/1024 ] Kbytes/s [Upload] $[ ($TX2 - $TX1)/1024 ] Kbytes/s" @execEnd ) SysInfo 10 60 160 20 System information @widgetText @PrevWin.setText( @execBegin System=`uname` echo "[OS] $System" CurKern=`uname -r` echo "[Kernel] $CurKern" Proz=`cat /proc/cpuinfo | grep 'model name' | head -n 1 | sed -e 's/^.*: //'` MHz=`cat /proc/cpuinfo | grep 'cpu MHz' | head -1 | sed -e 's/^.*: //'` echo "[CPU] $Proz $MHz MHz" Speicher=`free | grep Mem | awk '{printf ("%d", $2/1000 )}'` echo "[Memory] $Speicher MB" HD=`df -l -x tmpfs -x shm | awk '{ sum+=$2/1024^2 }; END { printf ("%d", sum )}'` echo "[HD] $HD GB" VGA=`cat /proc/pci | grep 'VGA compatible controller' | sed -e 's/^.*://'` echo "[VGA] $VGA" Sound=`cat /proc/pci | grep 'Multimedia audio controller' | sed -e 's/^.*://'` echo "[Sound] $Sound" Netz=`cat /proc/pci | grep 'Ethernet controller' | sed -e 's/^.*://'` echo "[Net] $Netz" dcop kopete KopeteIface messageContact @OnlineContacts.selection "[OS] $System [Kernel] $CurKern [CPU] $Proz $MHz MHz [Memory] $Speicher MB [HD] $HD GB [VGA] $VGA [Sound] $Sound [Net] $Netz" @execEnd ) AmarokTitle 10 30 180 20 Current title in Amarok @widgetText @PrevWin.setText( @execBegin CurrentTitle=`dcop amarok player nowPlaying` CurrentAlbum=`dcop amarok player album` CurrentTime=`dcop amarok player totalTime` CurrentBitrate=`dcop amarok player bitrate` echo "[Now playing] $CurrentTitle [Album] $CurrentAlbum [Time] $CurrentTime [Bitrate] $CurrentBitrate" dcop kopete KopeteIface messageContact @OnlineContacts.selection "[Now playing] $CurrentTitle [Album] $CurrentAlbum [Time] $CurrentTime [Bitrate] $CurrentBitrate" @execEnd ) Label1 <b>Online contacts</b> OnlineContacts @dcop(kopete,KopeteIface,"onlineContacts()") Layout11 unnamed 0 6 Spacer8_2 Horizontal Expanding 182 0 Spacer8 Horizontal Expanding 176 0 ExecButton1 &Send @AmarokTitle @SysInfo @SysStat Layout18 unnamed 0 6 Spacer11 Horizontal Expanding 181 0 Spacer11_2 Horizontal Expanding 181 0 CloseButton1 &Exit OnlineContacts widgetOpened() OnlineContacts populate()