[Asus Transformer TF700] kennyMC:
conky

Hi,

thanks for your work guys!!

I'd like to share my conky-config with you. Just place the two files (.conkyrc and conky-draw.lua) in your home folder.

conky-draw.lua

--[[
Background by londonali1010 (2009)
This script draws a background to the Conky window. It covers the whole of the Conky window, but you can specify rounded corners, if you wish.
To call this script in Conky, use (assuming you have saved this script to ~/scripts/):
lua_load ~/scripts/draw_bg.lua
lua_draw_hook_pre draw_bg
Changelog:
+ v1.0 -- Original release (07.10.2009)
]]
-- Change these settings to affect your background.
-- "corner_r" is the radius, in pixels, of the rounded corners. If you don't want rounded corners, use 0.
corner_r=10
-- Set the colour and transparency (alpha) of your background.
bg_colour=0x000000
bg_alpha=0.4
require 'cairo'
function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end
function conky_draw_bg()
if conky_window==nil then return end
local w=conky_window.width
local h=conky_window.height
local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
cr=cairo_create(cs)

cairo_move_to(cr,corner_r,0)
cairo_line_to(cr,w-corner_r,0)
cairo_curve_to(cr,w,0,w,0,w,corner_r)
cairo_line_to(cr,w,h-corner_r)
cairo_curve_to(cr,w,h,w,h,w-corner_r,h)
cairo_line_to(cr,corner_r,h)
cairo_curve_to(cr,0,h,0,h,0,h-corner_r)
cairo_line_to(cr,0,corner_r)
cairo_curve_to(cr,0,0,0,0,corner_r,0)
cairo_close_path(cr)

cairo_set_source_rgba(cr,rgb_to_r_g_b(bg_colour,bg_alpha))
cairo_fill(cr)
end

.conkyrc

background no
use_xft yes
xftfont 123:size=12
xftalpha 0.1
update_interval 0.5
total_run_times 0
own_window yes
own_window_type normal
own_window_colour 002350
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 450 5
maximum_width 600 32
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color gray
default_shade_color red
default_outline_color green
alignment top_right
gap_x 10
gap_y 10
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 1
override_utf8_locale no
use_spacer right
lua_load ~/conky-draw.lua
lua_draw_hook_pre draw_bg

TEXT
${font Arial:size=20}${color Tan1}TF700T${color Ivory}LINUX
${alignc}${time %a %d. %b %k:%M}
${voffset -90}
${color DimGray}
${font}
${font Arial:bold:size=10}${color Tan1}SYSTEM ${color DarkSlateGray} ${hr 2}
$font${color DimGray}$sysname $kernel $alignr $machine
Nvidia Tegra3 $alignr${freq_g cpu0}Ghz
Uptime $alignr${uptime}
File System $alignr${fs_type}

${font Arial:bold:size=10}${color Tan1}PROCESSORS ${color DarkSlateGray}${hr 2}
${cpugraph}
$font${color DimGray}CPU1 ${cpu cpu1}% ${cpubar cpu1}
CPU2 ${cpu cpu2}% ${cpubar cpu2}
CPU3 ${cpu cpu3}% ${cpubar cpu3}
CPU4 ${cpu cpu4}% ${cpubar cpu4}

${font Arial:bold:size=10}${color Tan1}MEMORY ${color DarkSlateGray}${hr 2}
$font${color DimGray}MEM $alignc $mem / $memmax $alignr $memperc%
$membar

${font Arial:bold:size=10}${color Tan1}HDD ${color DarkSlateGray}${hr 2}
$font${color DimGray}/home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_free_perc /home}%
${fs_bar /home}

${font Arial:bold:size=10}${color Tan1}TOP PROCESSES ${color DarkSlateGray}${hr 2}
${color DimGray}$font${top_mem name 2}${alignr}${top mem 2} %
$font${top_mem name 3}${alignr}${top mem 3} %
$font${top_mem name 4}${alignr}${top mem 4} %
$font${top_mem name 5}${alignr}${top mem 5} %

${font Arial:bold:size=10}${color Tan2}NETWORK ${color DarkSlateGray}${hr 2}
$font${color DimGray}IP on wlan0 $alignr ${addr wlan0}
Attached to: ${alignr}${wireless_essid wlan0}
Signal: ${alignr}${wireless_link_qual_perc wlan0}% ${alignr}${wireless_link_bar 8,300 wlan0}
Down $alignr ${downspeed wlan0} kb/s
Up $alignr ${upspeed wlan0} kb/s
Downloaded: $alignr ${totaldown wlan0}
Uploaded: $alignr ${totalup wlan0}

${font Arial:bold:size=10}${color Tan2}BATTERY ${color DarkSlateGray}${hr 2}
$font${color DimGray}Device: ${exec cat /sys/devices/platform/tegra-i2c.4/i2c-4/4-000b/power_supply/battery/capacity} % ${execbar cat /sys/devices/platform/tegra-i2c.4/i2c-4/4-000b/power_supply/battery/capacity}
$font${color DimGray}Dock: ${exec cat /sys/devices/platform/tegra-i2c.1/i2c-1/1-0019/input/input0/device/power_supply/dock_battery/capacity} % ${execbar cat /sys/devices/platform/tegra-i2c.1/i2c-1/1-0019/input/input0/device/power_supply/dock_battery/capacity}

${font Arial:bold:size=10}${color Tan2}Temp ${color DarkSlateGray}${hr 2}
$font${color DimGray}Temp: $alignr ${exec cat /sys/devices/platform/tegra-i2c.4/i2c-4/4-004c/ext_temperature} C