Hi, I resently discoverd Conky, and what a great tool this is. I would like to share my conkyrc with you, but also ask for some help. I have some problems that I can't put my finger on...
I attach two images to show what I have done, see below.
Problem 1:
I have a are that shows my "STORAGE (other)" which is USB drives that I plug in. I have two at the moment: DM_1GB and DM_8GB. If neither are pluged in, the messgae "No external storage detected" is displayed. If I plug DM_8GB in, it says "DM_8GB have 7.45GiB avalibe". When I unplug it, the original message appears. This is not the problem... the problem is when I plug DM_1GB in, the message "DM_1GB have 90.1MiB avalibe" is displayed, but everthing below dissappear. Hmmm...
Problem 2:
I have two NETWORKS that I connect to. If both are off, the message "NETWORK is unavalible" appears. At home a WiFi (WLAN) as can be seen in the one image, the other a LAN (ethernet) at the University. I want only the info of the one that is in use to be displayed. The WLAN is working, and not showing any info about the LAN, but when I connect to the LAN the WLAN info (or the frame work) is also displayed.
Here is my conkyrc
Code:
# conky configuration
# set to yes if you want tormo to be forked in the background
background yes
# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
# Use Xft?
use_xft yes
# Print everything to stdout?
out_to_console no
# MPD host/port
# mpd_host localhost
# mpd_port 6600
# Print everything to console?
out_to_console no
# Xft font when Xft is enabled
xftfont Bitstream Vera Sans:size=9
# Text alpha when using Xft
xftalpha 0.8
# mail spool
mail_spool $MAIL
# 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 no
#
# Create own window instead of using desktop (required in nautilus)
#
own_window yes
#
own_window_type override
#
own_window_transparent yes
#
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
#
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 200 0
# Draw shades?
draw_shades yes
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders 8
# border margins
border_margin 4
# border width
border_width 1
# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color black
# 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 10
gap_y 50
# 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 8
# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 8
# 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.
#modificado
use_spacer yes
use_xft yes
# mldonkey_hostname Hostname for mldonkey stuff, defaults to localhost
# mldonkey_port Mldonkey port, 4001 default
# mldonkey_login Mldonkey login, default none
# mldonkey_password Mldonkey password, default none
# boinc (seti) dir
# seti_dir /opt/seti
# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument
# stuff after 'TEXT' will be formatted on screen
TEXT
SYSTEM ${hr 2}
Kernel: ${alignr}${kernel}
Uptime: ${alignr}${uptime}
Battery Status: ${alignr}${battery}
CPU: ${cpu cpu}% @ ${freq_g cpu}GHz ${alignr}${cpubar 8,60 cpu}
RAM: $memperc% ${alignr}${membar 8,60}
Swap: $swapperc% ${alignr} $swap/$swapmax}
STORAGE (Local) ${hr 2}
Avalible: ${alignr}${fs_free}
Used : ${alignr}${fs_used /} / ${fs_size /}
STORAGE (Other) ${hr 2}
${if_mounted /media/DM_1GB}DM_1GB have ${fs_free /media/DM_1GB} avalible.
${else}${if_mounted /media/DM_8GB}DM_8GB have ${fs_free /media/DM_8GB}avalible.${else}No external storage detected${endif}
PROCESSES ${hr 2}
${alignr}Processes: $processes Running: $running_processes
Highest CPU: $alignr CPU% MEM%
${top name 1} $alignr${top cpu 1} ${top mem 1}
${top name 2} $alignr${top cpu 2} ${top mem 2}
${top name 3} $alignr${top cpu 3} ${top mem 3}
Highest MEM: $alignr MEM% CPU%
${top_mem name 1} $alignr${top_mem mem 1} ${top_mem cpu 1}
${top_mem name 2} $alignr${top_mem mem 2} ${top_mem cpu 2}
${top_mem name 3} $alignr${top_mem mem 3} ${top_mem cpu 3}
NETWORK is ${if_existing /proc/net/route eth1}a WLAN ${else}${if_existing /proc/net/route eth0}a LAN ${endif}${else}unavailable${endif}${hr 2}${if_existing /proc/net/route eth1}
ESSID: ${alignr}${wireless_essid eth1}
Signal Quality: ${wireless_link_qual eth1}% ${alignr}${wireless_link_bar 8,60 eth1}
WAP MAC: ${alignr}${wireless_ap eth1}
Local IP: ${alignr}${addr eth1}
External IP: ${alignr}${execi 3600 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}
${alignc}${upspeedgraph eth1 16,180 582D10 E08000}
${color #FFFFFF}ULS: ${upspeed eth1} kb/s ${alignr}Uploads: ${totalup eth1}
${alignc}${color2}${downspeedgraph eth1 16,180 444444 AAAAFF}
${color #FFFFFF}DLS: ${downspeed eth1} kb/s ${alignr}Downloads: ${totaldown eth1}${endif}
${else}
${if_existing /proc/net/route eth0}
LAN IP: ${alignr}${addr eth0}
Default Gateway IP:${alignr}${gw_ip eth0}
${alignc}${upspeedgraph eth0 16,180 582D10 E08000}
${color #FFFFFF}ULS: ${upspeed eth0} kb/s ${alignr}Uploads: ${totalup eth0}
${alignc}${color2}${downspeedgraph eth0 16,180 444444 AAAAFF}
${color #FFFFFF}DLS: ${downspeed eth0} kb/s ${alignr}Downloads: ${totaldown eth0}${endif}
Thanks for any help, and thanks for sharing really great conkyrc's
Bookmarks