Conky Showoff thread

Add functionality to your desktop
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
dannymichel

Re: Conky Showoff thread

Post by dannymichel »

lagagnon wrote:
vrkalak wrote:I am so proud of myself . . :mrgreen: . . I built my own Conky from scratch.
Nice work. Now show us the code!
agreed.
isnt that what this thread is about?
tawan

Re: Conky Showoff thread

Post by tawan »

mzsade wrote:I am a little out of my depth here
sort of wrong thread too but you need a .conkyrc in home for conky to read. It then displays on sceen the stuff you asked for in .conkyrc..

best idea is find someeones code (preferably simple) (and preferably for gnome if you are on that), save it in home as .conkyrc (with the .) and run conky again.

PS conky should run at boot, so check in sessions for the entry.
vrkalak

Re: Conky Showoff thread

Post by vrkalak »

Sorry, guys.

Here is my .conkyrc file for those that requested it:
##Conky
background no
use_xft yes
xftfont Sans:size=12
xftalpha 0.1
#Changed from 1 to 2
update_interval 2.0
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent true
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer true
minimum_size 200 5
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
stippled_borders 8
border_margin 4
border_width 1
alignment middle_right
#Gap between borders of screen and text
gap_x 10
gap_y 10
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 1
override_utf8_locale yes
use_spacer right
show_graph_scale no
show_graph_range no
default_color white

TEXT
${font Vibrocentric:size=18}${time %k:%M:%S}${alignr}${time %a/%b/%d}

${voffset -7}${color1}${font Vibrocentric:style=bold:size=14}${pre_exec lsb_release -d | cut -c14-32}$font${color3}${voffset 1}${hr 0}$color
$sysname $kernel $alignr $machine
$freq_g GHz

${color 88c5ff}HARDWARE ${hr 2}

${color 88c5ff}CPU 1: ${color B8FF55}${cpu cpu1}% ${cpubar cpu1}
${color 88c5ff}CPU 2: ${color BBFF55}${cpu cpu2}% ${cpubar cpu2}
${color 88c5ff}RAM ${color B8FF55} $alignc $memperc% $alignr $mem / $memmax
${color 88c5ff}Swap Usage:${color B8FF55} $swap/$swapmax

${color 88c5ff}FILESYSTEMS ${hr 2}

${color 88c5ff}Root: ${color B8FF55} ${alignr}
Free: ${fs_used /} / ${fs_free /}
Total: ${fs_size /} ${color B8FF55}${fs_bar 4 /}${color 88c5ff}

NETWORK ${hr 2}$color
${if_up wlan0}${color 88c5ff}Local ip $alignr ${color B8FF55} ${addr wlan0}
${color 88c5ff}Down: ${color B8FF55} ${downspeed wlan0} k/s ${color 88c5ff} ${alignr}Up: ${color B8FF55} ${upspeed wlan0} k/s
${downspeedgraph wlan0 30,100 0000ff ff0000} ${offset 20} ${downspeedgraph wlan0 30,100 0000ff ff0000}${endif}
${if_up ppp0}${color 88c5ff}Local ip $alignr ${color B8FF55} ${addr ppp0}
${color 88c5ff}Down: ${color B8FF55} ${downspeed ppp0} k/s ${color 88c5ff} ${alignr}Up: ${color B8FF55} ${upspeed ppp0} k/s
${downspeedgraph ppp0 30,100 0000ff ff0000} ${offset 20} ${downspeedgraph ppp0 30,100 0000ff ff0000}${endif}

${color 88c5ff}CALENDAR ${hr 2}$color
${color} ${font :size=12}$alignc${time %B}
${font Mono:size=10}${execpi 60 DJS=`date +%_d`; cal | sed '1d' | sed '/./!d' | sed 's/$/ /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${alignc} /' | sed /" $DJS "/s/" $DJS "/" "'${color red}'"$DJS"'${color}'" "/}
vrkalak

Re: Conky Showoff thread

Post by vrkalak »

mzsade:

You installed the Conky files from the LinuxMint Repros, but . . . the Conky files are essentially "empty" in the terminal.

I went to these sites to learn how to compile Conky. And how to load them into your terminal and make a folder for them and such.
Not as hard as it sounds and well worthwhile.

http://conky.sourceforge.net/
http://conky.linux-hardcore.com/?page_id=1289
optimize me

Re: Conky Showoff thread

Post by optimize me »

tawan wrote:sort of wrong thread too but you need a .conkyrc in home for conky to read. It then displays on sceen the stuff you asked for in .conkyrc..
That's the second time I've seen a statement to the effect here, so I'd like to chime in. I don't think it's 100% true..

As far as I know, when installing from a .deb, from Synaptic, or from the terminal, a sample (and simple) .conkyrc file is created at /etc/conky/conky.conf. If conky is run with no .conkyrc file in your home folder, it defaults to this file as its template.
dannymichel

Re: Conky Showoff thread

Post by dannymichel »

vrkalak wrote:Sorry, guys.

Here is my .conkyrc file for those that requested it:
##Conky
background no
use_xft yes
xftfont Sans:size=12
xftalpha 0.1
#Changed from 1 to 2
update_interval 2.0
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent true
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer true
minimum_size 200 5
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
stippled_borders 8
border_margin 4
border_width 1
alignment middle_right
#Gap between borders of screen and text
gap_x 10
gap_y 10
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 1
override_utf8_locale yes
use_spacer right
show_graph_scale no
show_graph_range no
default_color white

TEXT
${font Vibrocentric:size=18}${time %k:%M:%S}${alignr}${time %a/%b/%d}

${voffset -7}${color1}${font Vibrocentric:style=bold:size=14}${pre_exec lsb_release -d | cut -c14-32}$font${color3}${voffset 1}${hr 0}$color
$sysname $kernel $alignr $machine
$freq_g GHz

${color 88c5ff}HARDWARE ${hr 2}

${color 88c5ff}CPU 1: ${color B8FF55}${cpu cpu1}% ${cpubar cpu1}
${color 88c5ff}CPU 2: ${color BBFF55}${cpu cpu2}% ${cpubar cpu2}
${color 88c5ff}RAM ${color B8FF55} $alignc $memperc% $alignr $mem / $memmax
${color 88c5ff}Swap Usage:${color B8FF55} $swap/$swapmax

${color 88c5ff}FILESYSTEMS ${hr 2}

${color 88c5ff}Root: ${color B8FF55} ${alignr}
Free: ${fs_used /} / ${fs_free /}
Total: ${fs_size /} ${color B8FF55}${fs_bar 4 /}${color 88c5ff}

NETWORK ${hr 2}$color
${if_up wlan0}${color 88c5ff}Local ip $alignr ${color B8FF55} ${addr wlan0}
${color 88c5ff}Down: ${color B8FF55} ${downspeed wlan0} k/s ${color 88c5ff} ${alignr}Up: ${color B8FF55} ${upspeed wlan0} k/s
${downspeedgraph wlan0 30,100 0000ff ff0000} ${offset 20} ${downspeedgraph wlan0 30,100 0000ff ff0000}${endif}
${if_up ppp0}${color 88c5ff}Local ip $alignr ${color B8FF55} ${addr ppp0}
${color 88c5ff}Down: ${color B8FF55} ${downspeed ppp0} k/s ${color 88c5ff} ${alignr}Up: ${color B8FF55} ${upspeed ppp0} k/s
${downspeedgraph ppp0 30,100 0000ff ff0000} ${offset 20} ${downspeedgraph ppp0 30,100 0000ff ff0000}${endif}

${color 88c5ff}CALENDAR ${hr 2}$color
${color} ${font :size=12}$alignc${time %B}
${font Mono:size=10}${execpi 60 DJS=`date +%_d`; cal | sed '1d' | sed '/./!d' | sed 's/$/ /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${alignc} /' | sed /" $DJS "/s/" $DJS "/" "'${color red}'"$DJS"'${color}'" "/}
would be perfect for me if it had cpu and gpu temps
dannymichel

Re: Conky Showoff thread

Post by dannymichel »

i followed this tutorial
http://www.ubuntu-inside.me/2009/05/how ... aunty.html
but mine looks like this
Image
the letters v,r,m,s and j instead of the images.
http://www.ubuntu-inside.me/2009/05/how ... aunty.html
optimize me

Re: Conky Showoff thread

Post by optimize me »

dannymichel wrote:i followed this tutorial
http://www.ubuntu-inside.me/2009/05/how ... aunty.html
but mine looks like this
Image
the letters v,r,m,s and j instead of the images.
http://www.ubuntu-inside.me/2009/05/how ... aunty.html
Did you install the Pizza Dudes font?

From that article:
Now download the fonts and move them to ~/.fonts directory :

$cd && wget -c http://dl.getdropbox.com/u/83257/conkyfonts.zip && unzip conkyfonts.zip && cp ~/conkyfonts/*.* ~/.fonts/ && rm -rf ~/conkyfonts && rm conkyfonts.zip
I'm surprised it isn't in the tutorial, but after you install a font, you need to regenerate the font cache. You can either do this by rebooting, or by entering a command that I am too tired and lazy to look up right now. If you can find it, use it. Otherwise just reboot. Either way, problem solved.
lagagnon

Re: Conky Showoff thread

Post by lagagnon »

optimize me wrote:you need to regenerate the font cache. You can either do this by rebooting, or by entering a command that I am too tired and lazy to look up right now.
"sudo fc-cache"
User avatar
mzsade
Level 5
Level 5
Posts: 777
Joined: Sun Jul 19, 2009 4:36 am

Re: Conky Showoff thread

Post by mzsade »

Managed to include the CPU temp, but surely the readings can't be right, the room temp. at this time is certainly greater than 25 deg. C where i am at!
Last edited by mzsade on Sat Sep 19, 2009 8:34 pm, edited 1 time in total.
Linux User #481272 Reg: 15th Sept., 2008
qa_fan99

Re: Conky Showoff thread

Post by qa_fan99 »

Thanks to everyone who has posted their conky desktop images and config info. I shed the widgets and gadgets and jumped in to conky with both feet. I wasted away a whole weekend knocking out something I liked. Damn was it fun.

Here is my first conky.
Thanks to this post for the Mint font at the top
http://forums.linuxmint.com/viewtopic.p ... 13&p=61409
Mint7_Conky.png

Code: Select all

# conky configuration
#
#
# Enjoy! :)
##############################################
#  Settings
##############################################
background no
use_xft yes
xftfont Sans:size=8
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_class Conky
own_window_transparent yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 200 200
maximum_width 240
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
stippled_borders 0
default_color white
default_shade_color grey
default_outline_color white
alignment top_right
gap_x 8
gap_y 34
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
color0 white  #same as default color
color1 FCFF69 #Exaile detail text
color2 CCE6FF #bar color
color3 DAFFB3  #exaile cat color
color4 CCFFCC #section header color
color5 FFFF66 #Time color
##############################################
#  Output
##############################################
TEXT
${color4}${font Sans:bold:size=8}DATE ${hr 2}${font}

${color5}${alignc 19}${font Trebuchet MS:size=22}${time %I:%M%p}${font}
${color2}${voffset 6}${alignc}${time %A, %d %B %Y}

${color4}${font Sans:bold:size=8}SYSTEM INFO ${hr 2}
${font}
${alignc}${font formintElegance:size=22}Linux Mint 7 ${font}
${color0}System:$alignr$sysname $machine
Kernel:$alignr$kernel
Host:$alignr$nodename

CPU Freq: ${alignr}${freq_g} GHz Intel Pentium 4 
${color0}CPU1: ${color FFFF99}${alignr}${cpu cpu1}% ${color2}${cpubar 8,90 cpu1}
${color0}CPU2: ${color FFFF99}${alignr}${cpu cpu2}% ${color2}${cpubar 8,90 cpu2}

${color0}Memory: $alignc $mem / $memmax $alignr $memperc%
${color2}${membar}

${color4}${font Sans:bold:size=8}HARD DRIVES ${hr 2}${font}
${color0}${voffset 4}Root: ${fs_used_perc /}%${alignr}${fs_free /} / ${fs_size /}
${color0}${voffset 4}Mydata: ${fs_used_perc /}%${alignr}${fs_free /media/mydata} / ${fs_size /media/mydata}

${color4}${font Sans:bold:size=8}PROCESSES ${hr 2}
${font Sans:size=7}
${color0}NAME             ${goto 110}PID${goto 138}CPU%${goto 175}MEM%${color FFFF99}
${top name 1}    ${goto 105}${top pid 1}${goto 138}${top cpu 1}${goto 175}${top mem 1}
${top name 2}    ${goto 105}${top pid 2}${goto 138}${top cpu 2}${goto 175}${top mem 2}
${top name 3}    ${goto 105}${top pid 3}${goto 138}${top cpu 3}${goto 175}${top mem 3}
${top name 4}    ${goto 105}${top pid 4}${goto 138}${top cpu 4}${goto 175}${top mem 4}
${top name 5}    ${goto 105}${top pid 5}${goto 138}${top cpu 5}${goto 175}${top mem 5}
${top name 6}    ${goto 105}${top pid 6}${goto 138}${top cpu 6}${goto 175}${top mem 6}
${font}
${color4}${font Sans:bold:size=8}NETWORK ${hr 2}${color}${font}

${color0}IP Address: $alignr ${addr eth0}
${color0}Down ${downspeed eth0} k/s ${alignr}Up ${upspeed eth0} k/s
${color FFFF99}${downspeedgraph eth0 25,107} ${alignr}${upspeedgraph eth0 25,107}
${color2}Total ${totaldown eth0} ${alignr}Total ${totalup eth0}

${color4}${font Sans:bold:size=8}WEATHER ${hr 2}${font}${color0}

${execi 1800 /home/dad/scripts/weather.sh USFL0314}
${color4}${font Sans:bold:size=8}CALENDAR ${hr 2}${font}${color0}

${color0}${font Monospace:size=9}${execpi 60 DJS=`date +%_d`; cal | sed '1d' | sed '/./!d' | sed 's/$/ /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${alignc} /' | sed /" $DJS "/s/" $DJS "/" "'${color FFCC00}'"$DJS"'${color0}'" "/}${font}
${color4}${hr 1}

Dean

Re: Conky Showoff thread

Post by Dean »

Nothing special, but I have 2 conky's set up on my desktop. One on the top which I have used a top lxpanel at 1 pixel so that the conky display does not get covered when i open or maximize windows. And my second one is the calender that pops up when i click on the Tint2 clock and closes when you left click. And just for those who are curious the bottom panel is a combination of tint2 and lxpanel. Lxpanel is only used for the menu.
vrkalak

Re: Conky Showoff thread

Post by vrkalak »

mafteechr: Nothing wrong with 'simplicity' . . . good job!


Dean: Excellent!! I've alway liked the Conky that goes along the top panel.

Is that an official Lubuntu release or did you load LDXE over Ubuntu . . . or is that a LinuxMint OS?

Either way it looks good. :mrgreen:
Dean

Re: Conky Showoff thread

Post by Dean »

Dean: Excellent!! I've alway liked the Conky that goes along the top panel.

Is that an official Lubuntu release or did you load LDXE over Ubuntu . . . or is that a LinuxMint OS?

Either way it looks good.
No this is a screen shot of lxde on top of ubuntu 9.04 (from mini.iso). I was trying to make a nice, (but light as possible system) which is why i used conky for the calender, instead of a program.
vrkalak

Re: Conky Showoff thread

Post by vrkalak »

Image

I changed my Conky to a single line across the top. Configured it myself. :P

Oh yeah . . . and I made the background, too.

Using my Xubuntu 10.04 Lucid Lynx, Alpha 1
tawan

Re: Conky Showoff thread

Post by tawan »

Image

one on the left for info, one on the right to animate matrix text
tawan

Re: Conky Showoff thread

Post by tawan »

Image

The line of the text at the bottom comes from "Fortunes" ${execi 30 fortune -s -n90}

Code: Select all

#  Settings
##############################################
# Use XftD
use_xft yes
xftfont Bauhaus Md BT:size=8
xftalpha 1.0
text_buffer_size 2048
if_up_strictness address

# Update interval in seconds
update_interval 1

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

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

# Draw shadesD
draw_shades no

# Draw outlinesD
draw_outline no

# Draw borders around text
draw_borders no

# Stippled bordersD
stippled_borders 0

# border margins
border_margin 5

# border width
border_width 1

# Default colors and also border colors
default_color 2d788d
color1 5e5e5e
color2 FFFFDD
color3 a90100
#default_shade_color 888888
#default_outline_color 888888
own_window_colour 000000

# Text alignment, other possible values are commented
alignment tm

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

# Subtract file system buffers from used memoryD
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 1

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2


# Force UTF8D note that UTF8 support required XFT
override_utf8_locale yes

# Add spaces to keep things from moving aboutD  This only affects certain objects.
use_spacer none

TEXT




${color1}
${alignc 80}${font Rebecca:size=44}${time %I:%M}${font Rebecca:size=22}${time %P}${font}

${alignc 120}${font Rebecca:size=22}${time %A %e %B}${font}
${color}









 ${voffset 5}${font StyleBats:size=17}${if_match ${battery_percent BAT0} <= 20}${color3}O${else}${if_match ${battery_percent BAT0} >= 99}${color2}I${else}${color1}O${endif}${endif}${color1}${font}${voffset -7}  ${font pizzadude bullets:size=12}${if_match ${battery_percent BAT0} >=20}${color2}${else}${color1}${endif}B${if_match ${battery_percent BAT0} >=40}${color2}${else}${color1}${endif}B${if_match ${battery_percent BAT0} >=60}${color2}${else}${color1}${endif}B${if_match ${battery_percent BAT0} >=90}${color2}${else}${color1}${endif}D                                                           ${color1}${if_up wlan0}${if_existing /home/tawan/mybin/conky-on}${if_match ${wireless_link_qual wlan0} >= 80}${color2}${else}${color1}${endif}D${if_match ${wireless_link_qual wlan0} >= 60}${color2}${else}${color1}${endif}B${if_match ${wireless_link_qual wlan0} >= 40}${color2}${else}${color1}${endif}B${if_match ${wireless_link_qual wlan0} >= 20}${color2}${else}${color1}${endif}B${color1}${font}  ${voffset -5}${font pizzadude bullets:size=15}${color1}:${font}${else}${color1}DBBB${font}  ${voffset -6}${font pizzadude bullets:size=15}9${font}${endif}${else}${color1}DBBB${font}  ${voffset -6}${font pizzadude bullets:size=15}9${font}${endif}
 ${voffset 5}${font StyleBats:size=17}${if_match ${acpitemp} >= 70}${color3}p${else}${if_match ${acpitemp} >= 60}${color2}p${else}${color1}p${endif}${endif}${color1}${font}${voffset -7}  ${font pizzadude bullets:size=12}${if_match ${acpitemp} >=40}${color2}${else}${color1}${endif}B${if_match ${acpitemp} >=50}${color2}${else}${color1}${endif}B${if_match ${acpitemp} >=60}${color2}${else}${color1}${endif}B${if_match ${acpitemp} >=70}${color2}${else}${color1}${endif}D                                                           ${color1}${if_up wlan0}${if_existing /home/tawan/mybin/conky-on}${if_match ${upspeedf wlan0 wlan0} >= 80}${color2}${else}${color1}${endif}D${if_match ${upspeedf wlan0 wlan0} >= 40}${color2}${else}${color1}${endif}B${if_match ${upspeedf wlan0 wlan0} >= 10}${color2}${else}${color1}${endif}B${if_match ${upspeedf wlan0 wlan0} >= 5}${color2}${else}${color1}${endif}B${color1}${font}  ${voffset -6}${font pizzadude bullets:size=15}${if_match ${upspeedf wlan0} >= 2}${color2}w${else}${color1}v${endif}${color1}${font}${else}${color1}DBBB${font}  ${voffset -6}${font pizzadude bullets:size=15}9${font}${endif}${else}${color1}DBBB${font}  ${voffset -6}${font pizzadude bullets:size=15}9${font}${endif}
 ${voffset 5}${font StyleBats:size=17}${if_match ${cpu cpu1} >= 90}${color3}a${else}${if_match ${cpu cpu1} >= 40}${color2}a${else}${color1}a${endif}${endif}${color1}${font}${voffset -7}  ${font pizzadude bullets:size=12}${if_match ${cpu cpu1} >=5}${color2}${else}${color1}${endif}B${if_match ${cpu cpu1} >=30}${color2}${else}${color1}${endif}B${if_match ${cpu cpu1} >=60}${color2}${else}${color1}${endif}B${if_match ${cpu cpu1} >=90}${color2}${else}${color1}${endif}D                                                           ${color1}${if_up wlan0}${if_existing /home/tawan/mybin/conky-on}${if_match ${downspeedf wlan0} >= 80}${color2}${else}${color1}${endif}D${if_match ${downspeedf wlan0} >= 40}${color2}${else}${color1}${endif}B${if_match ${downspeedf wlan0} >= 10}${color2}${else}${color1}${endif}B${if_match ${downspeedf wlan0} >= 5}${color2}${else}${color1}${endif}B${color}${font}  ${voffset -6}${font pizzadude bullets:size=15}${if_match ${downspeedf wlan0} >= 2}${color2}s${else}${color1}r${endif}${color1}${font}${else}${color1}DBBB${font}  ${voffset -6}${font pizzadude bullets:size=15}9${font}${endif}${else}${color1}DBBB${font}  ${voffset -6}${font pizzadude bullets:size=15}9${font}${endif}
 ${voffset 5}${font StyleBats:size=17}${if_match ${cpu cpu2} >= 90}${color3}a${else}${if_match ${cpu cpu2} >= 40}${color2}a${else}${color1}a${endif}${endif}${color1}${font}${voffset -7}  ${font pizzadude bullets:size=12}${if_match ${cpu cpu2} >=5}${color2}${else}${color1}${endif}B${if_match ${cpu cpu2} >=30}${color2}${else}${color1}${endif}B${if_match ${cpu cpu2} >=60}${color2}${else}${color1}${endif}B${if_match ${cpu cpu2} >=90}${color2}${else}${color1}${endif}D                                                           ${color1}${if_up wlan0}${if_existing /home/tawan/mybin/conky-on}DBBB${font}  ${voffset -6}${font pizzadude bullets:size=15}${execi 2000 ~/mybin/tawan-check-updates}${font}${else}${color1}DBBB${font}  ${voffset -6}${font pizzadude bullets:size=15}9${font}${endif}${else}${color1}DBBB${font}  ${voffset -6}${font pizzadude bullets:size=15}9${font}${endif}
 ${voffset 5}${font StyleBats:size=17}${if_match ${memperc} >= 80}${color3}y${else}${if_match ${memperc} >= 50}${color2}y${else}${color1}y${endif}${endif}${color1}${font}${voffset -9}  ${offset -2}${font pizzadude bullets:size=12}${if_match ${memperc} >=10}${color2}${else}${color1}${endif}B${if_match ${memperc} >=30}${color2}${else}${color1}${endif}B${if_match ${memperc} >=60}${color2}${else}${color1}${endif}B${if_match ${memperc} >=80}${color2}${else}${color1}${endif}D                                                           ${color1}${if_up wlan0}${if_existing /home/tawan/mybin/conky-on}DBBB${font}  ${voffset -6}${font pizzadude bullets:size=15}${execi 600 ~/mybin/tawan-timed-torrent}${font}${else}${color1}DBBB${font}  ${voffset -6}${font pizzadude bullets:size=15}9${font}${endif}${else}${color1}DBBB${font}  ${voffset -6}${font pizzadude bullets:size=15}9${font}${endif}
 ${voffset 5}${font StyleBats:size=17}${if_match ${fs_used_perc /home/tawan/Data} >= 80}${color3}8${else}${if_match ${diskio /dev/sda} >= 20}${color1}8${else}${color2}8${endif}${endif}${color1}${font}${voffset -8}  ${font pizzadude bullets:size=12}${if_match ${fs_used_perc /home/tawan/Data} >=10}${color2}${else}${color1}${endif}B${if_match ${fs_used_perc /home/tawan/Data} >=30}${color2}${else}${color1}${endif}B${if_match ${fs_used_perc /home/tawan/Data} >=60}${color2}${else}${color1}${endif}B${if_match ${fs_used_perc /home/tawan/Data} >=80}${color2}${else}${color1}${endif}D                                                           ${color1}${if_up wlan0}${if_existing /home/tawan/mybin/conky-on}DBBB${font} ${voffset -20}${font Rebecca:size=29}${execpi 900 python ~/.conky/gmail_parser.py NAME PASSWORD 1}${font}${else}${color1}DBBB${font}  ${voffset -6}${font pizzadude bullets:size=15}9${font}${endif}${else}${color1}DBBB${font}  ${voffset -6}${font pizzadude bullets:size=15}9${font}${endif}





${color1}
${alignc 70}${font Courier New:size=9}${execi 30 fortune -s -n90}${font}
${color}












${if_existing /sys/class/power_supply/ACAD/online 0}${if_match ${battery_percent BAT0} <= 10}${if_match ${battery_percent BAT0} > 6}${execi 300 ~/mybin/tawan-warn-shutdown}${endif}${endif}${if_match ${battery_percent BAT0} <= 6}${execi 200 ~/mybin/tawan-shutdown-now}${endif}${endif}
EDIT: Oh, erm, .. not Mint, it is Debian and Openbox - but this is a conky thread so ..
vrkalak

Re: Conky Showoff thread

Post by vrkalak »

I've had a couple of Linux newbies ask me about my Conky layout recently . . . so I thought, I'd bring the Conky thread into the LinuxMint Forums foreground, again.

I am still using my "single-line across the top" as my Conky layout, as seen in the last couple of posts here.
I've just installed the newer version of Conky and 'tweaked' my .conkyrc files a bit.

If you're interested in compiling/configuring your own Conky . . . you can ask any of us that have a Conky posted.
We're all here to help.

Or check out the official Conky websites > http://conky.sourceforge.net/ and http://conky.linux-hardcore.com/
Also, several of the Ubuntu-based distro Forums have great Conky threads ...
Checkout the Conky Threads in > Ubuntu Forums, CrunchbangLinux Forums, and LinuxMint Forums. :P
red-e-made
Level 5
Level 5
Posts: 526
Joined: Sat Jul 14, 2007 11:31 am

Re: Conky Showoff thread

Post by red-e-made »

Well, I guess I'd be one of the "Linux newbies" vrkalak is talking about. I've been using Mint since Cassandra, but if a newbie is someone who's always learning and asking questions, then I fall solidly under that category.

Anyways, after clicking around gnome-look (surprisingly few xfce conky configs on xfce-look), and making my own modifications, this is what I've come up with:

Image

And here's the .conkyrc configuration:

Code: Select all

#avoid flicker
double_buffer yes

#own window to run simultanious 2 or more conkys
own_window  yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager 

#borders
draw_borders no
border_margin 20

#shades
draw_shades no

#position
gap_x 4
gap_y 10
alignment bottom_right

#behaviour
update_interval 1

#colour
default_color  8f8f8f
#default_shade_color 000000
own_window_colour 000000

#font
use_xft yes
xftfont sans:size=8

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

#to prevent window from moving
use_spacer none
minimum_size 1024 0

#mpd
#mpd_host localhost
#mpd_port 6600

TEXT
${alignr}Kernel: ${color e0e0e0}$kernel${color}  CPU1: ${color e0e0e0}${cpu cpu1}%${color}  CPU2: ${color e0e0e0}${cpu cpu2}%${color}  Ram: ${color e0e0e0}${memperc}%${color}  Root: Free - ${color e0e0e0}${fs_free /}${color} Used - ${color e0e0e0}${fs_used /}${color}  Home: Free - ${color e0e0e0}${fs_free /home}${color} Used - ${color e0e0e0}${fs_used /home}${color}  Data: Free - ${color e0e0e0}${fs_free /home/syameimaru/Desktop/Data}${color} Used - ${color e0e0e0}${fs_used /home/syameimaru/Desktop/Data}${color}
tawan

Re: Conky Showoff thread

Post by tawan »

you'll need this image

This is very unlikely to work on anyone elses system without all the scripts it relies on but if you want to take an idea you can look at the code.

Image

Code: Select all

#  Settings
##############################################
# Use XftD
use_xft yes
xftfont Bauhaus Md BT:size=8
xftalpha 1.0
text_buffer_size 2048
if_up_strictness address

# Update interval in seconds
update_interval 1

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

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

# Draw shadesD
draw_shades yes

# Draw outlinesD
draw_outline no

# Draw borders around text
draw_borders no

# Stippled bordersD
stippled_borders 0

# border margins
border_margin 5

# border width
border_width 1

# Default colors and also border colors
default_color FFFFDD
#good blue 1994d1
color1 707070
color2 1994d1
color3 a90100
color4 cccccc
#default_shade_color 888888
#default_outline_color 888888
own_window_colour 000000

# Text alignment, other possible values are commented
alignment tl

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

# Subtract file system buffers from used memoryD
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 1

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2


# Force UTF8D note that UTF8 support required XFT
override_utf8_locale yes

# Add spaces to keep things from moving aboutD  This only affects certain objects.
use_spacer none

TEXT
${image image.png -p 0,4}
${goto 8}${color1}${voffset -20}${font Rebecca:size=84}${execpi 900 python ~/.conky/gmail_parser.py NAME PASSWORD 1}${font}    ${goto 95}${voffset -49}${font pizzadude bullets:size=48}${if_match ${upspeedf wlan0} >= 20}${color2}w${else}${if_match ${upspeedf wlan0} >= 2}${color2}v${else}${color1}v${endif}${endif}${color1}    ${goto 174}${if_match ${downspeedf wlan0} >= 40}${color2}s${else}${if_match ${downspeedf wlan0} >= 2}${color2}r${else}${color1}r${endif}${endif}${color1}    ${goto 357}${execpi 5000 ~/mybin/tawan-check-updates}    ${goto 440}${font StyleBats:size=52}${voffset 5}${if_match ${acpitemp} >= 70}${color3}${else}${if_match ${acpitemp} >= 60}${color2}${else}${color1}${endif}${endif}p${color1}    ${goto 520}${if_match ${battery_percent BAT0} <= 20}${color3}${else}${color2}${endif}${if_existing /sys/class/power_supply/ACAD/online 1}${color1}I${else}O${endif}    ${goto 258}${font StyleBats:size=16}${voffset -4}${if_match ${fs_used_perc /home/tawan/Data} >= 75}${color3}${else}${if_match ${diskio /dev/sda} >= 1}${color2}${else}${color1}${endif}G${endif}${color1}    ${goto 279}${voffset 2}${if_match ${memperc} >= 80}${color3}${else}${if_match ${memperc} >= 40}${color2}${else}${color1}${endif}${endif}y${color1}    ${goto 300}${voffset -2}${if_match ${cpu cpu1} >= 90}${color3}${else}${if_match ${cpu cpu1} >= 40}${color2}${else}${color1}${endif}${endif}l${color1}    ${goto 319}${if_match ${cpu cpu2} >= 90}${color3}${else}${if_match ${cpu cpu2} >= 40}${color2}${else}${color1}${endif}${endif}l${color1}    ${goto 600}${voffset -30}${color2}${font Radio space:size=32}${time %R}${font}
${goto 603}${color4}${font Jura:size=8}${time %A %e%b %Y}${font}${color}

























































${if_existing /sys/class/power_supply/ACAD/online 0}${if_match ${battery_percent BAT0} <= 11}${if_match ${battery_percent BAT0} > 8}${execi 300 ~/mybin/tawan-warn-shutdown}${endif}${endif}${if_match ${battery_percent BAT0} <= 8}${execi 200 ~/mybin/tawan-shutdown-now}${endif}${endif}
${execi 600 ~/mybin/tawan-timed-torrent}
Locked

Return to “Compiz, Conky, Docks & Widgets”