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.
Locked
Sector11

Re: Conky Showoff thread

Post by Sector11 »

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

Re: Conky Showoff thread

Post by Sector11 »

Habitual wrote:Sector11?
Man, they let anybody in here. :roll:
No kidding - your here. :lol:

How ya doing?
Sector11

Re: Conky Showoff thread

Post by Sector11 »

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

Re: Conky Showoff thread

Post by ackernan »

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...
phredbull
Level 1
Level 1
Posts: 42
Joined: Wed Dec 01, 2010 8:55 pm
Location: Chicago, IL, USA
Contact:

Re: Conky Showoff thread

Post by phredbull »

Here's mine:
ConkyScreenshot.png
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
-Windows XP
Ext. HD
-Mint Isadora Fluxbox
USB stick
-#! Statler
zooks

Re: Conky Showoff thread

Post by zooks »

My conky on the default Mint desktop background with minty green bars. Very minimal and nothing fancy.
conky.png

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}
Sector11

Re: Conky Showoff thread

Post by Sector11 »

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:
Habitual

Re: Conky Showoff thread

Post by Habitual »

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
ackernan

Re: Conky Showoff thread

Post by ackernan »

Here's my conky. It has a cool 3-dial clock written by mrpeachy.
Workspace 4_023.png

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}
Sector11

Re: Conky Showoff thread

Post by Sector11 »

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

Re: Conky Showoff thread

Post by zacklyke »

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: 1051
Joined: Fri Feb 16, 2007 2:26 am

Re: Conky Showoff thread

Post by grimdestripador »

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
Sector11

Re: Conky Showoff thread

Post by Sector11 »

Image
Image Shack does not like me!
Nexus

Re: Conky Showoff thread

Post by Nexus »

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
phredbull
Level 1
Level 1
Posts: 42
Joined: Wed Dec 01, 2010 8:55 pm
Location: Chicago, IL, USA
Contact:

Re: Conky Showoff thread

Post by phredbull »

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
Very nice; I like non-standard looking, original Conkys. I also like to see Conky integrated with the wallpaper, but it's not easy to find an image that works with Conky and the rest of the desktop.

Here's an old screenshot; note, the arcs above the system and wireless sections are .lua rings...
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
-Windows XP
Ext. HD
-Mint Isadora Fluxbox
USB stick
-#! Statler
hydn

Re: Conky Showoff thread

Post by hydn »

conky_only.png
Screenshot_conky.png

Code: Select all

background yes
own_window yes
own_window_type override
own_window_transparent yes
#own_window_argb_visual yes
#own_window_argb_value 100
font Sans:size=9
#xftfont Sans:size=10
use_xft yes
xftalpha 0.3
update_interval 5
total_run_times 0
double_buffer yes
minimum_size 200 5
maximum_width 200
draw_outline yes
draw_graph_borders no
alignment top_right
gap_x 4
gap_y 10


TEXT
${color #7f9ead}System ${hr 1}${color}
${color #94b94a}uptime: ${color #eaec8a}$alignr$uptime
${color #94b94a}hostname: ${color #eaec8a}$alignr$nodename
${color #94b94a}kernel: ${color #eaec8a}$alignr$kernel
${color #94b94a}core temp: ${color #eaec8a}${alignr}${hwmon tempf 1}F

${color #7f9ead}CPU ${hr 1}${color}
${color #eaec8a}$alignr $cpu%
${color #94b94a}${cpugraph ffffff 7f9ead} ${color #eaec8a}
${color #94b94a}core0 ${color #eaec8a}${alignr}${cpu cpu1}%
${cpubar 4 cpu1}
${color #94b94a}core1 ${color #eaec8a}${alignr}${cpu cpu2}%
${cpubar 4 cpu2}

${color #94b94a}highest cpu $alignr cpu% mem%
${color #eaec8a}${top name 1}$alignr${top cpu 1}   ${top mem 1}
${top name 2}$alignr${top cpu 2}   ${top mem 2}
${top name 3}$alignr${top cpu 3}   ${top mem 3}

${color #7f9ead}Memory${hr 1}${color}
${color #eaec8a} ${alignr}$mem
${color #94b94a}${memgraph 25,200 ffffff 7f9ead} 
4GiB ram ${color #eaec8a}${alignr}$memperc%
${membar 4}
${color #94b94a}2GiB swap ${color #eaec8a}${alignr}$swapperc%
${swapbar 4}

${color #94b94a}highest mem $alignr cpu% mem%
${color #eaec8a}${top_mem name 1}$alignr${top_mem cpu 1}   ${top_mem mem 1}
${top_mem name 2}$alignr${top_mem cpu 2}   ${top_mem mem 2}
${top_mem name 3}$alignr${top_mem cpu 3}   ${top_mem mem 3}

${color #7f9ead}SSD ${hr 1}${color}
${color #eaec8a}${alignr}$diskio
${color #94b94a}${diskiograph /dev/sda1 25,200 ffffff 7f9ead}
${color #94b94a}root ${color #eaec8a}${alignr}${fs_free /} / ${fs_size /}
${fs_bar 4 /}

${color #7f9ead}Network ${hr 1}${color}
$alignr ${color #94b94a}signal ${color #eaec8a}${wireless_link_qual_perc wlan0}%
${wireless_link_bar 4 wlan0}

${color #94b94a}internal ip: ${color #eaec8a}${alignr}${addr wlan0}
${color #94b94a}external ip: ${color #eaec8a}${alignr}${execi 3600 wget -O - http://ip.tupeux.com | tail}

${color #94b94a}down ${color #eaec8a}${downspeed wlan0} k/s ${color #94b94a}${alignr}total ${color #eaec8a}${totaldown wlan0}
${color #94b94a}${downspeedgraph wlan0 25,200 ffffff 7f9ead} 
up ${color #eaec8a}${upspeed wlan0} k/s ${color #94b94a}${alignr}total ${color #eaec8a}${totalup wlan0}
${color #94b94a}${upspeedgraph wlan0 25,200 ffffff 7f9ead}
Last edited by hydn on Tue Jul 05, 2011 12:20 am, edited 4 times in total.
vrkalak

Re: Conky Showoff thread

Post by vrkalak »

** Come on, guys . . . same Forum Rules apply here, as apply over there.

Reminder from the Forum Staff:

Please continue to use clickable-thumbnails linking to the larger image -- to help those with slower connections.

An example of the BBC code needed is below. Most image hosting sites will automatically generate 'clickable-thumbnails' for you, as well.

Code: Select all

[url=http://link.to.your.fullsized.image][img]http://link.to.your.thumbnail.image[/img][/url]
Thanks you for your continued support of LinuxMint.
zacklyke

Re: Conky Showoff thread

Post by zacklyke »

Cheers, phred that's some awesome use of the desktop. And that's some great work, hydn. I'm working on a very, very green version of that conky based off of one of the Linux Mint 11 standard backgrounds. Once that is done in a few I'll have some time to create the long post with all the code.

Be back in a few, ha.
phredbull
Level 1
Level 1
Posts: 42
Joined: Wed Dec 01, 2010 8:55 pm
Location: Chicago, IL, USA
Contact:

Re: Conky Showoff thread

Post by phredbull »

@ vrkalak: Sorry, I just automatically used the "attachment" forum tool, as I would on any other forum. Come to think of it, these forums do get really slow sometimes. I'll use a 3rd party pic host from now on...

@ Zach: Thanks! I also posted a minty green desktop & Conky a page back.

I'll keep watching this thread...
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
-Windows XP
Ext. HD
-Mint Isadora Fluxbox
USB stick
-#! Statler
Locked

Return to “Compiz, Conky, Docks & Widgets”