OK... I'm completely stumped... I have a my conky up and running and I'm quite happy with its output EXCEPT for one item... I can't seem to get my USB drive to show up when it is plugged in. Currently, when the USB is plugged in, a new window will open up showing the files, but I can't seem to get it setup correctly in the conkyrc file. I've googled this one to death and tried many ideas, but nothing seems to work. I know it's an if_existing statement, but... no joy!
fyi, I am on a Asus eeepc netbook running UNR 10.04.
Here is my conkyrc file:
##Conky
background yes
update_interval 0.5
total_run_times 0
no_buffers no
cpu_avg_samples 2
net_avg_samples 1
#Text
use_xft yes
xftfont 123:size=8
xftalpha 0.1
uppercase no
override_utf8_locale yes
use_spacer yes
text_buffer_size 256
#Window
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
#Graphics
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
double_buffer yes
#Layout
alignment top_right
gap_x 10
gap_y 10
minimum_size 250 700
maximum_width 400
#Colors
default_color gray
default_shade_color red
default_outline_color green
#all variables below the "TEXT" will be visible on desktop when conky is running
TEXT
${voffset -40}
${color DimGray}
${font}
${color Green}${user_names} ${alignr}$nodename$font
##################################
# System Information #
##################################
${font Arial:bold:size=10}${color Tan1}SYSTEM${color DarkSlateGray}${hr 2}$font
${font}${color DimGray}$sysname$kernel$alignr$machine
${pre_exec cat /proc/cpuinfo | grep 'model name'|sort -u|cut -c14-33,44-60}
Uptime $alignr${uptime}
System Updates:${alignr}${color Green}${execi 3600 aptitude search "~U" | wc-1 | tail}
${font}${color DimGray}AC Adaptor:${color Green}${acpiacadapter AC0}${color DimGray}${alignr}Battery:${color Green}${battery_short BAT0}
${alignr}${battery_time BAT0}$font
##################################
# Processor & Memory information #
##################################
${font Arial:bold:size=10}${color Tan1}PROCESSOR & MEMORY ${color DarkSlateGray}${hr 2}
${font}${color DimGray}CPU:${alignc}${freq_g}GHz${alignr}$cpu%
Memory:${alignc}$memmax${alignr}$memperc%
Swap:${alignc} $swapmax${alignr}$swapperc%
##################################
# Top Processes #
##################################
${font Arial:bold:size=10}${color Tan1}TOP PROCESSES${color DarkSlateGray}${hr 2}${color DimGray}$font
${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${top_mem name 6}${alignr}${top mem 6} %
##################################
# Disk Information #
##################################
${font Arial:bold:size=10}${color Tan1}DISKS ${color DarkSlateGray}${hr 2}
$font${color DimGray}Root$alignc${fs_size /}${alignr}${fs_free_perc /}% Free
${if_gw}${font}${color DimGray}${if_existing /media }USB Drive
$alignc${fs_size /media/ }${alignr}${fs_free_perc /media/ }% Free${color DimGray}${endif}
##################################
# Network Information #
##################################
${font Arial:bold:size=10}${color Tan1}NETWORK ${color DarkSlateGray}${hr 2}
${if_gw}${font}${color DimGray}${if_existing /proc/net/route wlan0}Connection Type:${color Green}${alignr}Wireless${color DimGray}
ESSID:${color Green}${wireless_essid wlan0}${color DimGray}${alignr}Link:${color Green}${wireless_link_qual_perc wlan0}%${color DimGray}
UP${upspeedgraph wlan0 20,100 0000ff ff0000 .5}DN${downspeedgraph wlan0 20,100 0000ff ff0000 40}
Wireless Speed ${alignr}${color Green}${wireless_bitrate wlan0}${color DimGray}
UP:${upspeed wlan0}${alignr}${alignr}DN:${downspeed wlan0}
Total UP:${totalup wlan0}${alignr}Total DN:${totaldown wlan0}
Local IP:${alignr}${addr wlan0}${endif}
Public IP:${alignr}${execi 3600 wget -O -
http://whatismyip.org/ | tail}${else}
${font}${color DimGray}${if_existing /proc/net/route eth0}Connection Type:${color Green}${alignr}Wired${color DimGray}
UP:${upspeed eth0}${alignr}Total UP:${Totalup eth0}
DN:${downspeed eth0}${alignr}Total DN:${totaldown eth0}
Local IP:${alignr}${addr eth0}${endif}
${color Red}${alignr}Not Connected ${color DimGray}
${endif}
Bookmarks