... Widgets\25\Name="Rect.SystemInfoBackground" Widgets\26\Name="TextCommand.SystemInfo" Widgets\27\Name="Text.SystemInfoText" ... [SystemInfoBackground] PosL="5;220" PosP="5;220" SizeP="120;70" SizeL="120;70" Radius=5 Color="0;0;0;150" [SystemInfoText] PosL="8;220" PosP="8;220" SizeP="120;70" SizeL="120;70" Font=";12;normal;0" Alignment="left;center" Multiline=1 Text="CPU:\nIP:\nMem:" UpdateIntervalSeconds=1 [SystemInfo] PosL="5;220" PosP="5;220" SizeP="117;70" SizeL="117;70" Font=";12;normal;0" Alignment="right;center" Multiline=1 Command="/opt/qtlockscreen/sysinfo.sh" UpdateIntervalSeconds=1
#!/bin/sh echo `awk '{print $1/1000" MHz"}' /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq` CONN=$(/sbin/route | awk '/default/ {print $NF}') IP="-" if [ "$CONN" == "wlan0" ]; then IP=$(/sbin/ifconfig wlan0 | awk -F "[: ]" '/Bc/ {print $13}') fi if [ "$CONN" == "gprs0" ]; then IP=$(/sbin/ifconfig gprs0 | awk -F "[: ]" '/P-t-P/ {print $13}') fi echo $IP echo -n `awk '/mT/ {memttl = $2}; /mF/ {memfre = $2}; /Bu/ {membff = $2}; $1 == "Cached:" {memcch = $2} END {printf ("%.1f MB\n",(memttl-memfre-membff-memcch)/1024)}' /proc/meminfo`