SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 Re: Tips, Tricks & Scripts » My Conky Config » 2009-01-18 03:52:37

This is my Conky I put it together from pieces of other conkyrc files from this forum:D.
I have also translated some pieces to Dutch,so sorry if u can't read roll

It works perfect when not connected to wlan, but when I do connect everything after the Weather piece is gone:(
I can find the error, maybe somebody here can find it?
(terminal does not show any errors:o)

With eth0
with_eth0.png
With wlan0
with_wlan0.png
My .conkyrc:

# .conkyrc by fabsh <fabsh@lamerk.org>
# Based on ideas and code from the CunchBang Linux forums at http://crunchbanglinux.org
# v. 1.0

# Use Xft?
use_xft yes
xftfont DejaVu Sans:size=6
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

own_window yes
own_window_transparent yes
#own_window_type override
own_window_type desktop
#own_window_type normal #use this if you want a nice shadow to appear around conky

# If own_window is yes, these window manager hints may be used
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 180 0
#maximum_width 200

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_margin 5

# border width
border_width 1

# Default colors and also border colors
default_color grey
#default_shade_color black
#default_outline_color grey
own_window_colour grey

# 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 12
gap_y 8

# 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

TEXT
${alignc 40}${font Devil inside:size=80}6${font}
DATUM ${hr 2}
${alignc 29}${font Arial Black:size=18}${time %_I.%M%P}${font}
${voffset 2}${alignc}${time %A, %d %B %Y}

SYSTEEM ${hr 2}
${voffset 2}${font Arial Black:style=Bold:size=12}#!${font}   Version  ${alignr}8.10.1
${font StyleBats:size=12}g${font}   RAM: $memperc% ${alignr}${membar 8,60}
${font StyleBats:size=12}j${font}   Swap: $swapperc% ${alignr}${swapbar 8,60}
${font StyleBats:size=12}q${font}   Uptime: ${alignr}${uptime_short}

WEER ${hr 2}
${if_existing /proc/net/route wlan0}
${font Trebuchet MS:style=Bold:size=10}${execi 600 conkyForecast --location=NLXX0012 -d CN}, ${execi 600 conkyForecast --location=NLXX0012 -d CO}
${voffset -8}${alignr 56}${font ConkyWeather:style=Bold:size=40}${execi 600 conkyForecast --location=NLXX0012 --datatype=WF}${font}
${alignr}${font}${execi 600 conkyForecast --location=NLXX0012 -d CT} 

${voffset -52}${font Weather:size=40}y${font}   ${voffset -38}${font Trebuchet MS:size=26}${execi 600 conkyForecast --location=NLXX0012 --datatype=HT}${font}


${voffset 0}${font}Wind Snelheid: ${alignr}${execi 600 conkyForecast --location=NLXX0012 --hideunits --datatype=WS} km/h ${execi 600 conkyForecast --location=NLXX0012 --hideunits --datatype=WD}
${voffset 0}Daglicht: ${alignr}${execi 600 conkyForecast --location=NLXX0012 --datatype=SR} ~ ${execi 600 conkyForecast --location=NLXX0012 --datatype=SS}

${font Trebuchet MS:size=12}${execi 600 conkyForecast --location=NLXX0012 --datatype=MP}
${voffset -30}${alignr 42}${font MoonPhases:size=28}${execi 600 conkyForecast --location=NLXX0012 --datatype=MF}${font}
${else}${if_existing /proc/net/route eth0}
${font Trebuchet MS:style=Bold:size=10}${execi 600 conkyForecast --location=NLXX0012 -d CN}, ${execi 600 conkyForecast --location=NLXX0012 -d CO}
${voffset -8}${alignr 56}${font ConkyWeather:style=Bold:size=40}${execi 600 conkyForecast --location=NLXX0012 --datatype=WF}${font}
${alignr}${font}${execi 600 conkyForecast --location=NLXX0012 -d CT} 

${voffset -52}${font Weather:size=40}y${font}   ${voffset -38}${font Trebuchet MS:size=26}${execi 600 conkyForecast --location=NLXX0012 --datatype=HT}${font}


${voffset 0}${font}Wind Snelheid: ${alignr}${execi 600 conkyForecast --location=NLXX0012 --hideunits --datatype=WS} km/h ${execi 600 conkyForecast --location=NLXX0012 --hideunits --datatype=WD}
${voffset 0}Daglicht: ${alignr}${execi 600 conkyForecast --location=NLXX0012 --datatype=SR} ~ ${execi 600 conkyForecast --location=NLXX0012 --datatype=SS}

${font Trebuchet MS:size=12}${execi 600 conkyForecast --location=NLXX0012 --datatype=MP}
${voffset -30}${alignr 42}${font MoonPhases:size=28}${execi 600 conkyForecast --location=NLXX0012 --datatype=MF}${font}
${else}
${font PizzaDude Bullets:size=12}4${font}   Weer Onbeschikbaar
${endif}

${voffset -10}SCHIJF GEBRUIK${hr 2}
${voffset 4}${font Pie charts for maps:size=12}7${font}   ${voffset -5}Laptop: ${fs_free_perc /}% vrij${alignr}${fs_bar 8,60 /}
${if_mounted /media/EDDIE_HDD}
${font Pie charts for maps:size=12}7${font}   ${voffset -5}Portable Disk: ${fs_free_perc /media/EDDIE_HDD}% vrij${alignr}${fs_bar 8,60 /media/EDDIE_HDD}
${endif}
${if_existing /proc/net/route wlan0}
NETWERK (wlan0:${wireless_essid wlan0})${hr 2}

${voffset -6}${font PizzaDude Bullets:size=12}O${font}   Up: ${upspeed wlan0} kb/s ${alignr}${upspeedgraph wlan0 8,60 BEBEBE BEBEBE}
${voffset 4}${font PizzaDude Bullets:size=12}U${font}   Down: ${downspeed wlan0} kb/s ${alignr}${downspeedgraph wlan0 8,60 BEBEBE BEBEBE}
${voffset 4}${font PizzaDude Bullets:size=12}N${font}   Upload: ${alignr}${totalup wlan0}
${voffset 4}${font PizzaDude Bullets:size=12}T${font}   Download: ${alignr}${totaldown wlan0}
${voffset 4}${font PizzaDude Bullets:size=12}Z${font}   Signal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 8,60 wlan0}
${voffset 4}${font PizzaDude Bullets:size=12}b${font}   Local IP: ${alignr}${addr wlan0}
${else}${if_existing /proc/net/route eth0}
NETWERK (eth0)${hr 2}

${voffset -6}${font PizzaDude Bullets:size=12}O${font}   Up: ${upspeed eth0} kb/s ${alignr}${upspeedgraph eth0 8,60 789E2D A7CC5C}
${voffset 4}${font PizzaDude Bullets:size=12}U${font}   Down: ${downspeed eth0} kb/s ${alignr}${downspeedgraph eth0 8,60 789E2D A7CC5C}
${voffset 4}${font PizzaDude Bullets:size=12}N${font}   Upload: ${alignr}${totalup eth0}
${voffset 4}${font PizzaDude Bullets:size=12}T${font}   Download: ${alignr}${totaldown eth0}
${voffset 4}${font PizzaDude Bullets:size=12}b${font}   Local IP: ${alignr}${addr eth0}
${endif}${else}
NETWERK ${hr 2}
${font PizzaDude Bullets:size=14}4${font}   Netwerk Onbeschikbaar
${endif}

MUZIEK${hr 2}
${font Arial Black:size=14}Rythmbox${alignr}♫${font}
${if_running rhythmbox}${voffset 4}${execp conkyRhythmbox --template=/home/erwin/.conkyRhythmbox.template --statustext=Afspelen,Gepauzeerd,Gestopt -n}
${endif}${else}Geen muziek${endif}

My .conkyRythmbox.template:

${font StyleBats:size=12}j${font}   Status:${alignr}[--datatype=ST]
${font Devil inside:size=12}a${font}   Artiest:${alignr}[--datatype=AR]
${font StyleBats:size=12}A${font}   Album:${alignr}[--datatype=AL]
${font OpenLogos:size=12}`${font}   Titel:${alignr}[--datatype=TI]
${font StyleBats:size=12}8${font}   Positie:${alignr}[--datatype=PT]/[--datatype=LE] - [--datatype=PP]%

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo