View Single Post
Old 08-15-10, 12:05 AM   #21
Registered User
Join Date: May 2009
Posts: 122
Default Re: Next Project: Configuring Conky

Originally Posted by DiscipleDOC View Post
Here's my finished product:

Here's the script:
# Use Xft?
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_colour 000000 #optional
own_window_type normal
own_window_argb_visual #this is the magic line
own_window_argb_value 90 #this is for opacity (0 transparent, 255 opaque)
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
background no

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 0 0
#maximum_width 200

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_inner_margin 5

# border width
border_width 1

# Default colors and also border colors
default_color white
default_shade_color white
default_outline_color white
own_window_colour white
color1 white

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 35
gap_y 35

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer none

${font Comic Sans MS:style=Bold}SYSTEM${font} ${hr 2}
# ${alignc 17}${font Arial Black:size=12}googly${font}
# ${alignc}fly, you fools
${voffset 2}${font StyleBats:size=16}i${font}   Kernel:  ${alignr}${kernel}
${font StyleBats:size=12}A${font}   CPU1: ${cpu cpu1}% ${alignr}${execi 8 sensors | grep 'Core 0' | tail -1 | cut -c15-19 | sed '/^$/d'}F ${alignr}${cpugraph cpu1 12,60 53baff 00f880}
${font StyleBats:size=12}A${font}   CPU2: ${cpu cpu2}% ${alignr}${execi 8 sensors | grep 'Core 1' | tail -1 | cut -c15-19 | sed '/^$/d'}F ${alignr}${cpugraph cpu2 12,60 53baff 00f880}
${font StyleBats:size=12}g${font}   RAM: $memperc% ${alignr}${memgraph 12,60 000000 0077ff}
${font Webdings:size=12}~${font}  Battery:${battery_percent BAT1}% ${alignr}${color green}${battery_bar 12,60 BAT1}$color
${font StyleBats:size=12}q${font}   Uptime: ${alignr}${upti****

${font Comic Sans MS:style=Bold}HD${font} ${hr 2}
${voffset 4}${font Pie charts for maps:size=14}7${font}   ${voffset -5}Root:
${voffset 4}${fs_used /}/${fs_size /} ${alignr}${fs_bar 12,60 /}
${font Pie charts for maps:size=14}7${font}   ${voffset -5}Home:
${voffset 4}${fs_used /ho****/${fs_size /ho**** ${alignr}${fs_bar 12,60 /ho****

${font Comic Sans MS:style=Bold}WIRELESS${font} ${hr 2}
${voffset 4}${font PizzaDude Bullets:size=12}O${font}   Up: ${upspeed eth1} ${alignr}${upspeedgraph eth1 12,60 F57900 FCAF3E}
${voffset 4}${font PizzaDude Bullets:size=12}U${font}   Down: ${downspeed eth1} ${alignr}${downspeedgraph eth1 12,60 F57900 FCAF3E}
${voffset 4}${font PizzaDude Bullets:size=12}N${font}   Upload: ${alignr}${totalup eth1}
${voffset 4}${font PizzaDude Bullets:size=12}T${font}   Download: ${alignr}${totaldown eth1}
${voffset 4}${font PizzaDude Bullets:size=12}a${font}   Local Ip: ${alignr}${addr eth1}

${font Comic Sans MS:style=Bold}PROCESSES${font} ${hr 2}
NAME $alignr PID    CPU
${top name 1} $alignr ${top pid 1} ${top cpu 1}
${top name 2} $alignr ${top pid 2} ${top cpu 2}
${top name 3} $alignr ${top pid 3} ${top cpu 3}
${top name 4} $alignr ${top pid 4} ${top cpu 4}
${top name 5} $alignr ${top pid 5} ${top cpu 5}

${font Comic Sans MS:style=Bold}WEATHER${font} ${hr 2}
Location: ${execi 3600 conkyForecast --location=USAL0203 --datatype=CN --hideunit}
Conditions: ${execi 3600 conkyForecast --location=USAL0203 --datatype=CC --hideunit}
${font ConkyWeather:size=36}${execi 3600 conkyForecast --location=USAL0203 --datatype=WF --hideunit}${font}
Temp: ${execi 3600 conkyForecast --location=USAL0203 --datatype=HT --hideunit}
Extended Forecast
${font ConkyWeather:size=36}${execi 3600 conkyForecast --startday=1 --endday=3 --location=USAL0203 --datatype=WF --hideunit}${font}
${execi 3600 conkyForecast --location=USAL0203 --startday=1 --endday=3 --spaces=15 --datatype=HT --hideunit}
${execi 3600 conkyForecast --location=USAL0203 --startday=1 --endday=3 --spaces=5 --datatype=DW --hideunit}
WOW thats truly impressive DD.
Arup is offline   Reply With Quote