Conky Showoff thread

Forum rules
Before you post please read this

Re: Conky Showoff thread

Postby Oscar799 on Mon Feb 21, 2011 4:42 am

Good idea vrkalak....threads merged :D
Image
"Don't fix it if it ain't broken,don't break it if you can't fix it" Husse
Registered Linux User #511789
User avatar
Oscar799
Level 18
Level 18
 
Posts: 8839
Joined: Tue Aug 11, 2009 9:21 am
Location: United Kingdom

Linux Mint is funded by ads and donations.
 

Re: Conky Showoff thread

Postby Sector11 on Tue Mar 08, 2011 5:33 pm

Because of the number of conkys you see, I'm not adding the code, if you want a piece, let me know and I'll post it.

Daily desktop:
The wallpaper has changed, the lettering is different and I've upgraded the landing gear. Gutterslob may well recognize the background as well - it's his.

The "rotating conky" has been moved to the top of the screen, allowing the SR-71 (Code Name: SectoR-11) to land on the tint2 bar! I also tossed something into the Trash so you could see my trash conky in action
Image

Critical Information panel (for gutterslob - he says he likes it)
Image

Push Button Info (OpenBox Menu entries):
Image
My thanks to arpinux for the tip on how to do this.

Next two come from mrpeachy, who does GREAT stuff, I like to run them every now and then just to see how things are going.

CPU:
Image

MEM:
Image

Other samples of mrpeachy's work are the "Mayan Almanac" (clock / calendar - whatever you want to call it) and the "Sun Moon" conkys seen in the "Critical Information Panel" and "Push Button Info" conkys.
#! pushed to Debian SID & OpenBox
Conky PitStop
Sector11
Level 1
Level 1
 
Posts: 43
Joined: Mon Nov 22, 2010 10:33 am

Re: Conky Showoff thread

Postby Habitual on Wed Mar 09, 2011 1:26 am

Sector11?
Man, they let anybody in here. :roll:
What's a landing but a take off in reverse?
My DorkBlog
User avatar
Habitual
Level 8
Level 8
 
Posts: 2053
Joined: Sun Nov 21, 2010 8:31 pm
Location: Undecided

Re: Conky Showoff thread

Postby SebbyNC on Thu Mar 10, 2011 1:15 pm

Here's my Conky (based on the "Conky Elegant" found on gnome-look.org) still improving, that I run on my laptop.
I added a simple calendar, but whatever the script I try, the current day highlighting doesn't work (it works fine when I run "cal" in the terminal). I haven't found anybody with the same problem, so haven't found a way to fix it.
Untitled.png
Untitled.png (68.27 KiB) Viewed 6880 times

Code: Select all
# Based on Elengant Conky by satya164 #
background no
update_interval 1
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
double_buffer yes
no_buffers yes
text_buffer_size 2048
#imlib_cache_size 0
temperature_unit celsius

# Window specifications #
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
minimum_size 150 250
maximum_width 150
alignment tr
gap_x 15
gap_y 15

# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# Text settings #
use_xft yes
xftfont Sans :size=8
xftalpha 0.8
text_buffer_size 2048
uppercase no
default_color FFFFFF

# Lua Load  #
lua_load ~/.conky/conky_elegant.lua
lua_draw_hook_pre clock_rings

TEXT
${voffset 8}${color FF6600}${font :size=14}${time %A}${font}${voffset -8}${alignr 50}${color FFFFFF}${font :size=34}${time %e}${font}
${color FFFFFF}${voffset -30}${font :size=16}${time %b}${font}${voffset -3} ${color FFFFFF}${font :size=18}${time %Y}${font}${voffset 1}${color FF6600}${hr}
${voffset 105}${font :size=9}${alignr}${time %H:%M}${font}${color}

${font :size=8}Calendar ${color FF6600}${hr}
${font :size=10}$alignc${time %B}${color}
${font Monospace:size=8}${execpi 60 cal | sed '1d' | sed '/./!d' | sed 's/$/ /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${alignc} /' | sed /"date +%_d"/s/"date +%_d"/" "'${color FF6600}'"date +%_d"'${color}'""/}
${font :size=8}${pre_exec lsb_release -ds} ${color FF6600}${hr}${color}

Kernel: ${alignr}${kernel}
Uptime: ${alignr}${uptime}
#Temperature: ${alignr}${acpitemp}°C
CPU1: ${cpu cpu1}% ${alignr}${color FF6600}${cpugraph cpu1 8,60 FF6600 FFFFFF}${color}
CPU2: ${cpu cpu2}% ${alignr}${color FF6600}${cpugraph cpu2 8,60 FF6600 FFFFFF}${color}
RAM: $memperc% ${alignr}${color FF6600}${memgraph 8,60 FF6600 FFFFFF}${color}
Swap: $swapperc% ${alignr}

Processes (${color FF6600}cpu${color}/mem) ${color FF6600}${hr}${color}

${top_mem name 1}$alignr${color FF6600}${top_mem cpu 1}${color}${top_mem mem 1}
${top_mem name 2}$alignr${color FF6600}${top_mem cpu 2}${color}${top_mem mem 2}
${top_mem name 3}$alignr${color FF6600}${top_mem cpu 3}${color}${top_mem mem 3}
${top_mem name 4}$alignr${color FF6600}${top_mem cpu 4}${color}${top_mem mem 4}
${top_mem name 5}$alignr${color FF6600}${top_mem cpu 5}${color}${top_mem mem 5}

Now Playing ${color FF6600}${hr}${color}
${if_running banshee-1}
Title: ${exec banshee-1 --query-title | cut -f2- -d" "}
Artist: ${exec banshee-1 --query-artist | cut -f2- -d" "}
Album: ${exec banshee-1 --query-album | cut -f2- -d" "}
${else}${if_running rhythmbox}
Title: $alignr${color FF6600}${exec rhythmbox-client --no-start --print-playing-format %tt}
${color}Artist: $alignr${color FF6600}${exec rhythmbox-client --no-start --print-playing-format %aa}
${color}Album: $alignr${exec rhythmbox-client --no-start --print-playing-format %at}
${color}Elapsed: $alignr${color FF6600}${exec rhythmbox-client --no-start --print-playing-format %te} ${color}/ ${exec rhythmbox-client --no-start --print-playing-format %td}
${else}${if_running exaile}
Title: ${execi 10 exaile --get-title}
Artist: ${execi 10 exaile --get-artist}
Album: ${execi 10 exaile --get-album} }
${else}${if_running amarok}
Title: ${exec dcop amarok player title}
Artist: ${exec dcop amarok player artist}
Album: ${exec dcop amarok player album}
${else}Player Status Unavailable${endif}${endif}${endif}${endif}
Network Statistics ${color FF6600}${hr}${color}

Up: ${upspeed eth1} ${alignr}${upspeedgraph eth1 8,60 FF6600 FFFFFF -t -l}
Down: ${downspeed eth1} ${alignr}${downspeedgraph eth1 8,60 FF6600 FFFFFF -t -l}
Upload: ${alignr}${totalup eth1}
Download: ${alignr}${totaldown eth1}
IP Address: ${alignr}${addr eth1}
SebbyNC
Level 1
Level 1
 
Posts: 5
Joined: Tue Nov 30, 2010 9:06 am

Re: Conky Showoff thread

Postby vrkalak on Thu Mar 10, 2011 5:26 pm

Jesterrr wrote:Hi brother, when i am searching how to make my conky one line, i viewed your desktop and your background it's so beatiful..Can you say me the name or the script and send to a PM, this wallpaper: http://farm3.static.flickr.com/2794/433 ... c35c_b.jpg


Boy, that was a long time ago . . . I'll have to search and see if I still have that one-line Conky Script somewhwere.

When, I find it I'll send you a PM with the script ... and post it in this thread.

Meanwhile, search through the Conky Show-off thread for a good script.
Or search through Conky-Pitstop or the DeviantART Conky-Artists Group for a suitable script.
Or on another Linux OS Forum ... Crunchbang and Arch/Linux Forums have a great Conky thread.

Conky-Pitstop > http://conky-pitstop.wikidot.com/
DA Conky Artists Group > http://conky-artists-group.deviantart.com/
Arch/Linux Forum > https://bbs.archlinux.org/viewtopic.php?id=39906
Chrunchbang Forum > http://crunchbanglinux.org/forums/topic ... ky-config/

Most of the Linux OS/distro Forums usually post the Conky Scripts for you to use.
Image
:: LinuxMint-Debian-Edition (Fluxbox) :: Manjaro/Arch (Xfce) ::
Registered Linux User: #497031 :: DeviantART Page
User avatar
vrkalak
Level 10
Level 10
 
Posts: 3279
Joined: Mon Jul 20, 2009 5:53 pm
Location: Santa Fe, NM, USA

Re: Conky Showoff thread

Postby Sector11 on Sun Mar 13, 2011 9:38 pm

SebbyNC wrote:Here's my Conky (based on the "Conky Elegant" found on gnome-look.org) still improving, that I run on my laptop.
I added a simple calendar, but whatever the script I try, the current day highlighting doesn't work (it works fine when I run "cal" in the terminal). I haven't found anybody with the same problem, so haven't found a way to fix it.


No idea why your cal line doesn't colour today, it doesn't work for me either.

Do you have the font: monospace installed? If not try "DejaVu Sans Mono" or any other mono font you know you have installed.

Also: A "calendar" must use a mono font to align right.

Try this conky it uses DejaVu Sans Mono, most distros have that by default I believe.

The output:
Image

The top calendar allows you to give the day names different colours as well, or add the month and year rather than "TU WE TH" as per the sample.

The second one is a working version similar to what you have.

NOTE: the three ${goto 0} commands. Two with the top sample one with the bottom, change those values as you need

Code: Select all
background no
own_window yes
own_window_type override #normal
own_window_transparent yes #yes
own_window_hints skip_taskbar,skip_pager
own_window_title Trash
double_buffer yes
use_spacer none
override_utf8_locale yes
uppercase no  # set to yes if you want all text to be in uppercase
stippled_borders 0
border_width 0
#default_outline_color black
#default_shade_color black
draw_borders no
draw_outline no  # amplifies text if yes
draw_shades no  # shadecolor black

# Colors
default_color DCDCDC #Gainsboro
color0 FFFFF0 #Ivory
color1 FFA07A #LightSalmon
color2 FF8C00 #Darkorange
color3 C6FF8E #a light green #FFF00 #Chartreuse
color4 778899 #LightSlateGrey
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 48D1CC #MediumTurquoise
color8 FFFF00 #Yellow
color9 FF0000 #Red

# Aligned position on screen: tl, tr, tm, bl, br, bm, ml, mr
alignment tl

border_inner_margin 0
border_outer_margin 0

text_buffer_size 1024
no_buffers yes  # Subtract file system buffers from used memory?
short_units yes
pad_percents 2
top_name_width 7

maximum_width 200
minimum_size 200 0 # minimum_size width & height
gap_x 100 # left-right
gap_y 100 # up-down

use_xft   yes
xftfont DejaVu Sans Mono:bold:size=8
xftalpha 2.5
update_interval 86400
TEXT
Try this:

${goto 0}${color2}SU MO  ${color}${time %b %y}${color2}  FR SA
${voffset 5}${color4}${execpi 86400 DJS=`date +%_d`; cal | sed '2d' | sed '1d'  | sed '/./!d' | sed 's/$/                     /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${goto 0} /' | sed /" $DJS "/s/" $DJS "/" "'${color2}'"$DJS"'${color4}'" "/}${color}

or this:

${color4}${execpi 86400 DJS=`date +%_d`; cal | sed '2d' | sed '1d'  | sed '/./!d' | sed 's/$/                     /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${goto 0} /' | sed /" $DJS "/s/" $DJS "/" "'${color2}'"$DJS"'${color4}'" "/}


86400 = once every 24 hours (I turn my computer off at night)

Also if you want to line up those processes check this out: goto | offset | voffset
Last edited by Sector11 on Sun Mar 13, 2011 10:03 pm, edited 2 times in total.
#! pushed to Debian SID & OpenBox
Conky PitStop
Sector11
Level 1
Level 1
 
Posts: 43
Joined: Mon Nov 22, 2010 10:33 am

Re: Conky Showoff thread

Postby Sector11 on Sun Mar 13, 2011 9:48 pm

Habitual wrote:Sector11?
Man, they let anybody in here. :roll:


No kidding - your here. :lol:

How ya doing?
#! pushed to Debian SID & OpenBox
Conky PitStop
Sector11
Level 1
Level 1
 
Posts: 43
Joined: Mon Nov 22, 2010 10:33 am

Re: Conky Showoff thread

Postby Sector11 on Sun Mar 20, 2011 1:30 pm

Something I just finished creating.

Calendar by mobilediesel with weather (conkyForecast) by kaivalagi

Image

The files in OB_V-W.tar.gz will create: ~/Conky with what you need.
#! pushed to Debian SID & OpenBox
Conky PitStop
Sector11
Level 1
Level 1
 
Posts: 43
Joined: Mon Nov 22, 2010 10:33 am

Re: Conky Showoff thread

Postby ackernan on Mon Mar 21, 2011 10:10 pm

ackernan wrote:I'm not a conky guru. Found some stuff I liked and made it work for me.


Here's updated photos and the conky code...
Attachments
Conky.tar.gz
Conky files
(2.93 KiB) Downloaded 164 times
conky2.png
conky2.png (442.96 KiB) Viewed 6771 times
conky1.png
conky1.png (274.96 KiB) Viewed 6771 times
ackernan
Level 1
Level 1
 
Posts: 18
Joined: Sun Dec 19, 2010 8:39 am

Re: Conky Showoff thread

Postby Sector11 on Fri Apr 08, 2011 7:07 pm

#! pushed to Debian SID & OpenBox
Conky PitStop
Sector11
Level 1
Level 1
 
Posts: 43
Joined: Mon Nov 22, 2010 10:33 am

Re: Conky Showoff thread

Postby phredbull on Tue May 03, 2011 1:04 am

Here's mine:
ConkyScreenshot.png
ConkyScreenshot.png (455.38 KiB) Viewed 6432 times

time:
Code: Select all
conky configuration

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

# Use Xft?
use_xft yes
xftfont Sawasdee:bold:size=8
text_buffer_size 2048
xftalpha 1.0

# Print everything to console?
out_to_console no

# mail spool
#mail_spool $MAIL

# 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_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes

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

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text?
draw_borders

# Stippled borders?
stippled_borders no

# border margins
border_inner_margin 1

# border width
border_width 1

# Default colors and also border colors
default_color 000000
color1 7a7a7a
color2 9a9a9a
color3 81c53c
color4 6571a8
color5 8480c2
color6 b980c2
color7 ad6a9f
color8 866aad
default_shade_color cbe5b3
default_outline_color 05110d

# Minimum size of text area
minimum_size 256
maximum_width 256

# 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 36
gap_y 16

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

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

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

# load .lua background script
lua_load ~/Scripts/draw_bg.lua
lua_draw_hook_pre draw_bg

# stuff after 'TEXT' will be formatted on screen

TEXT
${voffset -6}${font Sawasdee:bold:size=22}${color1}${time %H:%M}${font Sawasdee:bold:size=13}${time :%S}${font Sawasdee:bold:size=8} ${time %P}${color}${font}
${font Sawasdee:bold:size=14}${color2}${time %A, %B %d, %Y}${font}


weather:
Code: Select all
conky configuration

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

# Use Xft?
use_xft yes
xftfont Sawasdee:bold:size=8
text_buffer_size 2048
xftalpha 1.0

# Print everything to console?
out_to_console no

# mail spool
#mail_spool $MAIL

# Update interval in seconds
update_interval 600

# 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_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes

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

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text?
draw_borders no

# Stippled borders?
stippled_borders no

# border margins
border_inner_margin 1

# border width
border_width 0

# Default colors and also border colors
default_color 000000
color1 7a7a7a
color2 9a9a9a
color3 81c53c
color4 6571a8
color5 8480c2
color6 b980c2
color7 ad6a9f
color8 866aad
default_shade_color cbe5b3
default_outline_color 05110d

# Minimum size of text area
minimum_size 256
maximum_width 256

# 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 36
gap_y 96

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

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

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

# load .lua background script
lua_load ~/Scripts/draw_bg.lua
lua_draw_hook_pre draw_bg

# stuff after 'TEXT' will be formatted on screen

TEXT
${voffset -2}${font Sawasdee:bold:size=12}${color1}weather ${hr 2}${font}
${execpi 1800 conkyForecast --location=USIL0228 --template=~/Scripts/conkyForecast}


system:
Code: Select all
conky configuration

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

# Use Xft?
use_xft yes
xftfont Sawasdee:bold:size=8
text_buffer_size 2048
xftalpha 1.0

# Print everything to console?
out_to_console no

# mail spool
#mail_spool $MAIL

# 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_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes

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

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text?
draw_borders no

# Stippled borders?
stippled_borders no

# border margins
border_inner_margin 1

# border width
border_width 0

# Default colors and also border colors
default_color 000000
color1 7a7a7a
color2 9a9a9a
color3 81c53c
color4 6571a8
color5 8480c2
color6 b980c2
color7 ad6a9f
color8 866aad
default_shade_color cbe5b3
default_outline_color 05110d

# Minimum size of text area
minimum_size 520
maximum_width 520

# 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 312
gap_y 96

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

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

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

# load .lua background script
lua_load ~/Scripts/draw_bg.lua
lua_draw_hook_pre draw_bg

# stuff after 'TEXT' will be formatted on screen

TEXT
${voffset -2}${font Sawasdee:bold:size=12}${color1}system ${hr 2}${font}
${color2}[$nodename]${alignr 264}${color1}[$kernel]
${color2}[$machine]:${alignr 264}${color1}${freq}MHz
${color2}uptime:${alignr 264}${color1}$uptime
${color2}cpu load: ${alignr 264}${color1}${cpu}%
${color3}${cpugraph 16,256}
${voffset 2}${color2}core temp:${alignr 264}${color1}${hwmon tempf 1}°F
${color2}ram usage: ${color1}$memperc%${alignr 264}$mem/$memmax
${color3}${memgraph 16,256}
${voffset 2}${color2}swap usage: ${color1}$swapperc%${alignr 264}$swap/$swapmax
${voffset -6}${color3}${swapbar 4,256}
${color2}/($fs_type): ${color1}${fs_used_perc /}%${alignr 264}${fs_used /}/${fs_size /}
${voffset -6}${color3}${fs_bar 4,256 /}
${color2}/home($fs_type): ${color1}${fs_used_perc /home}%${alignr 264}${fs_used /home}/${fs_size /home}
${voffset -6}${color3}${fs_bar 4,256 /home}${voffset -226}
${offset 272}${font Sawasdee:bold:size=9}${color2}processes: ${color1}$processes${alignr}${color2}running: ${color1}$running_processes${font}
${offset 272}${color2}top cpu processes:${alignr}${color1}cpu %
${offset 272}${font Sawasdee:bold:size=7}${color1}${top name 1}${alignr}${color2}${top cpu 1}
${offset 272}${color1}${top name 2}${alignr}${color2}${top cpu 2}
${offset 272}${color1}${top name 3}${alignr}${color2}${top cpu 3}
${offset 272}${color1}${top name 4}${alignr}${color2}${top cpu 4}
${offset 272}${color1}${top name 5}${alignr}${color2}${top cpu 5}${color}${font}
${offset 272}${color2}top mem processes:${alignr}${color1}MiB
${offset 272}${font Sawasdee:bold:size=7}${color1}${top_mem name 1}${alignr}${color2}${top_mem mem_res 1}
${offset 272}${color1}${top_mem name 2}${alignr}${color2}${top_mem mem_res 2}
${offset 272}${color1}${top_mem name 3}${alignr}${color2}${top_mem mem_res 3}
${offset 272}${color1}${top_mem name 4}${alignr}${color2}${top_mem mem_res 4}
${offset 272}${color1}${top_mem name 5}${alignr}${color2}${top_mem mem_res 5}${font}${voffset 24}


wireless:
Code: Select all
conky configuration

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

# Use Xft?
use_xft yes
xftfont Sawasdee:bold:size=8
text_buffer_size 2048
xftalpha 1.0

# Print everything to console?
out_to_console no

# mail spool
#mail_spool $MAIL

# 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_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes

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

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text?
draw_borders no

# Stippled borders?
stippled_borders no

# border margins
border_inner_margin 1

# border width
border_width 0

# Default colors and also border colors
default_color 000000
color1 7a7a7a
color2 9a9a9a
color3 81c53c
color4 6571a8
color5 8480c2
color6 b980c2
color7 ad6a9f
color8 866aad
default_shade_color cbe5b3
default_outline_color 05110d

# Minimum size of text area
minimum_size 256
maximum_width 256

# 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 852
gap_y 96

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

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

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

# load .lua background script
lua_load ~/Scripts/draw_bg.lua
lua_draw_hook_pre draw_bg

# stuff after 'TEXT' will be formatted on screen

TEXT
${voffset -2}${font Sawasdee:bold:size=12}${color1}wireless ${hr 2}${font}
${color2}up speed: ${color1}${upspeed wlan0}${color2}$alignr total up: ${color1}${totalup wlan0}
${color3}${upspeedgraph wlan0 16,256}
${voffset 2}${color2}external ip:$alignr${color1}${execi 3600 wget -O - http://ip.tupeux.com | tail}
${color2}signal: ${color1}${wireless_bitrate wlan0}$alignr ${wireless_link_qual_perc wlan0}%
${voffset -6}${color3}${wireless_link_bar 4,256 wlan0}
${color2}internal ip:${alignr}${color1}${addr wlan0}
${voffset 8}${color3}${downspeedgraph wlan0 16,256}
${voffset -4}${color2}dn speed: ${color1}${downspeed wlan0}${color2}$alignr total dn: ${color1}${totaldown wlan0}${color}${voffset 10}


key commands:
Code: Select all
conky configuration

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

# Use Xft?
use_xft yes
xftfont Sawasdee:bold:size=8
text_buffer_size 2048
xftalpha 1.0

# Print everything to console?
out_to_console no

# mail spool
#mail_spool $MAIL

# Update interval in seconds
update_interval 600

# 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_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes

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

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text?
draw_borders no

# Stippled borders?
stippled_borders no

# border margins
border_inner_margin 1

# border width
border_width 0

# Default colors and also border colors
default_color 000000
color1 7a7a7a
color2 9a9a9a
color3 81c53c
color4 6571a8
color5 8480c2
color6 b980c2
color7 ad6a9f
color8 866aad
default_shade_color cbe5b3
default_outline_color 05110d

# Minimum size of text area
minimum_size 256
maximum_width 256

# 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 1128
gap_y 96

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

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

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

# load .lua background script
lua_load ~/Scripts/draw_bg.lua
lua_draw_hook_pre draw_bg

# stuff after 'TEXT' will be formatted on screen

TEXT
${font Sawasdee:bold:size=12}${color1}keyboard commands ${hr 2}${font}
${color1}win + c:${alignr}${color3}c${color2}onky
${color1}win + d:${alignr}${color3}d${color2}esktop
${color1}win + e:${alignr}${color2}text ${color3}e${color2}ditor
${color1}win + f:${alignr}${color3}f${color2}ile browser
${color1}win + shift + f:${alignr}${color2}root ${color3}f${color2}ile browser
${color1}win + i:${alignr}${color2}Mint${color3}I${color2}nstall
${color1}win + m:${alignr}${color3}m${color2}aximize
${color1}win + shift + m:${alignr}${color3}(m)${color2}fill
${color1}win + up:${alignr}${color2}maximize ${color3}vert${color2}
${color1}win + rt:${alignr}${color2}maximize ${color3}horiz${color2}
${color1}win + p:${alignr}${color3}p${color2}ackage manager
${color1}win + r:${alignr}${color2}xf${color3}r${color2}un4
${color1}win + t:${alignr}${color3}t${color2}erminal
${color1}win + w:${alignr}${color3}w${color2}eb browser
${color1}win + x:${alignr}${color3}x${color2}flock4
${color1}win + tab:${alignr}${color3}next${color2} window
${color1}win + shift + tab:${alignr}${color3}prev${color2} window
${color1}win + pg up:${alignr}${color3}raise${color2} window
${color1}win + pg dn:${alignr}${color3}lower${color2} window
${color1}win + 1:${alignr}${color2}workspace ${color3}1${color2}
${color1}win + 2:${alignr}${color2}workspace ${color3}2${color2}
${color1}win + 3:${alignr}${color2}workspace ${color3}3${color2}
${color1}win + 4:${alignr}${color2}workspace ${color3}4${color2}
${color1}ctrl + alt + up:${alignr}prev${color2} workspace
${color1}ctrl + alt + dn:${alignr}next${color2} workspace
${color1}ctrl + alt + del:${alignr}${color3}quit${voffset 12}


lua backgrounds:
Code: Select all
--[[    Background by londonali1010 (2009)
    VinDSL Background Hack (2010-2011)

This script draws a background to the Conky window. It covers the whole of the Conky window, but you can specify rounded corners, if you wish.

To call this script in Conky, use (assuming you have saved this script to ~/Scripts/):
    lua_load ~/Scripts/draw_bg.lua
    lua_draw_hook_pre draw_bg

Changelog:
    + v3.0    VinDSL Hack (01.28.2011) Killed memory leak.
    + v2.4    VinDSL Hack (01.25.2011) Declared all variables in local.
    + v2.3    VinDSL Hack (12.31.2010) Added shading example(s).
    + v2.2    VinDSL Hack (12.30.2010) Cleaned up the code a bit.
    + v2.1    VinDSL Hack (12.24.2010) Added cairo destroy function(s).
    + v2.0    VinDSL Hack (12.21.2010) Added height adjustment variable.
    + v1.0    Original release (07.10.2009)

]]

--------------START OF PARAMETERS ------------
-- Change these settings to affect your background:

-- "corner_r" is the radius, in pixels, of the rounded corners. If you don't want rounded corners, use 0.

    local corner_r = 8

-- Set the colour and transparency (alpha) of your background (0.00 - 0.99).

--    (Light Shading Example)
--    local bg_colour = 0x4d4d4d
--    local bg_alpha = 0.50

--    (Medium Shading Example)
--    local bg_colour = 0x222222
--    local bg_alpha = 0.50

--    (Dark Shading Example)
--    local bg_colour = 0x000000
--    local bg_alpha = 0.50

    local bg_colour = 0xd2d2d2
    local bg_alpha = .4

-- Tweaks the height of your background, in pixels. If you don't need to adjust the height, use 0.

--    (Default Setting)
--    local vindsl_hack_height = 0

    local vindsl_hack_height = -12
---------------END OF PARAMETERS -------------

require 'cairo'
local    cs, cr = nil

local function rgb_to_r_g_b(colour,alpha)
    return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
    end

function conky_draw_bg()
    if conky_window == nil then return end
    if cs == nil then cairo_surface_destroy(cs) end
    if cr == nil then cairo_destroy(cr) end
    local w = conky_window.width
    local h = conky_window.height
    local v = vindsl_hack_height
    local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
    local cr = cairo_create(cs)
   
    cairo_move_to(cr,corner_r,0)
    cairo_line_to(cr,w-corner_r,0)
    cairo_curve_to(cr,w,0,w,0,w,corner_r)
    cairo_line_to(cr,w,h+v-corner_r)
    cairo_curve_to(cr,w,h+v,w,h+v,w-corner_r,h+v)
    cairo_line_to(cr,corner_r,h+v)
    cairo_curve_to(cr,0,h+v,0,h+v,0,h+v-corner_r)
    cairo_line_to(cr,0,corner_r)
    cairo_curve_to(cr,0,0,0,0,corner_r,0)
    cairo_close_path(cr)

    cairo_set_source_rgba(cr,rgb_to_r_g_b(bg_colour,bg_alpha))
    cairo_fill(cr)

    cairo_surface_destroy(cs)
    cairo_destroy(cr)
    end


weather script:
Code: Select all
${color1}${font Sawasdee:bold:size=9}[--datatype=CT]
${color3}${offset 4}${font ConkyWeather:size=22}[--datatype=WF]${offset 77}${font ConkyWindNESW:size=22}[--datatype=BS]${offset 77}${font Moon Phases:size=16}[--datatype=MF]${font}
${voffset -4}${color1}${font Sawasdee:bold:size=8}[--datatype=HT --imperial --hideunits --centeredwidth=3]/[--datatype=LT --imperial --centeredwidth=3]${goto 104}[--datatype=WS --imperial]-[--datatype=WD]
#
${voffset 2}${font Sawasdee:bold:size=7}${color2}[--datatype=DW --startday=1]${goto 72}[--datatype=DW --startday=2]${goto 144}[--datatype=DW --startday=3]${goto 216}[--datatype=DW --startday=4]
${voffset 2}${offset 3}${color3}${font ConkyWeather:size=18}[--datatype=WF --startday=1 --endday=4 --spaces=8]${font}
${voffset -4}${font Sawasdee:bold:size=7}${color2}[--datatype=HT --startday=1 --imperial --hideunits --centeredwidth=3]/[--datatype=LT --startday=1 --imperial --centeredwidth=3]${goto 72}[--datatype=HT --startday=2 --imperial --hideunits --centeredwidth=3]/[--datatype=LT --startday=2 --imperial --centeredwidth=3]${goto 144}[--datatype=HT --startday=3 --imperial --hideunits --centeredwidth=3]/[--datatype=LT --startday=3 --imperial --centeredwidth=3]${goto 216}[--datatype=HT --startday=4 --imperial --hideunits --centeredwidth=3]/[--datatype=LT --startday=4 --imperial --centeredwidth=3]${font}
#
${color2}station:$alignr ${color1}[--datatype=OB]
${color2}humidity:$alignr ${color1}[--datatype=HM]
${color2}barometer:$alignr ${color1}[--datatype=BR] - [--datatype=BD]
${color2}sunrise/set:$alignr ${color1}[--datatype=SR]/[--datatype=SS]
${font Sawasdee:bold:size=6}${color2}last update:$alignr ${color1}[--datatype=LU]${color}${font}
Apple iMac, Core2Duo 2.0gHz, 3gb, ATI Radeon Mobility X1600
-Mint Nadia Cinnamon
-Mac OSX 10.5.8
Compaq Evo N610c, P4M 2.8gHz, 7688mb, ATI Radeon m7500
-LMDE XFCE
-Mint Katya Gnome
-Windoze XP
Ext. HD
-Mint Isadora Fluxbox
USB stick
-#! Statler
User avatar
phredbull
Level 1
Level 1
 
Posts: 42
Joined: Wed Dec 01, 2010 8:55 pm
Location: Chicago, IL, USA

Re: Conky Showoff thread

Postby zooks on Fri May 06, 2011 4:05 pm

My conky on the default Mint desktop background with minty green bars. Very minimal and nothing fancy.
conky.png
conky.png (62.78 KiB) Viewed 6425 times

Code: Select all
# conky configuration
##############################################
#  Settings
##############################################
background no
use_xft yes
xftfont Sans:size=8
xftalpha 1
update_interval 1
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 200
maximum_height 200
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_middle
gap_x 120
gap_y 40
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
color0 white  #default white
color1 ACCD8A #bar colors - mint green
##############################################
#  Output
##############################################
TEXT
${color0}${alignc 19}${font Trebuchet MS:size=15}${time %I:%M%p}${font}
${color0}${voffset 6}${alignc}${time %A, %d %B %Y}

${font}${color0}System:$alignr$sysname $machine
Kernel:$alignr$kernel
Host:$alignr$nodename

${color0}CPU1: ${color0}${alignr}${cpu cpu1}% ${color1}${cpubar 8,90 cpu1}
${color0}CPU2: ${color0}${alignr}${cpu cpu2}% ${color1}${cpubar 8,90 cpu2}

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

${color0}/root - ${fs_used_perc /}%${alignr}${fs_free /} / ${fs_size /} Free
${color1}${fs_bar /}
${color0}/home - ${fs_used_perc /home}%${alignr}${fs_free /home} / ${fs_size /home} Free
${color1}${fs_bar /home}

${color0}Down: ${downspeed}${alignr}Up: ${upspeed}
${color1}${downspeedgraph 25,90 -l}${alignr}${upspeedgraph 25,90 -l}
zooks
Level 1
Level 1
 
Posts: 40
Joined: Sun Apr 17, 2011 1:39 am
Location: Netherlands

Re: Conky Showoff thread

Postby Sector11 on Mon May 16, 2011 3:33 pm

Yesterday (for something to do) I did a text based weather conky for across the top of my monitor, it also shows my email count (lower left) and a red T if there is trash and time up (lower right)

Image
Our conky python benefactor should recognize the tree!

It's in Spanish: Lun = Mon etc etc ...

17 | 17 is: Current | Humidity Index / Windchill Factor for Canada or Feels Like for the US

cyan is forcasted LOW; red is forecasted HIGH; P; is Barometric Pressure and the yellow numbers are the hours of daylight per day.

On the right a new feature with conkyForecast v2.20 the ability to tell how long until sunset or sunrise. After sunset the bottom line will change to:
Code: Select all
Sunrise in: HH:MM:SS

and be the same colour you see for the sunset time: 17:59

Code: Select all
# To use #! in a conky use: ${exec echo '#!'}
# OB_TCW c/w SunRiseSunSet

background no
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints below,skip_taskbar,skip_pager
own_window_title S11-Conky
own_window_class S11-Conky

double_buffer yes
use_spacer right
override_utf8_locale yes
use_xft yes
xftalpha 1.0
uppercase no
stippled_borders 0
border_inner_margin 0
border_width 0
default_outline_color black
default_shade_color black
draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no

default_color DCDCDC #Gainsboro
color0 FFFFF0 #Ivory
color1 A9A9A9 #DarkGray 778899 #LightSlateGrey
color2 FF8C00 #Darkorange
color3 FFF000 #Chartreuse
color4 C6FF8E #Light Green
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 48D1CC #MediumTurquoise
color8 F0E68C #Khaki #FFFF00 #Yellow
color9 FF0000 #Red

text_buffer_size 3048 # 256 is minimum
no_buffers yes
short_units yes
pad_percents 2

update_interval 5 #86400
imlib_cache_size 0
gap_x 0          ### left &right
gap_y 5            ### up & down
minimum_size 1200 0 ### width, height
maximum_width 1200   
alignment tm       
xftfont monospace:bold:size=8

lua_load ~/Conky/LUA/draw_bg.lua
lua_draw_hook_pre draw_bg

TEXT
${execpi 1800 conkyForecast --template=~/Conky/templates/TCW.template}


TCW.template
Code: Select all
  ${color0}[--datatype=DW --startday=0 --shortweekday]:${color} [--datatype=HT --hideunits --hidedegreesymbol] | [--datatype=LT --hideunits --hidedegreesymbol] ${color7}[--startday=0 --datatype=LT --hideunits --hidedegreesymbol] ${color9}[--startday=0 --datatype=HT --hideunits --hidedegreesymbol]${color} P: [--datatype=PC --startday=0] ${color8}[--datatype=DL --startday=0]${color}${goto 211}| ${color0}[--datatype=DW --startday=1 --shortweekday]: ${color7}[--startday=1 --datatype=LT --hideunits --hidedegreesymbol] ${color9}[--startday=1 --datatype=HT --hideunits --hidedegreesymbol]${color} P: [--datatype=PC --startday=1] ${color8}[--datatype=DL --startday=1]${color}${goto 421}| ${color0}[--datatype=DW --startday=2 --shortweekday]: ${color7}[--startday=2 --datatype=LT --hideunits --hidedegreesymbol] ${color9}[--startday=2 --datatype=HT --hideunits --hidedegreesymbol]${color} P: [--datatype=PC --startday=2] ${color8}[--datatype=DL --startday=2]${color}${goto 631}| ${color0}[--datatype=DW --startday=3 --shortweekday]: ${color7}[--startday=3 --datatype=LT --hideunits --hidedegreesymbol] ${color9}[--startday=3 --datatype=HT --hideunits --hidedegreesymbol]${color} P: [--datatype=PC --startday=3] ${color8}[--datatype=DL --startday=3]${color}${goto 841}| ${color0}[--datatype=DW --startday=4 --shortweekday]: ${color7}[--startday=4 --datatype=LT --hideunits --hidedegreesymbol] ${color9}[--startday=4 --datatype=HT --hideunits --hidedegreesymbol]${color} P: [--datatype=PC --startday=4] ${color8}[--datatype=DL --startday=4]${color}${goto 1051}| Rise:${color8}[--datatype=SR]${color}  Set:${color1}[--datatype=SS] ${color}
  [--datatype=CC --night]${goto 211}| [--datatype=CC --night --startday=1]${goto 421}| [--datatype=CC --night --startday=2]${goto 631}| [--datatype=CC --night --startday=3]${goto 841}| [--datatype=CC --night --startday=4]${goto 1051}| ${if_match "${exec conkyForecast-SunsetSunriseCountdown --location=ARBA0009 -t}"=="Sunrise"}${color1}${else}${color8}${endif}${exec conkyForecast-SunsetSunriseCountdown --location=ARBA0009 -t} in:${goto 1141}${exec conkyForecast-SunsetSunriseCountdown --location=ARBA0009}${voffset -10}


The real reason for this post.

That very last call: ${voffset -10} is something I stumbled upon yesterday when doing this - and may help a lot of people that have large empty spaces at the bottom of their conky they don't want.

Here's a composite image of the conky with and without that voffset.
Image

And just to make sure ... I tested another ... this required a ${voffset -20}
Image

You be the judge if this works or not. :wink:
#! pushed to Debian SID & OpenBox
Conky PitStop
Sector11
Level 1
Level 1
 
Posts: 43
Joined: Mon Nov 22, 2010 10:33 am

Re: Conky Showoff thread

Postby Habitual on Mon May 16, 2011 8:45 pm

Nice job Sector11!

Not to be outdone, here's my "text-based weather" forecast.sh (c-li rules)
Sadly, I have to wait for that version to be ported to OpenSUSE.
I made this with conkyForecast v.2.18

It splits my gnome-terminal into 4 quadrants, One for each upcoming day.

Code: Select all
#!/bin/bash
# 4 Day Weather forecast script for Boardman, OH
# Written by John Jones
# 11.01.2010 12:10:07

# Clear the screen
tput clear
 
# Tomorrow...(Top-Left Quadrant of output)
tput cup 0 0
echo "Forecast for" `date --date="1 day" | awk '{print $1 ", " $2 " "$3 "  "$6}'`
tput cup 1 0
echo "----------------------------"
tput cup 2 0
echo "Low: " `/usr/share/conkyforecast/conkyForecast.py --location=USOH1096 -d LT --imperial --startday 1`
tput cup 3 0
echo "High:" `/usr/share/conkyforecast/conkyForecast.py --location=USOH1096 -d HT --imperial --startday 1`
tput cup 4 0
echo "Humidity:" `/usr/share/conkyforecast/conkyForecast.py --location=USOH1096 -d HM  --imperial --startday 1`
tput cup 5 0
echo `/usr/share/conkyforecast/conkyForecast.py --location=USOH1096 -d CT --startday 1`
tput cup 6 0
tput bold; tput setaf 1;
echo "Precipitation:" `/usr/share/conkyforecast/conkyForecast.py --location=USOH1096 -d PC --startday 1`
tput sgr0

# Tomorrow +1...(Top-Right Quadrant of output)
tput cup 0 40
echo "Forecast for" `date --date="2 day" | awk '{print $1 ", " $2 " "$3 "  "$6}'`
tput cup 1 40
echo "----------------------------"
tput cup 2 40
echo "Low: " `/usr/share/conkyforecast/conkyForecast.py --location=USOH1096 -d LT --imperial --startday 2`
tput cup 3 40
echo "High:" `/usr/share/conkyforecast/conkyForecast.py --location=USOH1096 -d HT --imperial --startday 2`
tput cup 4 40
echo "Humidity:" `/usr/share/conkyforecast/conkyForecast.py --location=USOH1096 -d HM  --imperial --startday 2`
tput cup 5 40
echo `/usr/share/conkyforecast/conkyForecast.py --location=USOH1096 -d CT --startday 2`
tput cup 6 40
tput bold; tput setaf 1;
echo "Precipitation:" `/usr/share/conkyforecast/conkyForecast.py --location=USOH1096 -d PC --startday 2`
tput sgr0

# Tomorrow +2...(Bottom-Left Quadrant of output)
tput cup 9 0
echo "Forecast for" `date --date="3 day" | awk '{print $1 ", " $2 " "$3 "  "$6}'`
tput cup 10 0
echo "----------------------------"
tput cup 11 0
echo "Low: " `/usr/share/conkyforecast/conkyForecast.py --location=USOH1096 -d LT --imperial --startday 3`
tput cup 12 0
echo "High:" `/usr/share/conkyforecast/conkyForecast.py --location=USOH1096 -d HT --imperial --startday 3`
tput cup 13 0
echo "Humidity:" `/usr/share/conkyforecast/conkyForecast.py --location=USOH1096 -d HM  --imperial --startday 3`
tput cup 14 0
echo `/usr/share/conkyforecast/conkyForecast.py --location=USOH1096 -d CT --startday 3`
tput cup 15 0
tput bold; tput setaf 1;
echo "Precipitation:" `/usr/share/conkyforecast/conkyForecast.py --location=USOH1096 -d PC --startday 3`
tput sgr0

# Tomorrow +3...(Bottom-Right Quadrant of output)
tput cup 9 40
echo "Forecast for" `date --date="4 day" | awk '{print $1 ", " $2 " "$3 "  "$6}'`
tput cup 10 40
echo "----------------------------"
tput cup 11 40
echo "Low: " `/usr/share/conkyforecast/conkyForecast.py --location=USOH1096 -d LT --imperial --startday 4`
tput cup 12 40
echo "High:" `/usr/share/conkyforecast/conkyForecast.py --location=USOH1096 -d HT --imperial --startday 4`
tput cup 13 40
echo "Humidiy:" `/usr/share/conkyforecast/conkyForecast.py --location=USOH1096 -d HM  --imperial --startday 4`
tput cup 14 40
echo `/usr/share/conkyforecast/conkyForecast.py --location=USOH1096 -d CT --startday 4`
tput cup 15 40
tput bold; tput setaf 1;
echo "Precipitation:" `/usr/share/conkyforecast/conkyForecast.py --location=USOH1096 -d PC --startday 4`
tput sgr0

tput cup 17 0
What's a landing but a take off in reverse?
My DorkBlog
User avatar
Habitual
Level 8
Level 8
 
Posts: 2053
Joined: Sun Nov 21, 2010 8:31 pm
Location: Undecided

Re: Conky Showoff thread

Postby ackernan on Sun Jun 05, 2011 7:02 am

Here's my conky. It has a cool 3-dial clock written by mrpeachy.
Workspace 4_023.png
Workspace 4_023.png (711.76 KiB) Viewed 6171 times


Code: Select all
######################
# - Conky settings - #
######################

background yes
update_interval 1
 
cpu_avg_samples 2
 
override_utf8_locale yes
 
double_buffer yes
no_buffers yes
 
text_buffer_size 10240
#imlib_cache_size 0

gap_x 10
gap_y 5
minimum_size 250 900
#####################
# - Text settings - #
#####################
use_xft yes
xftfont Santana:size=9:style=bold
xftalpha 0.8
 
uppercase no

#############################
# - Window specifications - #
#############################
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

border_inner_margin 0
border_outer_margin 0

#########################
# - Graphics settings - #
#########################
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

temperature_unit fahrenheit

default_color ffffff

# Text alignment, other possible values are commented
#alignment middle_left
#alignment middle_middle
#alignment middle_right
#alignment top_middle
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
#alignment bottom_middle

####
## Load Lua for bargraphs (required)
## Set the path to your script here.
#
lua_load ~/.conky/new/bg.lua
#lua_draw_hook_pre draw_bg

lua_load ~/.conky/new/clock-dials.lua
lua_draw_hook_post draw_fig           

TEXT
${lua conky_draw_bg}
#
#System info
#
${image /usr/share/icons/hicolor/48x48/mimetypes/application-x-mint.png -p 13,0}
${voffset -30}${goto 60} ${nodename}
${goto 60} ${sysname} ${kernel} on ${machine}
${goto 60} ${uptime}
#
#Processor info
#
${image /usr/share/hardinfo/pixmaps/processor.png -p 13,190 -s 48x48}
${voffset 105}${goto 60}${freq}MHz   Load: ${color #88ECE0}${loadavg}${color}
${goto 60}Core 1 Usage:${color} ${color #DFEC88}${cpu cpu1}% ${color} ${cpubar cpu1}
${goto 60}Core 2 Usage:${color} ${color #DFEC88}${cpu cpu2}% ${color} ${cpubar cpu2}
${goto 60}Core 3 Usage:${color} ${color #DFEC88}${cpu cpu3}% ${color} ${cpubar cpu3}
${goto 60}Core 4 Usage:${color} ${color #DFEC88}${cpu cpu4}% ${color} ${cpubar cpu4}
${goto 60}CPU Temp: ${color #88ECE0}${acpitemp}° F${color}
#
#Memory info
#
${image /usr/share/hardinfo/pixmaps/memory.png -p 13,260 -s 48x48}
${goto 60}RAM:   ${memperc}% ${membar}
${goto 60}Swap:  ${swapperc}%   ${swapbar}
#
#Disk info
#
${image /usr/share/hardinfo/pixmaps/hdd.png -p 10,330 -s 48x48}
${goto 60}Root:   ${fs_size /} ${alignr}${fs_free /} free
${goto 60}Home:  ${fs_size /home} ${alignr}${fs_free /home} free
${goto 60}${if_existing /media/Linux}Linux:  ${fs_size /media/Linux} ${alignr}${fs_free /media/Linux} free${else}Linux:  Not Mounted${endif}
${goto 60}${if_existing /media/Stuff}Stuff:  ${fs_size /media/Stuff} ${alignr}${fs_free /media/Stuff} free${else}Stuff:   Not mounted${endif}
${goto 60}Disk temp: ${color #88ECE0}${execi 300 hddtemp -u f /dev/sda | cut -c 35-40}${color}
#
#Network info
#
${image /usr/share/hardinfo/pixmaps/network.png -p 5,415 -s 36x36}
${image /usr/share/hardinfo/pixmaps/wireless.png -p 20,435 -s 36x36}
${if_up wlan0}${voffset -20}${goto 60}${font size=12}D-Link Wireless${font}
${goto 60}Internal IP: ${addr wlan0}
${goto 60}External IP: ${exec wget -q -O - checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'}
${goto 60}${downspeedgraph wlan0 25,100 110000 520000 -t} ${upspeedgraph wlan0 25,100 001100 005200 -t}
${voffset -40}${goto 60}Down ${downspeedf wlan0}${alignr}Total Dn ${totaldown wlan0}
${goto 60}UP       ${upspeedf wlan0}${alignr}Total UP ${totalup wlan0}
#
${else}${if_up eth0}${voffset -20}${goto 60}${font style=bold}${font}
${goto 60}Internal IP: ${addr eth0}
${goto 60}External IP: ${exec wget -q -O - checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'}
${goto 60}${downspeedgraph eth0 25,100 110000 520000 -t} ${upspeedgraph eth0 25,100 001100 005200 -t}
${voffset -40}${goto 60}Down ${downspeedf eth0}${alignr}Total Dn ${totaldown eth0}
${goto 60}UP       ${upspeedf eth0}${alignr}Total UP ${totalup eth0}${endif}${endif}
#
#Weather info
#
${execpi 1800 conkyForecast -i --template=~/.conky/new/conkyForecast.template}
Attachments
11-2-ackernan-2.tar.gz
Conky/lua files, fonts, & readme.
(6.36 KiB) Downloaded 135 times
ackernan
Level 1
Level 1
 
Posts: 18
Joined: Sun Dec 19, 2010 8:39 am

Re: Conky Showoff thread

Postby Sector11 on Sun Jun 05, 2011 4:08 pm

Sometimes things are just too good not to be seen. Like conkyForecast with colours!

And this has to be seen to be appreciated, the background LUA originally by londonali1010 (2009) as modified by dk75 and mrpeachy. dk75 added the ability to set variables and mrpeachy the ability to set any size. As you see this has a combination of affects. All mrpeachy's ideas, I'm just expanding on it here.

Done in the conky not the LUA script.... NICE!
Image

This background LUA script is great! The first layer is the complete semi-transparent black background with rounded corners set at an alpha level of 0.4.

The next comes the blocks of colours for various sections of the conky. Here the different days are just a ripe choice for that, I've set their alpha level at 0.2 for this example.

Now some the little white boxes for the images set and positioned very similar to the way the ${image} command works I found that they are out by a few pixels, but close enough that the "-p xx,xx" portion of the images will get you close enough to make the final adjustments.

I have alpha setting set to 0.1 and 0.2 under HOY for today's weather image and the moon. Under Lunes: 0.3, Martes: 0.4 and Míercoles:0.5 just to show various affects. Lunes, Martes and Míercoles started showing rounded corners on the white boxes as well, values of 2,3 and 4 respectively.

Different backgrounds:
Image
Yea, that's nice. Thank you londonali101, dk75 and mrpeachy

the LUA script:
Code: Select all
--[[Background originally by londonali1010 (2009)
    ability to set any size for background mrpeachy 2011
    ability to set variables for bg in conkyrc dk75

the conky bits that matter (sample):
_ _ _ _ _ _ _ _ _ _
lua_load ~/lua/background.lua

TEXT
${lua conky_draw_bg 10 100 100 100 100 0x000000 0.2}
${lua conky_draw_bg 10 200 200 100 100 0x000000 0.2}
${lua conky_draw_bg 10 100 300 100 100 0x000000 0.2}

#${lua conky_draw_bg corner_radius x_position y_position width height color alpha}

${execpi 1800 conkyForecast --template=~/lua/test.template}
_ _ _ _ _ _ _ _ _ _
test template:
_ _ _ _ _ _ _ _ _ _
${image [--datatype=WI --startday=1]  -p 100,100 -s 90x90}
${image [--datatype=WI --startday=2]  -p 200,200 -s 90x90}
${image [--datatype=WI --startday=3]  -p 100,300 -s 90x90}
${image [--datatype=WI --startday=4]  -p 200,400 -s 90x90}
_ _ _ _ _ _ _ _ _ _

or you can have one background over the whole window
and others to highlight parts of the conky
_ _ _ _ _ _ _ _ _ _
TEXT
${lua conky_draw_bg 50 0 0 400 800 0x000000 0.2} # whole background
${lua conky_draw_bg 20 100 100 100 100 0x000000 0.2} # dark shade
${lua conky_draw_bg 0 200 200 100 100 0xffffff 0.2} # light square
${lua conky_draw_bg 50 100 300 100 100 0xff0000 0.2} # red circle
_ _ _ _ _ _ _ _ _ _

]]

require 'cairo'
local    cs, cr = nil
function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end
function conky_draw_bg(r,x,y,w,h,color,alpha)
if conky_window == nil then return end
if cs == nil then cairo_surface_destroy(cs) end
if cr == nil then cairo_destroy(cr) end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
local cr = cairo_create(cs)
cairo_set_source_rgba (cr,rgb_to_r_g_b(color,alpha))
--top left mid circle
local xtl=x+r
local ytl=y+r
--top right mid circle
local xtr=(x+r)+((w)-(2*r))
local ytr=y+r
--bottom right mid circle
local xbr=(x+r)+((w)-(2*r))
local ybr=(y+r)+((h)-(2*r))
--bottom right mid circle
local xbl=(x+r)
local ybl=(y+r)+((h)-(2*r))
-----------------------------
cairo_move_to (cr,xtl,ytl-r)
cairo_line_to (cr,xtr,ytr-r)
cairo_arc(cr,xtr,ytr,r,((2*math.pi/4)*3),((2*math.pi/4)*4))
cairo_line_to (cr,xbr+r,ybr)
cairo_arc(cr,xbr,ybr,r,((2*math.pi/4)*4),((2*math.pi/4)*1))
cairo_line_to (cr,xbl,ybl+r)
cairo_arc(cr,xbl,ybl,r,((2*math.pi/4)*1),((2*math.pi/4)*2))
cairo_line_to (cr,xtl-r,ytl)
cairo_arc(cr,xtl,ytl,r,((2*math.pi/4)*2),((2*math.pi/4)*3))
cairo_close_path(cr)
cairo_fill (cr)
------------------------------------------------------------
cairo_surface_destroy(cs)
cairo_destroy(cr)
return ""
end

I took the liberty of adding some instructions to the top.

And what I use in the conky for this example:

Code: Select all
####################################
 border_inner_margin 2
# border_outer_margin 0
####################################
 lua_load ~/Conky/LUA/m-bg.lua
# ${lua conky_draw_bg 50 100 0 400 20 0x000000 0.2}
# ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
TEXT
${lua conky_draw_bg 30 0 0 90 920 0x000000 0.4}\
${lua conky_draw_bg 0 0 21 90 200 0xff0000 0.2}${lua conky_draw_bg 0 5 24 40 40 0xffffff 0.1}${lua conky_draw_bg 0 56 24 16 16 0xffffff 0.2}\
${lua conky_draw_bg 0 0 221 90 97 0xffff00 0.2}${lua conky_draw_bg 2 6 247 40 40 0xffffff 0.3}\
${lua conky_draw_bg 0 0 320 90 97 0x0000ff 0.2}${lua conky_draw_bg 3 6 341 40 40 0xffffff 0.4}\
${lua conky_draw_bg 4 6 443 40 40 0xffffff 0.5}\
${execpi 1800 conkyForecast --location=ARBA0009 --template=~/Conky/templates/ob_mb_weather.template}


The \ that you see on the ends of the lines confuses conky into thinking it's all one line. Easier to code that way.
#! pushed to Debian SID & OpenBox
Conky PitStop
Sector11
Level 1
Level 1
 
Posts: 43
Joined: Mon Nov 22, 2010 10:33 am

Re: Conky Showoff thread

Postby zacklyke on Tue Jun 14, 2011 7:52 pm

This is taken from a somewhat existing layout. I'll be changing the large clock font up and I'm going to have email and RSS feeds in the space between the Banshee track and weather. I like integrating conky with the desktop behind it. Gives it kind of a zen feel, eh? I just wanted to upload with my progress. When it's done I'll share code / files / etc.

Image
User avatar
zacklyke
Level 1
Level 1
 
Posts: 41
Joined: Thu Oct 28, 2010 6:36 pm

Re: Conky Showoff thread

Postby grimdestripador on Wed Jun 15, 2011 12:26 pm

But wheres the code?

zacklyke wrote:This is taken from a somewhat existing layout. I'll be changing the large clock font up and I'm going to have email and RSS feeds in the space between the Banshee track and weather. I like integrating conky with the desktop behind it. Gives it kind of a zen feel, eh? I just wanted to upload with my progress. When it's done I'll share code / files / etc.

Image
User avatar
grimdestripador
Level 6
Level 6
 
Posts: 1069
Joined: Fri Feb 16, 2007 2:26 am

Re: Conky Showoff thread

Postby Sector11 on Wed Jun 15, 2011 1:06 pm

Image
Image Shack does not like me!
#! pushed to Debian SID & OpenBox
Conky PitStop
Sector11
Level 1
Level 1
 
Posts: 43
Joined: Mon Nov 22, 2010 10:33 am

Re: Conky Showoff thread

Postby Nexus on Wed Jun 15, 2011 8:52 pm

http://twitpic.com/5c44uv
Just finished setting it up, I took this conky setup and added a gmail notifier, nothing difficult but it looks great.

Once Photobucket is finished with maintenance I'll get a decent image stuck on here...

Ok here we go...
Image


***Edit***

Did some overhauling of the Desktop and Conky...

Image

I've uploaded it to Gnome-look.org
http://gnome-look.org/content/show.php/ ... ent=142867
User avatar
Nexus
Level 2
Level 2
 
Posts: 83
Joined: Wed Mar 10, 2010 2:45 am

Linux Mint is funded by ads and donations.
 
PreviousNext

Return to Compiz, Conky, Docks, & Widgets

Who is online

Users browsing this forum: No registered users and 4 guests