176

Re: My Conky Config

@dannytatom

Thanx. Knew I'd missed the obvious. Amazing how much one comes to rely on a conky...

Hail #!

177

Re: My Conky Config

hello, quick question:
I've figured out how to do the:

System -------------------------

kind of dividers, but I'd really like to do this instead:

------------------------- System

Somehow thought it doesn't seem to be as simple as

${hr} System

with any combination of $alignr involved.

Any ideas?

178

Re: My Conky Config

Funny i was thinking the same thing the other day, but after looking around it doesn't seem possible. On the varibles it only gives you the 'height' option

'hr     (height)      Horizontal line, height is the height in pixels '

The only way i've come close is by doing this:
${hr 1}$alignr${offset -52}${voffset 9}Network

which puts the word 'Network' just under the end of the line....

Last edited by n1ck (2009-02-02 00:29:02)

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

179

Re: My Conky Config

hey, thanks for the tip!

this is not looking promising indeed...

EDIT: I have settled for something a bit different for now.. (Although still interested in tips on the other design)

http://img.photobucket.com/albums/v334/judedoh/conky.png

A bit corny, I'll admit...

# set to yes if you want Conky to be forked in the background
background yes

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
#xftfont Trebuchet MS:size=10
xftfont Monospace:size=8

# Text alpha when using Xft
xftalpha 1

# Update interval in seconds
update_interval 1.0-


# 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 200 200

# Maximum width
maximum_width 240

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Draw borders around graphs
draw_graph_borders no

# Stippled borders?
# stippled_borders 8

# border margins
# border_margin 2

# border width
# border_width 1

# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color white

# Text alignment, other possible values are commented
#alignment top_left
#alignment top_right
#alignment bottom_left
alignment bottom_right
#alignment none

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 12
gap_y 12

# 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

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

##############################################
##############################################

TEXT
${font style=bold}system${font}${offset -2}${voffset 2}${hr 2}${voffset 0}${offset 0}
cpu:$alignr${cpu cpu0}% ${cpugraph cpu0 14,150}
ram:$alignr$memperc% ${membar 12,150}
ssd:$alignr${fs_free_perc /}% ${fs_bar 12,150}
uptime:$alignr$uptime

${font style=bold}network${font}${offset -2}${voffset 2}${hr 2}${voffset 0}${offset 0}
hostname:$alignr$nodename
wired:$alignr${addr eth0}
wifi:$alignr${addr wlan0}

${font style=bold}weather${font}${offset 0}${voffset -9}${hr 2}${voffset 0}${offset 0}
${voffset 15}${font ConkyWeather:size=40}${execi 600 conkyForecast --location=UKXX0085 --datatype=WF}${font Monospace:size=35}$alignr${voffset -15}${execi 600 conkyForecast --location=UKXX0085 --datatype=HT}${font}

${font style=bold}shortcut${font}${offset -1}${voffset 2}${hr 2}${voffset 0}${offset 0}
alt+f2$alignr run dialog
alt+f3$alignr alt menu
super+l$alignr lock screen
super+u$alignr system update
super+x$alignr logout
 

Last edited by Donat (2009-02-02 01:55:36)

Re: My Conky Config

http://i34.photobucket.com/albums/d145/MehallD/conky.png

full desktop here: http://crunchbanglinux.org/forums/post/8781/#p8781

.conkyrc :

background yes
use_xft yes
xftfont Sans:size=8
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 200 200
maximum_width 200
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
default_color white
default_shade_color black
default_outline_color white
alignment top_right
gap_x 12
gap_y 12
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no

TEXT
${font sans-serif:bold:size=8}SYSTEM ${hr 2}
${font sans-serif:normal:size=8}$sysname $kernel $alignr $machine
Host:$alignr$nodename
Uptime:$alignr$uptime
$stippled_hr
HD temp : ${hddtemp /dev/sda}$alignr HD I/O : $diskio
${color ffffff}${diskiograph 15,200}
amd-core1: ${font}${execi 2 sensors | grep 'Core 0' | sed -e 's/.*  
+//' | sed -e 's/.0°C.*//'} °C    ${freq_dyn_g cpu1} ghz$alignr${cpu 
cpu1}%
${color ffffff}${cpubar cpu1}
amd-core2: ${font}${execi 2 sensors | grep 'Core 1' | sed -e 's/.*  
+//' | sed -e 's/.0°C.*//'} °C    ${freq_dyn_g cpu2} ghz$alignr${cpu 
cpu2}%
${color ffffff}${cpubar cpu2}
${cpugraph 20,200 eae8e3 ffffff}
$stippled_hr
${font sans-serif:bold:size=8}MEMORY ${hr 2}
${font sans-serif:normal:size=8}RAM $alignc $mem / $memmax $alignr 
$memperc%
$membar
${font sans-serif:bold:size=8}DISKS ${hr 2}
${font sans-serif:normal:size=8}/ $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /}%
${fs_bar /}
${font sans-serif:normal:size=8}/home $alignc ${fs_used /home} / ${fs_size 
/home} $alignr ${fs_used_perc /home}% 
${fs_bar /home}
SWAP $alignc ${swap} / ${swapmax} $alignr ${swapperc}%
${swapbar}

${font sans-serif:bold:size=8}TOP PROCESSES ${hr 2}
${font sans-serif:normal:size=8}${top_mem name 1}${alignr}${top mem 1} %
${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 sans-serif:bold:size=8}NETWORK ${hr 2}
WiFi ${font sans-serif:normal:size=8} $alignr ${addr ath0}
Connection quality: $alignr ${wireless_link_qual_perc ath0}%
${downspeedgraph ath0}
DLS:${downspeed ath0} kb/s $alignr total: ${totaldown ath0}
${upspeedgraph ath0}
ULS:${upspeed ath0} kb/s $alignr total: ${totalup ath0}
${font sans-serif:bold:size=8}eth0  ${font sans-serif:normal:size=8} $alignr ${addr eth0}
Inbound $alignr ${downspeed eth0} kb/s
${downspeedgraph eth0}
Outbound $alignr ${upspeed eth0} kb/s
${upspeedgraph eth0}
Public IP: $alignr ${execi 3600 wget -O - http://whatismyip.org/ | tail}

Last edited by Mehall (2009-02-02 15:40:17)

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.)

181

Re: My Conky Config

My horizontal conky :

http://img223.imageshack.us/img223/8020/conkyzf5.jpg

Entire screenshot with affiliate right click menu and theme can be seen here : http://crunchbanglinux.org/forums/post/8804/#p8804

The conky.rc : http://crunchbanglinux.org/pastebin/153
(need a font, if you need it just say it and  i'll give  it to you)



The update script :

#!/bin/bash
# Conky script for displaying available updates
# in Debian. This script assumes you are in the
# sudo group and require no password for root
# access. Add something as such to your conkyrc:
#${color}APT: ${color D7D3C5}${execi 28800 ~/bin/debupdates.sh}

sudo apt-get -qy update > /dev/null
NUMOFUPDATES=$(aptitude search "~U" | wc -l)
echo $NUMOFUPDATES Updates Available 

The  weather script (ive translate it but it's in english by default) :

#!/bin/sh
#AccuWeather (r) RSS weather tool for conky
#
#USAGE: weather.sh <locationcode>
#
#(c) Michael Seiler 2007

METRIC=1 #Should be 0 or 1; 0 for F, 1 for C

if [ -z $1 ]; then
    echo
    echo "USAGE: weather.sh <locationcode>"
    echo
    exit 0;
fi

curl -s http://rss.accuweather.com/rss/liveweather_rss.asp\?metric\=${METRIC}\&locCode\=$1 | perl -ne 'if (/Currently/) {chomp;/\<title\>Currently: (.*)?\<\/title\>/; print "$1"; }'

Location code at accuweather.com

Thanks to anna for both of them.

Last edited by Bast (2009-02-02 18:13:02)

"democracy has to be more than two wolves and a sheep voting on what to have for dinner"

182

Re: My Conky Config

http://img217.imageshack.us/img217/9189/screenshot1ah0.th.png

(thanks to all those i borrowed from on these forums.)

# Use Xft?
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.8
text_buffer_size 2048

color1 4482CB

minimum_size 180 0
maximum_width 200
own_window yes
own_window_hints undecorated,below,skip_taskbar
background no

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# fiddle with window
use_spacer yes


# Update interval in seconds
update_interval 3.0

# Minimum size of text area
minimum_size 400 5

# Draw shades?
draw_shades yes

# Text stuff
draw_outline no # amplifies text if yes
draw_borders no

uppercase no # set to yes if you want all text to be in uppercase

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

# Stippled borders?
stippled_borders 8

# border margins
border_margin 4

# border width
border_width 1

# Default colors and also border colors, grey90 == #e5e5e5
default_color white
default_shade_color black
default_outline_color white

own_window_colour brown
own_window_transparent yes

# 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
gap_x 35
gap_y 50

TEXT
${voffset 2}${font Pizzadude Bullets:size=22}6${font} ${alignc}$nodename ${voffset -6}${alignr 25}${color red}${font OpenLogos:size=26}u${font}${color} 
${voffset 4}system ${hr 2}
${voffset 2}Uptime: ${alignr}${uptime}

RAM: ${alignr}$mem / $memmax
${voffset 2}RAM%: $memperc% ${alignr}SWAP: $swapperc%

CPU: $cpu%${alignr} ${cpugraph 12,60 F57900 FCAF3E}

date ${hr 2}
${alignc 35}${font Trebuchet MS:size=22}${time %H:%M}${font}
${alignc}${time %A %d %Y}

hd freespace ${hr 2}
${voffset 4}vol root. ${fs_size /}${alignr}${fs_free /} 
${voffset 4}vol sda1. ${fs_size /media/sda1} ${alignr}${fs_free /media/sda1} 
${voffset 4}vol sda5. ${fs_size /media/sda5} ${alignr}${fs_free /media/sda5} 

net ${hr 2}
${if_existing /proc/net/route ppp0}
IP: ${color}${addr ppp0}
${voffset 4}Down:${downspeed ppp0} k/s ${alignr}Up:${upspeed ppp0} k/s
${voffset 4}${downspeedgraph ppp0 8,60 F57900 FCAF3E} ${alignr} ${upspeedgraph ppp0 8,60 F57900 FCAF3E}
${voffset 4}${color}Down:${totaldown ppp0} ${color} ${alignr}Up:${totalup ppp0}
${else}${if_existing /proc/net/route eth0}
IP: ${color}${addr ppp0}
${voffset 4}${color}Down:${color }${downspeed ppp0}k/s${color} ${alignr}Up:${color }${upspeed ppp0} k/s
${voffset 4}${downspeedgraph ppp0 8,60 F57900 FCAF3E} ${alignr} ${upspeedgraph ppp0 8,60 F57900 FCAF3E}
${voffset 4}${color}Down:${totaldown ppp0} ${color} ${alignr}Up:${totalup ppp0}
${endif}${else}
${font PizzaDude Bullets:size=14}4${font}   Network Unavailable
${endif}
weather ${hr 2}

${if_existing /proc/net/route ppp0}
${voffset -8}${alignr 56}${font ConkyWeather:style=Bold:size=32}${execi 3600 python ~/Scripts/conkyForecast.py --location=INXX0102 --datatype=WF}${font}
${voffset -52}${font Weather:size=40}y${font}   ${voffset -38}${font Trebuchet MS:size=26}${execi 3600 python ~/Scripts/conkyForecast.py --location=INXX0102 --datatype=HT}${font}

${execi 3600 python ~/Scripts/conkyForecast.py --location=INXX0102 --datatype=CC} 
Wind: ${execi 3600 python ~/Scripts/conkyForecast.py --location=INXX0102 --datatype=WS}
Humidity: ${execi 3600 python ~/Scripts/conkyForecast.py --location=INXX0102 --datatype=HM}
${else}${if_existing /proc/net/route eth0}
${voffset -8}${alignr 56}${font ConkyWeather:style=Bold:size=40}${execi 3600 python ~/Scripts/conkyForecast.py --location=INXX0102 --datatype=WF}${font}
${voffset -52}${font Weather:size=40}y${font}   ${voffset -38}${font Trebuchet MS:size=26}${execi 3600 python ~/Scripts/conkyForecast.py --location=INXX0102 --datatype=HT}${font}

${execi 3600 python ~/Scripts/conkyForecast.py --location=INXX0102 --datatype=CC} 
Wind: ${execi 3600 python ~/Scripts/conkyForecast.py --location=INXX0102 --datatype=WS}
Humidity: ${execi 3600 python ~/Scripts/conkyForecast.py --location=INXX0102 --datatype=HM}
${endif}${else}
${font PizzaDude Bullets:size=14}4${font}   Weather Unavailable
${endif}
quod libet ${hr 2}
${voffset 4}${alignc 35}${font Buttons and Switches JL:size=26}J${font}
${voffset 7}${execi 7 quodlibet --print-playing '<title>'}
${alignc 35} - ${execi 7 quodlibet --print-playing '<artist>'}

Last edited by sss (2009-02-02 20:18:36)

183

Re: My Conky Config

Hey this is my first post here. Just got myself a brand new laptop and thought I'd run Crunchbang on it. This is just a first draft of my conky conf (since I've only toyed with it for a couple of hours I'll probably redo alot of things in the coming time)

http://img27.imageshack.us/img27/1997/conky1wz1.png

The code:

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

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type desktop
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 no

# 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 35
gap_y 35

# 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 17}${font 28 Days Later:size=32}Holi${font}
${font Chopin Script:size=15}Life sucks and then you die.${font}

SYSTEM ${hr 2}
${font StyleBats:size=16}A${font}   CPU1: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60}
${font StyleBats:size=16}A${font}   CPU2: ${cpu cpu2}% ${alignr}${cpubar cpu2 8,60}
${font StyleBats:size=16}g${font}   RAM: $memperc% ${alignr}${membar 8,60}
${font Webdings:size=16}~${font}  Battery: ${battery_percent BAT0}% ${alignr}${battery_bar 8,60 BAT0}

DATE ${hr 2}
${alignc 17}${font Arial Black:size=16}${time %H:%M:%S}${font}
${alignc}${time %A %d %B %Y}
${alignc}Uptime: ${uptime}

${voffset -5}HD ${hr 2}
${voffset 10}${fs_used /} / ${fs_size /} ${alignr}${fs_bar 8,60 /}

NETWORK ${hr 2}
${if_existing /proc/net/route ra0}
IP: ${addr ra0}${alignr}Signal: ${wireless_link_qual ra0}%
${color}Down: ${downspeed ra0} kB/s ${alignr}Up: ${upspeed ra0} kB/s
${downspeedgraph ra0 25,100 FFFF99 FFFF33} ${alignr}${upspeedgraph ra0 25,100 FFFF00 FFCC00}
Total: ${totaldown ra0} ${alignr}Total: ${totalup ra0}
${else}${if_existing /proc/net/route eth0}
${alignc 21}${font size=9}${voffset -11}IP: ${addr eth0}${font}
${voffset 2}Down: ${downspeed eth0} kB/s ${alignr}Up: ${upspeed eth0} kB/s
${downspeedgraph eth0 25,100 FFFF99 FFFF33} ${alignr}${upspeedgraph eth0 25,100 FFFF00 FFCC00}
Total: ${totaldown eth0} ${alignr}Total: ${totalup eth0}
${endif}${else}
${font PizzaDude Bullets:size=14}4${font}   Network Unavailable
${endif}
PROCESSES ${hr 2}
NAME $alignr PID    CPU
${top name 1} $alignr ${top pid 1} ${top cpu 1}
${top name 2} $alignr ${top pid 2} ${top cpu 2}
${top name 3} $alignr ${top pid 3} ${top cpu 3}
${top name 4} $alignr ${top pid 4} ${top cpu 4}
${top name 5} $alignr ${top pid 5} ${top cpu 5}
${top name 6} $alignr ${top pid 6} ${top cpu 6}
${top name 7} $alignr ${top pid 7} ${top cpu 7}
${top name 8} $alignr ${top pid 8} ${top cpu 8}

*Reason for edit*
More alterations and new code. Should be happy with this for a while smile

Last edited by Holi (2009-02-06 05:00:23)

42 - Just a viking from the north, doing his thing!

Re: My Conky Config

I approve of your saying big_smile

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

Re: My Conky Config

http://i202.photobucket.com/albums/aa90/pat23_2007/2009-02-05--1233826527_1440x900_scr.png

Does any one know how to get rid of the A thing? I have tried everything I know of.

# set to yes if you want Conky to be forked in the background
background yes

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
#xftfont Trebuchet MS:size=12
xftfont Sans:size=10

# Text alpha when using Xft
xftalpha 1

# Update interval in seconds
update_interval 1.0

# 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 250 250

# Maximum width
maximum_width 250

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Draw borders around graphs
draw_graph_borders no

# Stippled borders?
# stippled_borders 8

# border margins
# border_margin 2

# border width
# border_width 1

# Default colors and also border colors
default_color light blue
default_shade_color black
default_outline_color white

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
#alignment none

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 12
gap_y 12

# 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

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale no

##############################################
##############################################

TEXT
SYSTEM INFO ${hr 2}

${font Trebuchet:size=25}$alignc$nodename${font}

${font Trebuchet:size=20}$alignc${time %a %m/%d/%Y}${font}
${font Trebuchet:size=30}$alignc${time %l:%M %p}${font}



    ${if_existing /proc/net/route eth0}
    ${voffset -8}${font ConkyWeather:size=75}${execi 500 /usr/bin/conkyForecast --location=77371 --datatype=WF}${font}
    ${voffset -52}${font ConkyWeather:size=40}           ${font}${voffset -40}${font sans:size=26}${execi 500 /usr/bin/conkyForecast --location=77371 --datatype=HT --imperial}${font}


${voffset 0}${font}Barometer Tendency: ${alignr}${execi 500 /usr/bin/conkyForecast --location=77371 --datatype=BD}
${voffset 0}Humidity: ${alignr}${execi 500 /usr/bin/conkyForecast --location=77371 --datatype=HM}
${voffset 0}${font}Wind Speed: ${alignr}${execi 500 /usr/bin/conkyForecast --location=77371 --hideunits --datatype=WS} mph ${execi 500 /usr/bin/conkyForecast --location=77371 --hideunits --datatype=WD}
${voffset 0}Moon Phase: ${alignr}${execi 500 conkyForecast --location=77371 --datatype=MP}

Kernel:  ${alignr}${kernel}
Uptime:$alignr$uptime
RAM:$alignr$mem/$memmax
Swap usage:$alignr$swap/$swapmax
Disk usage:$alignr${fs_used /}/${fs_size /}
Processor #1:$alignr${cpu cpu1}%

NETWORK ${hr 2}
${if_existing /proc/net/route wlan0}
Up: ${upspeed wlan0} kb/s ${alignr}${upspeedgraph wlan0 8,60 3465A4 729FCF}
Down: ${downspeed wlan0} kb/s ${alignr}${downspeedgraph wlan0 8,60 3465A4 729FCF}
Upload: ${alignr}${totalup wlan0}
Download: ${alignr}${totaldown wlan0}
Signal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 8,60 wlan0}
Local IP: ${alignr}${addr wlan0}
${else}${if_existing /proc/net/route eth0}
Up: ${upspeed eth0} kb/s ${alignr}${upspeedgraph eth0 8,60 789E2D A7CC5C}
Down: ${downspeed eth0} kb/s ${alignr}${downspeedgraph eth0 8,60 789E2D A7CC5C}
Upload: ${alignr}${totalup eth0}
Download: ${alignr}${totaldown eth0}
Local IP: ${alignr}${addr eth0}
${endif}${else}
Network Unavailable
${endif}

MUSIC ${hr 2}

$alignc${exec rhythmbox-client --no-start --print-playing-format %aa}
$alignc${exec rhythmbox-client --no-start --print-playing-format %tt}
$alignc${exec rhythmbox-client --no-start --print-playing-format %te/%td}

Re: My Conky Config

^hi : last line before TEXT

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale no

replace by

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

hope it helps smile

Re: My Conky Config

^You are a life saver, *HUG* lol

Re: My Conky Config

I messed with my conky this am and this is what i came up with
http://i428.photobucket.com/albums/qq1/Burfoot1/2009-02-05--1233853954_1280x1024_sc.png
I can supply rc if anyone is interested..

Re: My Conky Config

Donat wrote:

hello, quick question:
I've figured out how to do the:

System -------------------------

kind of dividers, but I'd really like to do this instead:

------------------------- System

Somehow thought it doesn't seem to be as simple as

${hr} System

with any combination of $alignr involved.

Any ideas?

As an alternative use this punctuation: –

If you set to a monospace font it will make a straight line:

http://www.zwixy.com/images/1896098342009020512338579321280x1024scrot.png

Last edited by anonymous (2009-02-05 18:20:07)

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

Hey, heres my first attempt at conky, mostly based on one omns posted.

http://img11.imageshack.us/img11/728/conkykx8.png

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

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type desktop
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 no

# 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 black
#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 35
gap_y 35

# 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 65}${font Starjedi Hollow:size=30}marcus${font}
${alignc 30}${font Elegant:size=17:style=bold}Life is shit, get to know this!${font}
${voffset 10}SYSTEM ${hr 2}
${voffset 2}${font Starjedi Hollow:size=20}m${font}   Kernel:  ${alignr}${kernel}
${font Starjedi Hollow:size=20}a${font}   CPU1: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60}
${font Starjedi Hollow:size=20}c${font}   CPU2: ${cpu cpu2}% ${alignr}${cpubar cpu2 8,60}
${font Starjedi Hollow:size=20}r${font}   RAM: $memperc% ${alignr}${membar 8,60}
${font Starjedi Hollow:size=20}o${font}  Battery: ${battery_percent BAT0}% ${alignr}${battery_bar 8,60 BAT0}

DATE ${hr 2}
${alignc 17}${font TIE\-Wing:size=20}${time %H:%M:%S}${font}
${alignc}${time %A %d %B %Y}

HD ${hr 2}

${voffset -5}${fs_used /}/${fs_size /} ${alignr}${fs_bar 8,60 /}

NETWORK ${hr 2}
${if_existing /proc/net/route wlan0}
${voffset -6}${font Starjedi:size=14}%${font}   Up: ${upspeed wlan0} kb/s ${alignr}${upspeedgraph wlan0 8,60 BEBEBE BEBEBE}
${voffset 4}${font Starjedi:size=14}&${font}   Down: ${downspeed wlan0} kb/s ${alignr}${downspeedgraph wlan0 8,60 BEBEBE BEBEBE}
${voffset 4}${font TIE\-Wing:size=25}<${font}   Upload: ${alignr}${totalup wlan0}
${voffset 4}${font Starjedi:size=14}*${font}   Download: ${alignr}${totaldown wlan0}
${voffset 4}${font Starjedi:size=14}#${font}   Local Ip: ${alignr}${addr wlan0}
${else}${if_existing /proc/net/route eth0}
${voffset -6}${font Starjedi:size=14}%${font}   Up: ${upspeed eth0} kb/s ${alignr}${upspeedgraph eth0 8,60 789E2D A7CC5C}
${voffset 4}${font Starjedi:size=14}&${font}   Down: ${downspeed eth0} kb/s ${alignr}${downspeedgraph eth0 8,60 789E2D A7CC5C}
${voffset 4}${font TIE\-Wing:size=25}<${font}   Upload: ${alignr}${totalup eth0}
${voffset 4}${font Starjedi:size=14}*${font}   Download: ${alignr}${totaldown eth0}
${voffset 4}${font Starjedi:size=14}#${font}   Local Ip: ${alignr}${addr eth0}
${endif}${else}${if_existing /proc/net/route eth1}
${voffset -6}${font Starjedi:size=14}%${font}   Up: ${upspeed eth1} kb/s ${alignr}${upspeedgraph eth1 8,60 789E2D A7CC5C}
${voffset 4}${font Starjedi:size=14}&${font}   Down: ${downspeed eth0} kb/s ${alignr}${downspeedgraph eth1 8,60 789E2D A7CC5C}
${voffset 4}${font TIE\-Wing:size=25}<${font}   Upload: ${alignr}${totalup eth1}
${voffset 4}${font Starjedi:size=14}*${font}   Download: ${alignr}${totaldown eth1}
${voffset 4}${font Starjedi:size=14}#${font}   Local Ip: ${alignr}${addr eth1}
${endif}${else}
${font TIE\-Wing:size=14}@${font}   Network Unavailable
${endif}

PROCESSES ${hr 2}
${voffset 3}NAME $alignr PID    CPU
${voffset 5}${top name 1} $alignr ${top pid 1} ${top cpu 1}
${top name 2} $alignr ${top pid 2} ${top cpu 2}
${top name 3} $alignr ${top pid 3} ${top cpu 3}
${top name 4} $alignr ${top pid 4} ${top cpu 4}
${top name 5} $alignr ${top pid 5} ${top cpu 5}
${top name 6} $alignr ${top pid 6} ${top cpu 6}

I kind of censored over the Local IP bit because it gave faulty values because of a network problem I had. But without weird networking problems it works smile

Edit: Also the Battery part is at 0% because I originally made this conf for my laptop but then later on decided to install crunchbang on my desktop as well, and this is taken from my desktop.

Last edited by Zenter (2009-02-06 10:48:53)

Re: My Conky Config

Wanted Conky to be more of a heads up display, rather than dominating the right side of my desktop, so I spread things around a bit. It's still a work in progress. The main problem that's bugging me is the system stats layout in the bottom right corner. Can't find a solution that I like, but I'll keep playing with it.

At night I like to change the display color to a dark red, matching the rooster, but during the day I have to switch over to white to make it visible. It's a pain, but I can't figure out any easier way to change the color between night and day.

I've only been using Conky for two days, so my methods could be a little rudimentary. If anyone has any suggestions/recommendations on my code, please let me know.

http://farm4.static.flickr.com/3449/3261269882_730e83e893_o.png

###Conky Script - White HUD###
###By Patrick Murphy###
background yes
use_xft yes
xftfont Verdana:size=8.5
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 1270
maximum_width 1270
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no
#Evening Color: 6A0000
default_color white 
default_shade_color black
default_outline_color white
alignment top_right
gap_x 5
gap_y 0
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
text_buffer_size 2048

TEXT
${voffset -10} ${alignr 135}${font Arial Black:size=28}${time %I:%M%P}${font}
${voffset 0} ${alignr 103}${font Arial Black:size=18}${time %A %d}${font}
${voffset -61} ${font ConkyWeather:style=Bold:size=55}${execi 3600 conkyForecast -l USTX1060 -d WF}${font}
${voffset -88} ${alignc 535} ${font Arial Black:style=Bold:size=28}${execi 3600 conkyForecast -l USTX1060 -d HT -i -x}${font}
${voffset 10} ${alignc 516} Wind ${alignc 472} ${execi 3600 conkyForecast -l USTX1060 -d WS -i -u} ${execi 3600 conkyForecast -l USTX1060 -d WD -i}
${voffset 0} ${alignc 523} Gust ${alignc 467} ${execi 3600 conkyForecast -l USTX1060 -d WG -i -u}
${voffset 30} ${font Arial Black:size=9}${execi 3600 conkyForecast -l USTX1060 -s 1 -d DW}: ${font} 
${voffset 4}${alignc 567} H ${execi 3600 conkyForecast -l USTX1060 -u -s 1 -d HT -i}
${voffset 1} ${alignc 565} L ${execi 3600 conkyForecast -l USTX1060 -u -s 1 -d LT -i}
${voffset -28} ${alignc 625} ${font ConkyWeather:style=Bold:size=24}${execi 3600 conkyForecast -l USTX1060 -s 1 -d WF}${font}
${voffset 10} ${font Arial Black:size=9}${execi 3600 conkyForecast -l USTX1060 -s 2 -d DW}: ${font} 
${voffset 4}${alignc 567} H ${execi 3600 conkyForecast -l USTX1060 -u -s 2 -d HT -i}
${voffset 1} ${alignc 565} L ${execi 3600 conkyForecast -l USTX1060 -u -s 2 -d LT -i}
${voffset -28} ${alignc 625} ${font ConkyWeather:style=Bold:size=24}${execi 3600 conkyForecast -l USTX1060 -s 2 -d WF}${font}
${voffset 10} ${font Arial Black:size=9}${execi 3600 conkyForecast -l USTX1060 -s 3 -d DW}: ${font} 
${voffset 4}${alignc 567} H ${execi 3600 conkyForecast -l USTX1060 -u -s 3 -d HT -i}
${voffset 1} ${alignc 565} L ${execi 3600 conkyForecast -l USTX1060 -u -s 3 -d LT -i}
${voffset -28} ${alignc 625} ${font ConkyWeather:style=Bold:size=24}${execi 3600 conkyForecast -l USTX1060 -s 3 -d WF}${font}
${voffset 635} ${alignc -522}${font Arial Black:size=9} Uptime ${font}${alignr 15} $uptime_short
${voffset 0} ${alignc -519}${font Arial Black:size=9} Tasks ${font}${alignr 15} $running_processes/$processes
${voffset 0} ${alignc -522}${font Arial Black:size=9} RAM ${font}${alignr 15} $memperc%
${voffset 0} ${alignc -519}${font Arial Black:size=9} CPU ${font}${alignr 15} ${cpu cpu1}%

Re: My Conky Config

you could have two different conky configs with the different colors and set a cron job to switch between them then reload conky at a certain time.

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

193

Re: My Conky Config

anonymous wrote:

As an alternative use this punctuation: –

If you set to a monospace font it will make a straight line:

http://www.zwixy.com/images/1896098342009020512338579321280x1024scrot.png

Thanks a lot for the tip, I'll give it a try when I can smile

194

Re: My Conky Config

after posting in the wrong, now in the right one smile

# conky:  configuration file
# author: pitje

# do not fork to background
background no

# font settings
use_xft yes
xftalpha 0.1
font AquaBase-8
uppercase no
override_utf8_locale yes

no_buffers no
text_buffer_size 512

# update every 1 sec
#update_interval 1

# stay running forever
total_run_times 0

# window
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# avoid flickering
double_buffer yes

# size
minimum_size 250 5
maximum_width 300

# position
alignment bottom_right
#alignment top_right
gap_x 10
gap_y 10

# colors
default_color white
default_shade_color1
default_outline_color1
color1 000000
color2 444444
color3 808080

# borders
draw_borders no
draw_graph_borders no
stippled_borders 8
border_margin 4
border_width 1

# shades
draw_shades no

# outline
draw_outline no

# spacer
use_spacer yes

cpu_avg_samples 2
net_avg_samples 1
short_units yes

TEXT
${voffset 1}
${font Bitstream Vera Sans roman:size=24}${alignc}${color3}${exec who | grep tty | awk '{print $1}'}${color2}@${color3}${nodename}
${voffset -15}${color2}${font Bitstream Vera Sans roman:bold:size=10}${color2}SYSTEM ${color1} ${hr 2}
${font}${color2}${sysname} ${kernel} ${alignr}${machine}
Uptime${alignr}${uptime}
Load${alignr}${loadavg}
${font Bitstream Vera Sans roman:bold:size=10}${color2}PROCESSOR ${color1}${hr 2}
${font}${color2}CPU1 ${cpu cpu1}%${alignr}CPU2 ${cpu cpu2}%
${cpubar cpu1 5,110 $color1 $color3}${alignr}${cpubar cpu2 5,110 $color1 $color3}
${cpugraph cpu1 15,110 $color1 $color3}${alignr}${cpugraph cpu2 15,110 $color1 $color3}
${alignr}PID     CPU%   MEM%
${top name 1}${alignr} ${top pid 1}    ${top cpu 1}    ${top mem 1}
${top name 2}${alignr} ${top pid 2}    ${top cpu 2}    ${top mem 2}
${top name 3}${alignr} ${top pid 3}    ${top cpu 3}    ${top mem 3}
${font Bitstream Vera Sans roman:bold:size=10}${color2}MEMORY ${color1}${hr 2}
${font}${color2}RAM${alignc}${mem} / ${memmax} ${alignr} ${memperc}%
${membar}
SWAP${alignc}${swap}/ ${swapmax}${alignr}${swapperc}%
${swapbar}
${alignr}PID     CPU%   MEM%
${top_mem name 1}${alignr} ${top_mem pid 1}    ${top_mem cpu 1}    ${top_mem mem 1}
${top_mem name 2}${alignr} ${top_mem pid 2}    ${top_mem cpu 2}    ${top_mem mem 2}
${top_mem name 3}${alignr} ${top_mem pid 3}    ${top_mem cpu 3}    ${top_mem mem 3}
${font Bitstream Vera Sans roman:bold:size=10}${color2}HDD ${color1}${hr 2}
${font}${color2}/${alignc}${fs_used /}/ ${fs_size /}${alignr}${fs_free_perc /}%
${fs_bar /}
${font}${color2}/home${alignc}${fs_used /home}/ ${fs_size /home}${alignr}${fs_free_perc /home}%
${fs_bar /home}
${font}${color2}/various${alignc}${fs_used /media/various}/ ${fs_size /media/various}${alignr}${fs_free_perc /media/various}%
${fs_bar /media/various}

${font Bitstream Vera Sans roman:bold:size=10}${color2}NETWORK ${color1}${hr 2}
${font}${color2}External IP: ${alignr}${execi 600 wget -O - http://pitje.ath.cx/ip.php | tail}
IP (eth0):${alignr}${addr eth0}
Down: ${downspeed eth0} k/s ${alignr}Up: ${upspeed eth0} k/s
${downspeedgraph eth0 20,90 $color1 $color3} ${alignr}${upspeedgraph eth0 20,90 $color1 $color3}
Total: ${totaldown eth0} ${alignr}Total: ${totalup eth0}
${font Bitstream Vera Sans roman:bold:size=10}${color2}TIME ${color1}${hr 2}
${alignr}${voffset -5}${offset -55}${color2}${font :size=36}${time %H}${font :size=18}${voffset -15}${time %M}
${voffset -15}${font Bitstream Vera Sans roman:bold:size=8}${alignr}${time %a}
${font :size=12}${alignr}${time %Y.%m.%d}

which gives me this:
http://pitje.rottochop.nl/img/scrsht.png
(It's my desktop @ work, but got the same one on my #! installation)

Name the greatest of all inventors. Accident. - Mark Twain

Re: My Conky Config

http://s110.photobucket.com/albums/n114/smartboyalex77/2009-02-12--1234497459_1024x768_scr.png

Here is mine. It is very basic but has a lot (besides the weather). I put in gmail and a code for rhythmbox at the bottom. You can throw in some icons if you want to use it. This has only wireless network info since it is on my laptop.

conkyrc

background yes
use_xft yes
xftfont Sans:size=8
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 200 200
maximum_width 200
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
default_color white
default_shade_color black
default_outline_color white
alignment top_right
gap_x 12
gap_y 12
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no

TEXT

${font sans-serif:bold:size=9}DATE ${hr 2}
${alignc 29}${font Arial Black:size=18}${time %_I:%M%P}${font}
${voffset 2}${alignc}${time %A, %B %d %Y}

${font sans-serif:bold:size=9}PROCESSORS ${hr 2}
${font sans-serif:normal:size=8}CPU: ${cpu cpu1}% ${cpubar cpu1}
Speed:  $alignr${freq}MHz

${font sans-serif:bold:size=9}MEMORY ${hr 2}
${font sans-serif:normal:size=8}RAM $alignc $mem / $memmax $alignr $memperc%
$membar
${font sans-serif:normal:size=8}SWAP $alignc ${swap} / ${swapmax} $alignr ${swapperc}%
${swapbar}

${font sans-serif:bold:size=9}DISK I/O ${hr 2}
${font sans-serif:normal:size=8}Reads: $alignc ${diskio_read /dev/sda1} ${alignr}${diskiograph_read 10,90 00FF00 00FF00}
${font sans-serif:normal:size=8}Writes: $alignc ${diskio_write /dev/sda1} ${alignr}${diskiograph_write 10,90 FF0000 FF0000}

${font sans-serif:bold:size=9}TOP PROCESSES ${hr 2}
${font sans-serif:normal:size=8}${top_mem name 1}${alignr}${top mem 1} %
${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 sans-serif:bold:size=7}Currently:$alignr$processes processes ($running_processes running)

${font sans-serif:bold:size=9}NETWORK ${hr 2}
${font sans-serif:normal:size=8}Up: $alignc${upspeed wlan0} kb/s ${alignr}${upspeedgraph wlan0 10,90 FF0000 FF0000}
${font sans-serif:normal:size=8}Down: $alignc${downspeed wlan0} kb/s ${alignr}${downspeedgraph wlan0 10,90 00FF00 00FF00}
${font sans-serif:normal:size=8}Upload: ${alignr}${totalup wlan0}
${font sans-serif:normal:size=8}Download: ${alignr}${totaldown wlan0}
${font sans-serif:normal:size=8}Local IP: ${alignr}${addr wlan0}
${font sans-serif:normal:size=8}ESSID: $alignr ${wireless_essid ath0}
${font sans-serif:normal:size=8}Signal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 10,120 wlan0}

${font sans-serif:bold:size=9}E-MAIL${hr 2}

     You have ${texeci 60 perl ~/scripts/gmail.pl n} new gmail(s).

${execi 60 perl ~/scripts/gmail.pl s}

${font sans-serif:bold:size=9}MUSIC${hr 2}

     ${color e0e0e0}${font Bitstream Vera Sans:size=9}${exec rhythmbox-client --no-start --print-playing-format %aa} - ${exec rhythmbox-client --no-start --print-playing-format %tt}  
       ${color adadad}${font Bitstream Vera Sans:size=8}${exec rhythmbox-client --no-start --print-playing-format %at}
       ${exec rhythmbox-client --no-start --print-playing-format %te/%td}

Here is the gmail.pl code (make sure you have Perl installed) and put it in your home (home/"user") in a new folder called "scripts"  (home/"user"/scripts/gmail.pl)

#!/usr/bin/perl

use Switch;
use Text::Wrap;

my $what=$ARGV[0];

$user="username"; #username for gmail account
$pass="password"; #password for gmail account
$file="/tmp/gmail.html"; #temporary file to store gmail

#wrap format for subject
$Text::Wrap::columns=65; #Number of columns to wrap subject at
$initial_tab="    "; #Tab for first line of subject
$subsequent_tab="\t"; #tab for wrapped lines
$quote="\""; #put quotes around subject

#limit the number of emails to be displayed
$emails=4; #if -1 display all emails

&passwd; #give password the proper url character encoding

switch($what){ #determine what the user wants
    case "n" {&gmail; print "$new\n";} #print number of new emails
    case "s" { #print $from and $subj for new email
        &gmail;
        if ($new>0){
            my $size=@from;
            if ($emails!=-1 && $size>$emails){$size=$emails;} #limit number of emails displayed
            for(my $i=0; $i<$size; ++$i){
                print "From: $from[$i]\n"; #print from line
                $text=$quote.$subj[$i].$quote."\n";
                print wrap($initial_tab, $subsequent_tab, $text); #print subject with word wrap
            }
            $size=@from;
            if ($emails!=-1 && $size >$emails){print "$emails out of $size new emails displayed\n";}
        }
    }     
    case "e" { #print number of new emails, $from, and $subj
        &gmail;
        if($new==0){print "You have no new emails.\n";}
        else{
            print "You have $new new email(s).\n";
            my $size=@from;
            if ($emails!=-1 && $size>$emails){$size=$emails;} #limit number of emails displayed
            for(my $i=0; $i<$size; ++$i){
                print "From: $from[$i]\n"; #print from line
                $text=$quote.$subj[$i].$quote;
                print wrap($initial_tab, $subsequent_tab, $text); #print subject with word wrap
            }
            $size=@from;
            if ($emails!=-1 && $size >$emails){print "$emails out of $size new emails displayed\n";}
        }
    }
    else {
        print "Usage Error: gmail.pl <option>\n";
        print "\tn displays number of new emails\n";
        print "\ts displays from line and subject line for each new email.\n";
        print "\te displays the number of new emails and from line plus \n";
        print "\t\tsubject line for each new email.\n";
    } #didn't give proper option
}

sub gmail{
    if(!(-e $file)){ #create file if it does not exists
        `touch $file`;
    } 

    #get new emails
    `wget -O - https://$user:$pass\@mail.google.com/mail/feed/atom --no-check-certificate> $file`;

    open(IN, $file); #open $file

    my $i=0; #initialize count
    $new=0; #initialize new emails to 0

    my $flag=0;

    while(<IN>){ #cycle through $file
        if(/<entry>/){$flag=1;}
        elsif(/<fullcount>(\d+)<\/fullcount>/){$new=$1;} #grab number of new emails
        elsif($flag==1){ 
            if(/<title>.+<\/title>/){push(@subj, &msg);} #grab new email titles
            elsif(/<name>(.+)<\/name>/){push(@from, $1); $flag=0;} #grab new email from lines
        }
    }

    close(IN); #close $file
}

sub passwd{ #change to url escape codes in password
    #URL ESCAPE CODES
    $_=$pass;
    s/\%/\%25/g;
    s/\#/\%23/g;
    s/\$/\%24/g;
    s/\&/\%26/g;
    s/\//\%2F/g;
    s/\:/\%3A/g;
    s/\;/\%3B/g;
    s/\</\%3C/g;
    s/\=/\%3D/g;
    s/\>/\%3E/g;
    s/\?/\%3F/g;
    s/\@/\%40/g;
    s/\[/\%5B/g;
    s/\\/\%5C/g;
    s/\]/\%5D/g;
    s/\^/\%5E/g;
    s/\`/\%60/g;
    s/\{/\%7B/g;
    s/\|/\%7C/g;
    s/\}/\%7D/g;
    s/\~/\%7E/g;
    $pass=$_;
}

sub msg{
    #THE HTML CODED CHARACTER SET [ISO-8859-1]
    chomp; s/<title>(.+)<\/title>/$1/; #get just the subject
    #now replace any special characters
    s/\&\#33\;/!/g;        #Exclamation mark
    s/\&\#34\;/"/g; s/\&quot\;/"/g;      #Quotation mark
    s/\&\#35\;/#/g;        #Number sign
    s/\&\#36\;/\$/g;        #Dollar sign
    s/\&\#37\;/%/g;        #Percent sign
    s/\&\#38\;/&/g; s/\&amp\;/&/g;        #Ampersand
    s/\&\#39\;/'/g;        #Apostrophe
    s/\&\#40\;/(/g;        #Left parenthesis
    s/\&\#41\;/)/g;        #Right parenthesis
    s/\&\#42\;/*/g;        #Asterisk
    s/\&\#43\;/+/g;        #Plus sign
    s/\&\#44\;/,/g;        #Comma
    s/\&\#45\;/-/g;        #Hyphen
    s/\&\#46\;/./g;        #Period (fullstop)
    s/\&\#47\;/\//g;        #Solidus (slash)
    s/\&\#58\;/:/g;        #Colon
    s/\&\#59\;/\;/g;        #Semi-colon
    s/\&\#60\;/</g; s/\&lt\;/</g;        #Less than
    s/\&\#61\;/=/g;        #Equals sign
    s/\&\#62\;/>/g; s/\&gt\;/>/g;        #Greater than
    s/\&\#63\;/\?/g;        #Question mark
    s/\&\#64\;/\@/g;        #Commercial at
    s/\&\#91\;/\[/g;        #Left square bracket
    s/\&\#92\;/\\/g;        #Reverse solidus (backslash)
    s/\&\#93\;/\]/g;        #Right square bracket
    s/\&\#94\;/\^/g;        #Caret
    s/\&\#95\;/_/g;        #Horizontal bar (underscore)
    s/\&\#96\;/\`/g;        #Acute accent
    s/\&\#123\;/\{/g;        #Left curly brace
    s/\&\#124\;/|/g;        #Vertical bar
    s/\&\#125\;/\}/g;        #Right curly brace
    s/\&\#126\;/~/g;        #Tilde
    s/\&\#161\;/¡/g;        #Inverted exclamation
    s/\&\#162\;/¢/g;        #Cent sign
    s/\&\#163\;/£/g;        #Pound sterling
    s/\&\#164\;/¤/g;        #General currency sign
    s/\&\#165\;/¥/g;        #Yen sign
    s/\&\#166\;/¦/g;        #Broken vertical bar
    s/\&\#167\;/§/g;        #Section sign
    s/\&\#168\;/¨/g;        #Umlaut (dieresis)
    s/\&\#169\;/©/g; s/\&copy\;/©/g;        #Copyright
    s/\&\#170\;/ª/g;        #Feminine ordinal
    s/\&\#171\;/«/g;        #Left angle quote, guillemotleft
    s/\&\#172\;/¬/g;        #Not sign
    s/\&\#174\;/®/g;        #Registered trademark
    s/\&\#175\;/¯/g;        #Macron accent
    s/\&\#176\;/°/g;        #Degree sign
    s/\&\#177\;/±/g;        #Plus or minus
    s/\&\#178\;/²/g;        #Superscript two
    s/\&\#179\;/³/g;        #Superscript three
    s/\&\#180\;/´/g;        #Acute accent
    s/\&\#181\;/µ/g;        #Micro sign
    s/\&\#182\;/¶/g;        #Paragraph sign
    s/\&\#183\;/·/g;        #Middle dot
    s/\&\#184\;/¸/g;        #Cedilla
    s/\&\#185\;/¹/g;        #Superscript one
    s/\&\#186\;/º/g;        #Masculine ordinal
    s/\&\#187\;/»/g;        #Right angle quote, guillemotright
    s/\&\#188\;/¼/g; s/\&frac14\;/¼/g;       # Fraction one-fourth
    s/\&\#189\;/½/g; s/\&frac12\;/½/g;       # Fraction one-half
    s/\&\#190\;/¾/g; s/\&frac34\;/¾/g;       # Fraction three-fourths
    s/\&\#191\;/¿/g;        #Inverted question mark
    s/\&\#192\;/À/g;        #Capital A, grave accent
    s/\&\#193\;/Á/g;        #Capital A, acute accent
    s/\&\#194\;/Â/g;        #Capital A, circumflex accent
    s/\&\#195\;/Ã/g;        #Capital A, tilde
    s/\&\#196\;/Ä/g;        #Capital A, dieresis or umlaut mark
    s/\&\#197\;/Å/g;        #Capital A, ring
    s/\&\#198\;/Æ/g;        #Capital AE dipthong (ligature)
    s/\&\#199\;/Ç/g;        #Capital C, cedilla
    s/\&\#200\;/È/g;        #Capital E, grave accent
    s/\&\#201\;/É/g;        #Capital E, acute accent
    s/\&\#202\;/Ê/g;        #Capital E, circumflex accent
    s/\&\#203\;/Ë/g;        #Capital E, dieresis or umlaut mark
    s/\&\#204\;/Ì/g;        #Capital I, grave accent
    s/\&\#205\;/Í/g;        #Capital I, acute accent
    s/\&\#206\;/Î/g;        #Capital I, circumflex accent
    s/\&\#207\;/Ï/g;        #Capital I, dieresis or umlaut mark   
    s/\&\#208\;/Ð/g;        #Capital Eth, Icelandic
    s/\&\#209\;/Ñ/g;        #Capital N, tilde
    s/\&\#210\;/Ò/g;        #Capital O, grave accent
    s/\&\#211\;/Ó/g;        #Capital O, acute accent
    s/\&\#212\;/Ô/g;        #Capital O, circumflex accent
    s/\&\#213\;/Õ/g;        #Capital O, tilde
    s/\&\#214\;/Ö/g;        #Capital O, dieresis or umlaut mark
    s/\&\#215\;/×/g;        #Multiply sign
    s/\&\#216\;/Ø/g;        #Capital O, slash
    s/\&\#217\;/Ù/g;        #Capital U, grave accent
    s/\&\#218\;/Ú/g;        #Capital U, acute accent
    s/\&\#219\;/Û/g;        #Capital U, circumflex accent
    s/\&\#220\;/Ü/g;        #Capital U, dieresis or umlaut mark
    s/\&\#221\;/Ý/g;        #Capital Y, acute accent
    s/\&\#222\;/Þ/g;        #Capital THORN, Icelandic
    s/\&\#223\;/ß/g;        #Small sharp s, German (sz ligature)
    s/\&\#224\;/à/g;        #Small a, grave accent
    s/\&\#225\;/á/g;        #Small a, acute accent
    s/\&\#226\;/â/g;        #Small a, circumflex accent
    s/\&\#227\;/ã/g;        #Small a, tilde
    s/\&\#228\;/ä/g;        #Small a, dieresis or umlaut mark
    s/\&\#229\;/å/g;        #Small a, ring
    s/\&\#230\;/æ/g;        #Small ae dipthong (ligature)
    s/\&\#231\;/ç/g;        #Small c, cedilla
    s/\&\#232\;/è/g;        #Small e, grave accent
    s/\&\#233\;/é/g;        #Small e, acute accent
    s/\&\#234\;/ê/g;        #Small e, circumflex accent
    s/\&\#235\;/ë/g;        #Small e, dieresis or umlaut mark
    s/\&\#236\;/ì/g;        #Small i, grave accent
    s/\&\#237\;/í/g;        #Small i, acute accent
    s/\&\#238\;/î/g;        #Small i, circumflex accent
    s/\&\#239\;/ï/g;        #Small i, dieresis or umlaut mark
    s/\&\#240\;/ð/g;        #Small eth, Icelandic
    s/\&\#241\;/ñ/g;        #Small n, tilde
    s/\&\#242\;/ò/g;        #Small o, grave accent
    s/\&\#243\;/ó/g;        #Small o, acute accent
    s/\&\#244\;/ô/g;        #Small o, circumflex accent
    s/\&\#245\;/õ/g;        #Small o, tilde
    s/\&\#246\;/ö/g;        #Small o, dieresis or umlaut mark
    s/\&\#247\;/÷/g;        #Division sign
    s/\&\#248\;/ø/g;        #Small o, slash
    s/\&\#249\;/ù/g;        #Small u, grave accent
    s/\&\#250\;/ú/g;        #Small u, acute accent
    s/\&\#251\;/û/g;        #Small u, circumflex accent
    s/\&\#252\;/ü/g;        #Small u, dieresis or umlaut mark
    s/\&\#253\;/ý/g;        #Small y, acute accent
    s/\&\#254\;/þ/g;        #Small thorn, Icelandic
    s/\&\#255\;/ÿ/g;        #Small y, dieresis or umlaut mark
    s/^\s+//;
    return $_;
}

Change the "username" and "password" for you settings.

Last edited by smartboyalex (2009-02-13 05:28:29)

196

Re: My Conky Config

@ggordon: here is my conkyrc.

own_window no
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
use_spacer none 
use_xft yes
uppercase yes
override_utf8_locale yes
xftfont duepuntozero:size=30
update_interval 0
draw_shades yes
draw_outline no
draw_borders no
stippled_borders 0
border_margin 0
border_width 0
default_color ffffff 
own_window_transparent yes
minimum_size 1 1
maximum_width 1300
alignment bottom_right
gap_x 10
gap_y 45


TEXT
DATE${color 808080}${time %d}${font}${time %b}${color ffffff} TIME${color 808080}${time %H:%M} ${font duepuntozero:size=16}${color ffffff}Uptime${color 808080}${uptime}${font} ${font duepuntozero bold:size=12}${color ffffff}${execi 10 ~/scripts/amarok.sh artist} ${color 808080} ${execi 10 ~/scripts/amarok.sh title}${font}

http://www.tinypic.ca/images/xopxtl7ayq7zx4ch1z4.jpg

The fonts I used are from dafont.com. The amarok script is the same one previously posted on this topic.

Re: My Conky Config

Thanks bgwg...


smile


ggordon

198

Re: My Conky Config

http://i285.photobucket.com/albums/ll78/eggbanjo75/th_currentdesktop_1920x1200_scrot.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

eddiegj wrote:

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]%

How i can get that "MUZIEK" to my conky? i dont understand what to do? template?
and sorry my bad english

EDIT: nothing anymore, i solved problem smile

Last edited by adjektiivi (2009-02-15 12:14:50)

200

Re: My Conky Config

^You need to install conkyRhythmbox (http://www.kaivalagi.com/node/13)

HANNA (without "h" in the end) likes green and #! smile
Also know as ultraturquoise online / #! last.fm / #! DeviantART / U / Q