Conky


torpor said:
I ran it, it showed up in a window ..

That has something to do with the configuration. It's been a while since I changed my config. Looking through a sample conkyrc on the conky site makes me think you could try setting "own_window no".

Edit: No, I don't think that's right. I must have own_window set to yes, because I have own_window_type set to "panel."
 
Last edited by a moderator:
^ Yes I think a few people missed that post. :) Thanks lintendo for the PND! Great screenshots guys.

lintendo said:
http://www.hermocom.com/en/downloads/openpandora/Conky.pnd/

[edit] Running with spirit's configuration. It's a beautiful thing.

VqXIB.png
 
Last edited by a moderator:
Yeah, +1. :)

On an unrelated note, my desktop icons are looking nicer since I took that last screenshot:

http://www.gp32x.de/board/index.php?/topic/53952-guide-changing-the-desktop-icon-text-to-white
 
Last edited by a moderator:
Thnx guys, Please post your .conkyrc configs and scripts here. Conky is realy fun to play around with.
+ 1 for Nation.A.List conky config.
 
OK, so here was my desktop that was filled with conky stuff.

It's a bit dated now but you can see that you can access all sorts of machine and network info.

(In the examples below conky determines whether the Internet is connected via Ethernet / Wireless Router or GSM dongle and displays accordingly.)

ConkyScreenshot1.jpg


ConkyScreenshot2.jpg


You can have multiple panels onscreen but they cannot overlap (see code below).)

Multiple conky files can be called at boot time with a bash script (see code below).

Also I'm pretty sure that if conky is allowed to occupy 100% of screen estate it WILL sit on top of and hide the icons.

Now some conky config files:

The conky code for the left panel (.conkyLeft.rc):

Code:
# conky configuration

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

# 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

# Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono:size=9

# Text alpha when using Xft
xftalpha 0.8

# 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

# Create own window instead of using desktop (required in nautilus)
own_window no

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

# Minimum size of text area
minimum_size 300 0
maximum_width 350

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no
draw_graph_borders yes

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

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

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

# colours
color1 white
color2 orange

text_buffer_size 2048

# 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
${offset -5}${color2}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}System${font}  ${hr}
Host: ${color1}$nodename${color2} Uptime: ${color1}${uptime}${color2}
OS: ${color1}$sysname $kernel${color2} on ${color1}$machine

${offset -5}${color2}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}Power${font}  ${hr}
AC Adaptor: ${color1}${acpiacadapter}${color2}
Battery: ${color1}$battery ${battery_bar 6 BAT0}

${offset -5}${color2}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}CPU${font}  ${hr}
${color1}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'}
${freq}MHz   ${color2}Load: ${color1}${loadavg}   ${color2}Temp: ${color1}${acpitemp}
${color2}CPU Bar:  ${color1}$cpubar
${color2}Load Bar: ${color1}${cpugraph FFFFFF ffffff}

${offset -5}${color2}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}Processing${font}  ${hr}
NAME            PID       CPU%      MEM%${color1}
${top name 1} ${top pid 1}   ${top cpu 1}    ${top mem 1}
${top name 2} ${top pid 2}   ${top cpu 2}    ${top mem 2}
${top name 3} ${top pid 3}   ${top cpu 3}    ${top mem 3}
${top name 4} ${top pid 4}   ${top cpu 4}    ${top mem 4}

${offset -5}${color2}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}Memory / Disk${font}  ${hr}
RAM:   ${color1}$memperc% used ${membar 6}${color2}
Swap:  ${color1}$swapperc% used ${swapbar 6}${color2}
Root:  ${color1}${fs_free_perc /} % free  ${fs_bar 6 /}

${offset -5}${color2}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}Networks${font}  ${hr}
${color1}${if_existing /sys/class/net/eth0/operstate up}${color2}Wired: ${alignr 2}IP address: ${color1}${execi 3600 wget -O - http://www.whatismyip.org/ | tail}
${color2}${alignr 2}Router : ${color1}${addr eth0}
${color2}Down:${color1} ${downspeed eth0} k/s ${offset 50}${color2}Up:${color1} ${upspeed eth0} k/s
${downspeedgraph eth0 25,145 FFFFFF ffffff} ${upspeedgraph eth0 25,145 FFFFFF ffffff}
${else}${alignc}${font sans:size=6:bold}Wired Off-Line${font}${endif}
${color2}${stippled_hr 1}
${color1}${if_up wlan0}${color2}Wi-Fi: ${alignr 2}IP address: ${color1}${addr wlan0}
${color2}${alignr 2}Connected to : ${color1}"${wireless_essid wlan0}"
${color2}Down:${color1} ${downspeed wlan0} k/s ${offset 50}${color2}Up:${color1} ${upspeed wlan0} k/s
${downspeedgraph wlan0 25,145 FFFFFF ffffff} ${upspeedgraph wlan0 25,145 FFFFFF ffffff}
${color2}Signal: ${color1} ${wireless_bitrate wlan0} ${wireless_link_bar 7,75 wlan0} ${wireless_link_qual_perc wlan0}%
${else}${alignc}${font sans:size=6:bold}Wi-Fi Off-Line${font}${endif}
${color2}${stippled_hr 1}
${color1}${if_up ppp0}${color2}Dongle: ${alignr 2}IP address: ${color1}${addr ppp0}
${color2}Down:${color1} ${downspeed ppp0} k/s ${offset 50}${color2}Up:${color1} ${upspeed ppp0} k/s
${downspeedgraph ppp0 25,145 FFFFFF ffffff} ${upspeedgraph ppp0 25,145 FFFFFF ffffff}
${else}${alignc}${font sans:size=6:bold}Dongle Off-Line${font}${endif}

The conky code for the middle panel (.conkyMiddle.rc):

Code:
# conky configuration

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

# 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

# Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono:size=9

# Text alpha when using Xft
xftalpha 0.8

# 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

# Create own window instead of using desktop (required in nautilus)
own_window no

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

# Minimum size of text area
minimum_size 300 0
maximum_width 350

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no
draw_graph_borders yes

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

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

# Text alignment, other possible values are commented
#alignment top_left
alignment top_middle
#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 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 right

# colours
color1 white
color2 orange

text_buffer_size 2048

# 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
${offset -5}${color2}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}Weather${font}  ${hr}${color1}
${execpi 1800 conkyForecast --location=UKXX0215 --template=/home/simon/.conkyForecast.template}
${offset -5}${color2}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}E-Mails${font}  ${hr}${color1}
Google Mail (Shared):  ${execi 600 python /usr/share/conkyemail/conkyEmail.py --servertype=IMAP --servername=imap.googlemail.com --username=## --password=## --ssl}
Google Mail (Simon):  ${execi 600 python /usr/share/conkyemail/conkyEmail.py --servertype=IMAP --servername=imap.googlemail.com --username=## --password=## --ssl}
Google Mail (Leah):  ${execi 600 python /usr/share/conkyemail/conkyEmail.py --servertype=IMAP --servername=imap.googlemail.com --username=## --password=## --ssl} 

${offset -5}${color2}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}Now Playing${font}  ${hr}
Title: ${color1}${exec rhythmbox-client --no-start --print-playing-format %at}${color2}
Artist: ${color1}${exec rhythmbox-client --no-start --print-playing-format %aa}${color2}
Track: ${color1}${exec rhythmbox-client --no-start --print-playing-format "#%tn - %tt"}

The conky code for the right panel (.conkyRight.rc):

Code:
# conky configuration

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

# 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

# Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono:size=9

# Text alpha when using Xft
xftalpha 0.8

# 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

# Create own window instead of using desktop (required in nautilus)
own_window no

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

# Minimum size of text area
minimum_size 300 0
maximum_width 350

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no
draw_graph_borders yes

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

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

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

# colours
color1 white
color2 orange

text_buffer_size 2048

# 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
${offset -5}${color2}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}RSS Feeds${font}  ${hr}${color1}
${color2}${rss http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml 10 feed_title}
${color1}${rss http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml 10 item_titles 6}
${color2}${rss http://rss.slashdot.org/Slashdot/slashdot 10 feed_title}
${color1}${rss http://rss.slashdot.org/Slashdot/slashdot 10 item_titles 5}
${color2}${rss http://whatreallyhappened.com/rss.xml 10 feed_title}
${color1}${rss http://whatreallyhappened.com/rss.xml 10 item_titles 4}
${color2}${rss http://feeds.delicious.com/rss/bengoldacre 10 feed_title}
${color1}${rss http://feeds.delicious.com/rss/bengoldacre 10 item_titles 4}
${color2}${rss http://feeds.guardian.co.uk/theguardian/technology/rss 10 feed_title}
${color1}${rss http://feeds.guardian.co.uk/theguardian/technology/rss 10 item_titles 4}
${color2}${rss http://feeds.wired.com/wired/index 10 feed_title}
${color1}${rss http://feeds.wired.com/wired/index 10 item_titles 4}
${color2}${rss http://cryptome.info/cryptome.xml 10 feed_title}
${color1}${rss http://cryptome.info/cryptome.xml 10 item_titles 4}
${color2}${rss http://www.rsf.org/backend_une_en.php3 10 feed_title}
${color1}${rss http://www.rsf.org/backend_une_en.php3 10 item_titles 4}
${color2}${rss http://newsbiscuit.com/rss 10 feed_title}
${color1}${rss http://newsbiscuit.com/rss 10 item_titles 4}

A bash script to call all of the conkys on boot. Make it executable and include it in the startup files:
(Don't know how to do this on a Panda as I don't have mine yet.)

Code:
#!/bin/bash
sleep 15
conky -d -c /home/simon/.conkyLeft.rc
sleep 5
conky -d -c /home/simon/.conkyMiddle.rc
sleep 5
conky -d -c /home/simon/.conkyRight.rc
exit

Bit more info as to how it was all put together:
http://ubuntuforums.org/showpost.php?p=6398899&postcount=5064

Very long thread going for nearly four years now that is a goldmine of Conky info:
http://ubuntuforums.org/showthread.php?t=281865

Conky Hardcore, a great place for scripts and examples:
http://conky.linux-hardcore.com/

Conky Hardcore screenshots:
http://conky.linux-hardcore.com/screenshots/

Especially have a look at the scripts where people are combining conky with lua to draw circles and shapes on the screen.
(Circles tend to be used as clocks or battery meters etc.)

Finally, my conky as it is today:

ConkyScreenshot3.jpg


As you can see it goes off to check RSS feeds, GMail, Weather Forecast and Last.fm as well as the machine stats.

Just a little more reserved than a completely conky-d screen.
 
Gruso said:
^ Great post, beautiful screens.

I just added some spoiler tags to your code, to reduce the amount of scrolling. Hope you don't mind. :)

I don't mind at all !

I'll use them myself in future. :)
 
Last edited by a moderator:
WorldTripping said:
Now some conky config files:

The conky code for the left panel (.conkyLeft.rc):

Code:
# conky configuration

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

# 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

# Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono:size=9

# Text alpha when using Xft
xftalpha 0.8

# 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

# Create own window instead of using desktop (required in nautilus)
own_window no

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

# Minimum size of text area
minimum_size 300 0
maximum_width 350

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no
draw_graph_borders yes

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

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

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

# colours
color1 white
color2 orange

text_buffer_size 2048

# 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
${offset -5}${color2}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}System${font}  ${hr}
Host: ${color1}$nodename${color2} Uptime: ${color1}${uptime}${color2}
OS: ${color1}$sysname $kernel${color2} on ${color1}$machine

${offset -5}${color2}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}Power${font}  ${hr}
AC Adaptor: ${color1}${acpiacadapter}${color2}
Battery: ${color1}$battery ${battery_bar 6 BAT0}

${offset -5}${color2}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}CPU${font}  ${hr}
${color1}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'}
${freq}MHz   ${color2}Load: ${color1}${loadavg}   ${color2}Temp: ${color1}${acpitemp}
${color2}CPU Bar:  ${color1}$cpubar
${color2}Load Bar: ${color1}${cpugraph FFFFFF ffffff}

${offset -5}${color2}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}Processing${font}  ${hr}
NAME            PID       CPU%      MEM%${color1}
${top name 1} ${top pid 1}   ${top cpu 1}    ${top mem 1}
${top name 2} ${top pid 2}   ${top cpu 2}    ${top mem 2}
${top name 3} ${top pid 3}   ${top cpu 3}    ${top mem 3}
${top name 4} ${top pid 4}   ${top cpu 4}    ${top mem 4}

${offset -5}${color2}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}Memory / Disk${font}  ${hr}
RAM:   ${color1}$memperc% used ${membar 6}${color2}
Swap:  ${color1}$swapperc% used ${swapbar 6}${color2}
Root:  ${color1}${fs_free_perc /} % free  ${fs_bar 6 /}

${offset -5}${color2}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}Networks${font}  ${hr}
${color1}${if_existing /sys/class/net/eth0/operstate up}${color2}Wired: ${alignr 2}IP address: ${color1}${execi 3600 wget -O - http://www.whatismyip.org/ | tail}
${color2}${alignr 2}Router : ${color1}${addr eth0}
${color2}Down:${color1} ${downspeed eth0} k/s ${offset 50}${color2}Up:${color1} ${upspeed eth0} k/s
${downspeedgraph eth0 25,145 FFFFFF ffffff} ${upspeedgraph eth0 25,145 FFFFFF ffffff}
${else}${alignc}${font sans:size=6:bold}Wired Off-Line${font}${endif}
${color2}${stippled_hr 1}
${color1}${if_up wlan0}${color2}Wi-Fi: ${alignr 2}IP address: ${color1}${addr wlan0}
${color2}${alignr 2}Connected to : ${color1}"${wireless_essid wlan0}"
${color2}Down:${color1} ${downspeed wlan0} k/s ${offset 50}${color2}Up:${color1} ${upspeed wlan0} k/s
${downspeedgraph wlan0 25,145 FFFFFF ffffff} ${upspeedgraph wlan0 25,145 FFFFFF ffffff}
${color2}Signal: ${color1} ${wireless_bitrate wlan0} ${wireless_link_bar 7,75 wlan0} ${wireless_link_qual_perc wlan0}%
${else}${alignc}${font sans:size=6:bold}Wi-Fi Off-Line${font}${endif}
${color2}${stippled_hr 1}
${color1}${if_up ppp0}${color2}Dongle: ${alignr 2}IP address: ${color1}${addr ppp0}
${color2}Down:${color1} ${downspeed ppp0} k/s ${offset 50}${color2}Up:${color1} ${upspeed ppp0} k/s
${downspeedgraph ppp0 25,145 FFFFFF ffffff} ${upspeedgraph ppp0 25,145 FFFFFF ffffff}
${else}${alignc}${font sans:size=6:bold}Dongle Off-Line${font}${endif}

The conky code for the middle panel (.conkyMiddle.rc):

Code:
# conky configuration

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

# 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

# Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono:size=9

# Text alpha when using Xft
xftalpha 0.8

# 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

# Create own window instead of using desktop (required in nautilus)
own_window no

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

# Minimum size of text area
minimum_size 300 0
maximum_width 350

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no
draw_graph_borders yes

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

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

# Text alignment, other possible values are commented
#alignment top_left
alignment top_middle
#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 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 right

# colours
color1 white
color2 orange

text_buffer_size 2048

# 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
${offset -5}${color2}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}Weather${font}  ${hr}${color1}
${execpi 1800 conkyForecast --location=UKXX0215 --template=/home/simon/.conkyForecast.template}
${offset -5}${color2}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}E-Mails${font}  ${hr}${color1}
Google Mail (Shared):  ${execi 600 python /usr/share/conkyemail/conkyEmail.py --servertype=IMAP --servername=imap.googlemail.com --username=## --password=## --ssl}
Google Mail (Simon):  ${execi 600 python /usr/share/conkyemail/conkyEmail.py --servertype=IMAP --servername=imap.googlemail.com --username=## --password=## --ssl}
Google Mail (Leah):  ${execi 600 python /usr/share/conkyemail/conkyEmail.py --servertype=IMAP --servername=imap.googlemail.com --username=## --password=## --ssl} 

${offset -5}${color2}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}Now Playing${font}  ${hr}
Title: ${color1}${exec rhythmbox-client --no-start --print-playing-format %at}${color2}
Artist: ${color1}${exec rhythmbox-client --no-start --print-playing-format %aa}${color2}
Track: ${color1}${exec rhythmbox-client --no-start --print-playing-format "#%tn - %tt"}

The conky code for the right panel (.conkyRight.rc):

Code:
# conky configuration

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

# 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

# Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono:size=9

# Text alpha when using Xft
xftalpha 0.8

# 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

# Create own window instead of using desktop (required in nautilus)
own_window no

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

# Minimum size of text area
minimum_size 300 0
maximum_width 350

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no
draw_graph_borders yes

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

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

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

# colours
color1 white
color2 orange

text_buffer_size 2048

# 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
${offset -5}${color2}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}RSS Feeds${font}  ${hr}${color1}
${color2}${rss http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml 10 feed_title}
${color1}${rss http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml 10 item_titles 6}
${color2}${rss http://rss.slashdot.org/Slashdot/slashdot 10 feed_title}
${color1}${rss http://rss.slashdot.org/Slashdot/slashdot 10 item_titles 5}
${color2}${rss http://whatreallyhappened.com/rss.xml 10 feed_title}
${color1}${rss http://whatreallyhappened.com/rss.xml 10 item_titles 4}
${color2}${rss http://feeds.delicious.com/rss/bengoldacre 10 feed_title}
${color1}${rss http://feeds.delicious.com/rss/bengoldacre 10 item_titles 4}
${color2}${rss http://feeds.guardian.co.uk/theguardian/technology/rss 10 feed_title}
${color1}${rss http://feeds.guardian.co.uk/theguardian/technology/rss 10 item_titles 4}
${color2}${rss http://feeds.wired.com/wired/index 10 feed_title}
${color1}${rss http://feeds.wired.com/wired/index 10 item_titles 4}
${color2}${rss http://cryptome.info/cryptome.xml 10 feed_title}
${color1}${rss http://cryptome.info/cryptome.xml 10 item_titles 4}
${color2}${rss http://www.rsf.org/backend_une_en.php3 10 feed_title}
${color1}${rss http://www.rsf.org/backend_une_en.php3 10 item_titles 4}
${color2}${rss http://newsbiscuit.com/rss 10 feed_title}
${color1}${rss http://newsbiscuit.com/rss 10 item_titles 4}

A bash script to call all of the conkys on boot. Make it executable and include it in the startup files:
(Don't know how to do this on a Panda as I don't have mine yet.)

Code:
#!/bin/bash
sleep 15
conky -d -c /home/simon/.conkyLeft.rc
sleep 5
conky -d -c /home/simon/.conkyMiddle.rc
sleep 5
conky -d -c /home/simon/.conkyRight.rc
exit


How do we invoke these rc files with the PND?

EDIT: Asking more clearly, how to invoke a PND via command line. I know I saw it somewhere and now it escapes me. Checking tweaks thread......

EDIT AGAIN: /usr/pandora/scripts/pnd_run.sh -p "path/to/your/conky.pnd" -e "run_conky.sh" -b "Conky"

That's the command line from the desktop icon. I put it into a script and it ran but I still can not figure out how to force the rc files above. Using -d for daemonizing gives an invalid option and -c has no effect
 
Last edited by a moderator:
This is looking good. Some nice configurations as well.

It makes me wonder though. Do we have a good place to upload such scripts and configurations? I don't know if this should be in the AppStore, the wiki, the forums or some other place altogether.

Sorry for being a bit off-topic here.
 
xopher said:
How do we invoke these rc files with the PND?

I'm afraid that I have no idea.

Someone with a Pandora will have to answer that question.

Does conky come bundled via a PND or is it part of the OS build?

If it's part of the build, then the quickest way would be to open a terminal and type:

Code:
sh pathToBashScript.sh

Where 'pathToBashScript.sh' contains the commands to execute the conky rc files.

Something like I quoted before:

Code:
#!/bin/bash
sleep 15
conky -d -c /home/simon/.conkyLeft.rc
sleep 5
conky -d -c /home/simon/.conkyMiddle.rc
sleep 5
conky -d -c /home/simon/.conkyRight.rc
exit

Where the files ending in rc are the conky configuration files; fonts, layouts, content etc.

Obviously paths will change depending on your setup.

Maybe someone could request that conky is part of the firmware, as I don't think it is all that big.

The conky.rc files are very small, the ones I posted earlier are about 3KB

Personally I would be happy to have these on the Panda rather than on an SD card.

(But that's just me as I use conky all of the time on all of my machines, so no flames please.)
 
Last edited by a moderator:
Hmmm......maybe I'll ask in "I need help!" How to extract the contents of a pnd or can someone do the dirty work and post a zip so anyone or I can add it to the NAND ourselves?? :)

EDIT: Thanks to ED in I need help:

sudo mount /path/to/pnd.pnd -o loop /path/to/mountpoint

I'll try soon to add to NAND and post what I did for those interested.

EDIT AGAIN: I mounted and copied the contents of the PND to a folder in my homedir called conky. I can call the script but am still trying to specify the .rc file with no success....maybe more sooner or later
 
Yeah, ain't PNDs a pain in the butt? :)

Run the PND, then you will have /mnt/utmp/Conky/
Just copy the conky binary from there to /usr/local/bin/
Then you can run "conky" from any terminal.

If you put a conkyrc in ~/.conkyrc it gets loaded automatically.
 
Hm, Conky is not in the Angström Repo... so if it should be included in the firmware, someone would need to create a recipe.
 
EvilDragon said:
Hm, Conky is not in the Angström Repo... so if it should be included in the firmware, someone would need to create a recipe.
How would one go about doing that and getting it pushed to the Pandora feed? Or upstream to Angstrom? I would really like to update the Midori package, but can't even find the original bitbake recipe.
 
Last edited by a moderator:
Tempel said:
EvilDragon said:
Hm, Conky is not in the Angström Repo... so if it should be included in the firmware, someone would need to create a recipe.
How would one go about doing that and getting it pushed to the Pandora feed? Or upstream to Angstrom? I would really like to update the Midori package, but can't even find the original bitbake recipe.

The recipes are in the openembedded-Tree in our git.
Unfortunately, our tree is based on the original OE tree from last year December - there really is a lot of outdated stuff in there (but DJWillis is too busy with real life at the moment).

The problem with midori lies in libwebkit. If you install the latest libwebkit from the OE repos (or the unstable Angström-Package repository), midori renders websites just fine.

I tried updating the recipes in our OE tree with the ones from the most recent OE tree... but bitbaking didn't work, and as I'm no dev, I couldn't find out what to do to fix it.
 
Last edited:
Back
Top