126

Re: My Conky Config

xoros wrote:

Just use iftop, it shows incoming and outgoing connections...  you can see how I have it on my desktop:


Thanks for the suggestion.  If I filter out 10.0.0.0 that gets me to where I wanted to be.

ZeroTruths wrote:

To fix the A's w/ the ^ on them, put this line in before TEXT

override_utf8_locale yes

That sorted out the problem.  Thanks.

FHSM: avoid vowels and exotic consonants and you'll get your handle every time.  identi.ca

Re: My Conky Config

qi wrote:
NewCityVegas wrote:

.conkyrc QUESTION:

Disk usage /:$alignr${fs_used /} / ${fs_size /}
${if_existing /mnt/win_c}/mnt/win_c:$alignr${fs_used /mnt/win_c} / ${fs_size /mnt/win_c}$endif
${if_existing /mnt/win_d}/mnt/win_d:$alignr${fs_used /mnt/win_d} / ${fs_size /mnt/win_d}$endif
${if_existing /mnt/hda6}/mnt/hda6:$alignr${fs_used /mnt/hda6} / ${fs_size /mnt/hda6}$endif
${if_existing /mnt/hda8}/mnt/hda8:$alignr${fs_used /mnt/hda8} / ${fs_size /mnt/hda8}$endif
${if_existing /mnt/hda9}/mnt/hda9:$alignr${fs_used /mnt/hda9} / ${fs_size /mnt/hda9}$endif

When using conky conditional if statements, how do I prevent a "blank line" if condition is not met?

Good question!  I use an ugly hack: cancel out the blank line by inserting a negative vertical offset if the condition is not met.  So your example above might look like this:

Disk usage /:$alignr${fs_used /} / ${fs_size /}
${if_existing /mnt/win_c}/mnt/win_c:$alignr${fs_used /mnt/win_c} / ${fs_size /mnt/win_c}$else ${voffset -15} $endif
${if_existing /mnt/win_d}/mnt/win_d:$alignr${fs_used /mnt/win_d} / ${fs_size /mnt/win_d}$else ${voffset -15} $endif
${if_existing /mnt/hda6}/mnt/hda6:$alignr${fs_used /mnt/hda6} / ${fs_size /mnt/hda6}$else ${voffset -15} $endif
${if_existing /mnt/hda8}/mnt/hda8:$alignr${fs_used /mnt/hda8} / ${fs_size /mnt/hda8}$else ${voffset -15} $endif
${if_existing /mnt/hda9}/mnt/hda9:$alignr${fs_used /mnt/hda9} / ${fs_size /mnt/hda9}$else ${voffset -15} $endif

You'll probably need to adjust the value of -15 to match the height of a blank line in your chosen font.  As I say, it's ugly, but it works!

Does anyone have a more elegant solution?

I usually just make my conky config static. As in, I design it with the possibility in mind that something might not be there, but I will still use the space, as to not have conky moving up and down.

All in an effort to learn...
Delves deeper into code...

Re: My Conky Config

qi wrote:

Does anyone have a more elegant solution?

Maybe arrange the lines like this:

${if_existing /mnt/win_c}
/mnt/win_c:$alignr${fs_used /mnt/win_c} / ${fs_size /mnt/win_c}
$endif

I havent tried it myself though.

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: My Conky Config

The problem with this is that conky will draw blank lines where the if and endif statements are

All in an effort to learn...
Delves deeper into code...

Re: My Conky Config

if you do the if statements, elses etc inline with the line before and make sure that whatever is next (that you don't wish to have a line break) is on the next line down then conky won't generate a blank line either.

131

Re: My Conky Config

I love that look Aughban. Very clean and simple. Where did the wallpaper come from?

Re: My Conky Config

umm i mentioned how i edited it from the original picture http://crunchbanglinux.org/forums/post/4987/#p4987 if you guys like it i can post it up. Check out my new conky on that pic too, even cleaner than the last one i think

133

Re: My Conky Config

Aughban wrote:

if you do the if statements, elses etc inline with the line before and make sure that whatever is next (that you don't wish to have a line break) is on the next line down then conky won't generate a blank line either.

Thanks, Aughban.  That works, and it makes perfect sense, but it sure looks odd in .conkyrc!:

${if_mounted /XP}/XP $alignc ${fs_used /XP} / ${fs_size /XP} $alignr ${fs_used_perc /XP}%
${fs_bar /XP}
$endif${if_mounted /x750}/x750 $alignc ${fs_used /x750} / ${fs_size /x750} $alignr ${fs_used_perc /x750}%
${fs_bar /x750}
$endif

So, conky outputs the new lines at the end of lines 1 & 2 only if /XP is mounted; similarly, it outputs the new lines at the end of lines 3 & 4 only if /x750 is mounted.  Problem solved!

Re: My Conky Config

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
http://gjaltemaonline.nl/with_eth0.png
With wlan0
http://gjaltemaonline.nl/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]%

Last edited by eddiegj (2009-01-18 03:53:29)

Re: My Conky Config

hi, there is just an "endif missing":
at the end of your weather section, replace this

${else}
${font PizzaDude Bullets:size=12}4${font}   Weer Onbeschikbaar
${endif}

by this:

${endif}${else}${font PizzaDude Bullets:size=12}4${font}   Weer Onbeschikbaar
${endif}

hope this helps smile

Re: My Conky Config

I think the problem is you forgot to put "${endif}" sometime after this:

${if_existing /proc/net/route wlan0} 
NETWERK (wlan0:${wireless_essid wlan0})${hr 2}
Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: My Conky Config

ESCAPADO wrote:

hello there...

it's my first posting and this is my desktop:

http://www.ubuntu-pics.de/thumb/8035/screenshot_10_fa2wW5.png

.conkyrc & .conkyrc_rss

All scripts are used with these conkies i will also post when someones want it smile

How do I use this line (to display available updates)?:
${execi 1800 sudo apt-get -s upgrade | grep aktualisiert, | awk '{print $1}'} Upgrades

Tried a few things such as changing aktualisiert to update but don't know how any of it works and no results

Re: My Conky Config

you'll have to have it set up so you can sudo without a password. up to you if you want to set it up that way.

edit: if you do use it I believe youll want to change it to upgraded

Last edited by iggykoopa (2009-01-19 03:57:27)

I say never be complete, I say stop being perfect, I say lets evolve, let the chips fall where they may.

Re: My Conky Config

sudo LC_ALL=C apt-get -s upgrade | grep 'upgraded,' | awk '{print $1}'

this should work with every localization

Re: My Conky Config

Here, take a look at this:
http://crunchbanglinux.org/forums/topic … t-startup/

I had the same problem, but it has since been solved.

All in an effort to learn...
Delves deeper into code...

Re: My Conky Config

Hi, I installed CrunchBang on my eee 901 yesterday and I've got one question regarding Conky script; I use 8GB SDHC as an additional storage on my eee and I'd like to know how i could get conky to show it if it's plugged in? I'm semi-noob to linux (been using several distros on and off for couple years) so I don't yet know all the tricks to do things properly.

For now I only use this(i took Hanna's conky script(from page 1) and modified it slightly to suit my needs):

SDHC:
${fs_free /media/disk}/${fs_size /media/disk} ${alignr}${fs_bar 5,60 /media/disk}

So the problem is that when I take the SDHC out of my comp, Conky still shows the SDHC section but with parameters 0B/0B and when I plug the SDHC back, it doesn't update anymore to show the real used/free space. So how do i configure Conky to show the SDHC only when it's plugged in?

Last edited by hyperchondriac (2009-01-19 11:22:22)

Re: My Conky Config

i don't know if this will work but you could try

${if_existing /media/disk}SDHC:
${fs_free /media/disk}/${fs_size /media/disk} ${alignr}${fs_bar 5,60 /media/disk}${endif}

Re: My Conky Config

Here's my setup.

Nice and simple, with a splash of red (to match the pink heart of the cube)

http://i34.photobucket.com/albums/d145/MehallD/2009-01-20--1232487289_800x600_scro.png

EDIT: I'm using the "simple" theme.

You can't see the edges of any menus or anything, I love it =P

Last edited by Mehall (2009-01-20 21:44:43)

Ex-KDE user.
Collects old PC's (Coz he can't afford new ones =P)
Crunchbang @ Distrowatch
My Blog (updated infrequently, and on the #! Planet too.)

Re: My Conky Config

My new conky's, main pc & server.

http://img404.imageshack.us/img404/6098/mainpckw6.th.jpghttp://img404.imageshack.us/img404/2584/serverpcpe1.th.jpg

-Bob- 
Ubuntu User #24005, Linux User #480025
identi.ca  friendfeed  facebook

145

Re: My Conky Config

Pretty much the standard config except my NAS disk usage:

http://i285.photobucket.com/albums/ll78/eggbanjo75/screen1.png

Asus 4G EEE - Crunchee
Dual Core watercooled - Crunch and Xubuntu
2 x Nas with 2tb storage - FreeNas
1x Compaq hp - Xubuntu

Re: My Conky Config

^ Hahaha warez!

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

147

Re: My Conky Config

It's not just warez, i have a LOT of distro's in there...

o O (good job i blanked out the 'porn' bar)

Last edited by n1ck (2009-01-21 16:37:27)

Asus 4G EEE - Crunchee
Dual Core watercooled - Crunch and Xubuntu
2 x Nas with 2tb storage - FreeNas
1x Compaq hp - Xubuntu

148

Re: My Conky Config

n1ck wrote:

It's not just warez, i have a LOT of distro's in there...

o O (good job i blanked out the 'porn' bar)

Too funny lol

I view KDE like I view snow. It looks fun and marvelous, it's fun to play in, but after a while I just want someone to take it all away.

Re: My Conky Config

Hahah, too much to be forum-friendly? tongue
Also, how large is your screen resolution? O.o

All in an effort to learn...
Delves deeper into code...

150

Re: My Conky Config

1920x1200 - well you need a big screen for all that pr0n lol

Asus 4G EEE - Crunchee
Dual Core watercooled - Crunch and Xubuntu
2 x Nas with 2tb storage - FreeNas
1x Compaq hp - Xubuntu