Altered the USB output so that it disappears when USB drive is ejected. Now I have it just how I want it (at least for the next 20min).
USB mounted:
USB ejected:
Code:
Code:
############################################################################################
# #
# .conkyrc (version 1.01) #
# A clean, simple, yet useful configuration code for conky #
# #
# Written by Petro Dawg (aka Greg): #
# Last updated on 8/26/12 #
# Based on source code from http://lonelymachines.org/2012/08/16/simple-conky-config/ #
# > This version has been significately modified to meet my needs and reorganized to #
# add clarity for anyone wanting to modify the code further to meet their own needs. #
# #
# Displays the following PC information on the Desktop within an embedded window: #
# > CPU temp #
# > CPU operating speed #
# > Individual core usage #
# > Top 4 processes using CPU resources #
# > Total RAM #
# > Active RAM amount #
# > Top 4 processes using RAM resources #
# > Root folder size and memory used #
# > Home folder size and memory used #
# > USB drive size and memory used #
# > IP Address #
# > Download speed and data Received #
# > Upload speed and data Sent #
# #
# Requires installation of: #
# > conky (available in software center) #
# > lm-sensors (available in software center) #
# #
# Additional information and resources: #
# > To run conky at startup, create an empty file in your home folder, name it #
# ".conky-startup.sh" and copy the following 2 lines in it: #
# !/bin/bash #
# sleep 15 && conky ; #
# Add the path to the .conky-startup.sh file within Startup Applications. #
# > http://conky.sourceforge.net/ #
# > http://www.graphviz.org/doc/info/colors.html #
# > http://www.december.com/html/spec/colorhex.html #
# #
# Upate Log: #
# > Version 1.01 (8/26/12) #
# - USB output will disappear from Conky when USB drive is ejected #
############################################################################################
#conky performance settings
use_xft yes
xftalpha 0.9
update_interval 3.0
total_run_times 0
cpu_avg_samples 4
no_buffers no
double_buffer yes
override_utf8_locale no
#overall position of conky window
alignment top_right
gap_x 12
gap_y 35
minimum_size 180 5
maximum_width 180
#overall appearance of conky window
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
draw_borders no
#default text apperance
font Ubuntu:bold:size=11
default_color khaki1
draw_shades yes
draw_outline yes
default_shade_color white
default_outline_color black
uppercase no
#border around graphs
draw_graph_borders yes
#color I assigned to graphical output features (bars/graphs)
color2 grey
#colors I assigned to items in top processes display
color3 orangered
color4 orange
color5 yellow
color6 olivedrab1
############################################################################################
# #
# The code below 'TEXT' will control what is displayed by conky: #
# -> In the interest of clarity, the system outputs are divided into four related groups #
# (i.e. all code related to the CPU is in one grouping of adjacent lines while code #
# related to RAM is in another grouping of adjacent lines). Each group is hereafter #
# refered to as a 'TEXT code block'. #
# -> To best fit your screen, adjust the overall vertical length of the display by #
# adding or deleting empty lines either before or after the TEXT code blocks below. #
# #
############################################################################################
TEXT
# TEXT code block 1: START
############################################################################################
# #
# The first TEXT code block displays CPU information #
# -> Temperature displayed is the PCI Adapter temp1 output on same line as 'high' output #
# -> Requires the installation of lm-sensors to work: sudo apt-get lm-sensors #
# -> After installation run: sensors-detect (answer yes to all) #
# -> Run 'sensors' in terminal to determine which line needs grep & which columns #
# needs to be cut. #
# -> Replace: ${cpubar cpu1 10} with ${cpugraph cpu1 FFFF00 FF0000} to change to graph #
# output of CPU1 usage. #
# -> 'FFFF00' and 'FF0000' are HEX color codes and can be replaced with whatever colors #
# you like. Goto www.graphviz.org/doc/info/colors.html for color information (hold #
# mouse over color to see HEX code for that color). #
# -> Add outputs for more cores by adding the following lines below the 'cpu2' lines: #
# Core '#': ${alignr}${cpu cpu'#'}% #
# ${color2}${cpubar cpu'#' 10}${color} #
# (repeat for each additional core up to the total number of cores in the system) #
# (replace each '#' with the number of the core (i.e. 3 or 4)) #
# -> If you have a single core simply delete the 2 lines containing 'cpu2' #
# #
############################################################################################
CPU Temp: $alignr${exec sensors | grep 'high' | cut -c16-19}C${color}
CPU Speed: ${alignr}${freq}MHz
Core 1: ${alignr}${cpu cpu1}%
${color2}${cpubar cpu1 10}${color}
Core 2: ${alignr}${cpu cpu2}%
${color2}${cpubar cpu2 10}${color}
${font Ubuntu:size=10}${color3}${top name 1}$alignr${top cpu 1}
${color4}${top name 2}$alignr${top cpu 2}
${color5}${top name 3}$alignr${top cpu 3}
${color6}${top name 4}$alignr${top cpu 4}${font}${color}
# TEXT code block 1: END
# TEXT code block 2: START
############################################################################################
# #
# Second TEXT code block displays RAM information: #
# -> Replace ${membar 10} with ${memgraph FFFF00 FF0000} to change to graph output of #
# RAM usage. (I did not find this very useful as RAM usage is usually fairly steady #
# on my sytem.) #
# #
############################################################################################
RAM Total: ${alignr}$memmax
Active: ${alignr}$mem ($memperc%)
${color2}${membar 10}${color}
${font Ubuntu:size=10}${color3}${top_mem name 1}$alignr${top_mem mem 1}
${color4}${top_mem name 2}$alignr${top_mem mem 2}
${color5}${top_mem name 3}$alignr${top_mem mem 3}
${color6}${top_mem name 4}$alignr${top_mem mem 4}${font}${color}
# TEXT code block 2: END
# TEXT code block 3: START
############################################################################################
# #
# Third TEXT code block displays Filesystem information: #
# -> The USB information is specific to the USB drive I most commonly use on my computer #
# (USB20FD). Make sure to replace 'USB20FD' with the name of the USB drive used. #
# #
############################################################################################
Root: ${alignr}${fs_used /} / ${fs_size /}
${color2}${fs_bar 10 /}${color}
Home: ${alignr}${fs_used /home} / ${fs_size /home}
${color2}${fs_bar 10 /home}${color}
${if_existing /media/USB20FD}USB: ${alignr}${fs_used /media/USB20FD} / ${fs_size /media/USB20FD}
${color2}${fs_bar 10 /media/USB20FD}${color} ${else}
${endif}
# TEXT code block 3: END
# TEXT code block 4: START
############################################################################################
# #
# Fourth TEXT code block displays Network information: #
# -> A graphical output of download information can be displayed by adding the following #
# line of code between the line starting with 'Down' and the line begining with #
# 'Up': #
# ${color2}${downspeedgraph wlan0 FFFF00 FF0000}${color} #
# -> A graphical output of upload information can be displayed by adding the following #
# line of code between after the line begining with 'Up': #
# ${color2}${upspeedgraph wlan0 FFFF00 FF0000}${color} #
# -> 'FFFF00' and 'FF0000' are HEX color codes and can be replaced with whatever colors #
# you like. Goto www.graphviz.org/doc/info/colors.html for color information (hold #
# mouse over color to see HEX code for that color). #
# #
############################################################################################
IP Address: ${alignr}${addr wlan0}
Down: ${downspeed wlan0}/s ${alignr}${totaldown wlan0}
Up: ${upspeed wlan0}/s ${alignr}${totalup wlan0}
# TEXT code block 4: END
Bookmarks