You are not logged in.

#651 2011-01-28 18:47:37

JokerBoy
Member
From: România
Registered: 2009-09-24
Posts: 641
Website

Re: conky configs and screenshots!

indeed. mind sharing those conkyrc's? tongue

Offline

#652 2011-01-28 19:19:34

Zom
Member
From: Sweden
Registered: 2007-10-27
Posts: 406

Re: conky configs and screenshots!

JokerBoy wrote:

indeed. mind sharing those conkyrc's? tongue

Already did, back here: https://bbs.archlinux.org/viewtopic.php … 01#p880001 smile

It's basically the same conkys for both my laptop and my workstation, only difference is the main colour.

This is the code I use to render the dark box behind the clock conky. The link I posted has more info on tweaking it for the other conkys, but you pretty much only need to change the w and h variables.

--[[BOX WIDGET v1.1 by Wlourf 27/01/2011
This widget can drawn some boxes, even circles in your conky window
http://u-scripts.blogspot.com/2011/01/box-widget.html)

Inspired by Background by londonali1010 (2009), thanks ;-) 

The parameters (all optionals) are :
x           - x coordinate of top-left corner of the box, default = 0 = (top-left corner of conky window)
y           - y coordinate of top-left corner of the box, default = 0 = (top-left corner of conky window)
w           - width of the box, default = width of the conky window
h           - height of the box, default = height of the conky window
corners     - corners is a table for the four corners in this order : top-left, top-right,bottom-right, bottom-left
              each corner is defined in a table with a shape and a radius, available shapes are : "curve","circle","line"
              example for the same shapes for all corners:
              { {"circle",10} }
              example for first corner different from the three others
              { {"circle",10}, {"circle",5}  }              
              example for top corners differents from bottom corners
              { {"circle",10}, {"circle",10}, {"line",0}  }   
              default = { {"line",0} } i.e=no corner
operator    - set the compositing operator (needs in the conkyrc : own_window_argb_visual yes)                          
              see http://cairographics.org/operators/
              available operators are :
              "clear","source","over","in","out","atop","dest","dest_over","dest_in","dest_out","dest_atop","xor","add","saturate"
              default = "over"
border      - if border>0, the script draws only the border, like a frame, default=0
dash        - if border>0 and dash>0, the border is draw with dashes, default=0
skew_x      - skew box around x axis, default = 0
skew_y      - skew box around y axis, default = 0
scale_x     - rescale the x axis, default=1, useful for drawing elipses ...
scale_y     - rescale the x axis, default=1
angle        - angle of rotation of the box in degrees, default = 0
              i.e. a horizontal graph
rot_x       - x point of rotation's axis, default = 0,
              relative to top-left corner of the box, (not the conky window)
rot_y       - y point of rotation's axis, default = 0              
              relative to top-left corner of the box, (not the conky window)
draw_me     - if set to false, box is not drawn (default = true or 1)
              it can be used with a conky string, if the string returns 1, the box is drawn :
              example : "${if_empty ${wireless_essid wlan0}}${else}1$endif",              
              
linear_gradient - table with the coordinates of two points to define a linear gradient,
                  points are relative to top-left corner of the box, (not the conky window)
                  {x1,y1,x2,y2}
radial_gradient - table with the coordinates of two circle to define a radial gradient,
                  points are relative to top-left corner of the box, (not the conky window)
                  {x1,y1,r1,x2,y2,r2} (r=radius)
colour      - table of colours, default = plain white {{1,0xFFFFFF,0.5}}
              this table contains one or more tables with format {P,C,A}
              P=position of gradient (0 = start of the gradient, 1= end of the gradient)
              C=hexadecimal colour 
              A=alpha (opacity) of color (0=invisible,1=opacity 100%)
              Examples :
              for a plain color {{1,0x00FF00,0.5}}
              for a gradient with two colours {{0,0x00FF00,0.5},{1,0x000033,1}}        {x=80,y=150,w=20,h=20,
        radial_gradient={20,20,0,20,20,20},
        colour={{0.5,0xFFFFFF,1},{1,0x000000,0}},
              or {{0.5,0x00FF00,1},{1,0x000033,1}} -with this one, gradient will start in the middle
              for a gradient with three colours {{0,0x00FF00,0.5},{0.5,0x000033,1},{1,0x440033,1}}
              and so on ...



To call this script in Conky, use (assuming you have saved this script to ~/scripts/):
    lua_load ~/scripts/box.lua
    lua_draw_hook_pre main_box
    
And leave one line blank or not after TEXT

Changelog:
+ v1.0 -- Original release (19.12.2010)
+ v1.1 -- Adding parameters: operator, dash, angle, skew_x, skew_y, draw_me
          corners are described in a table

--      This program is free software; you can redistribute it and/or modify
--      it under the terms of the GNU General Public License as published by
--      the Free Software Foundation version 3 (GPLv3)
--     
--      This program is distributed in the hope that it will be useful,
--      but WITHOUT ANY WARRANTY; without even the implied warranty of
--      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
--      GNU General Public License for more details.
--     
--      You should have received a copy of the GNU General Public License
--      along with this program; if not, write to the Free Software
--      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
--      MA 02110-1301, USA.        


]]

  
require 'cairo'
    
function conky_main_box()

    if conky_window==nil then return end
    
    ---------------------- PARAMETERS BEGIN HERE
    local boxes_settings={
        {x=0, y=0,w=106,h=106,
        colour={ {0,0x151713,0.4} },
        corners={ {"",0}, {"circle",10}, {"",0}, {"",0},}
        },
    }

    ---------------------------- PARAMETERS END HERE
    
    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)
    
    if tonumber(conky_parse("$updates"))<5 then return end
    for i in pairs(boxes_settings) do
        draw_box (cr,boxes_settings[i])
    end
    cairo_destroy(cr)
    cairo_surface_destroy(cs)    
end

    
function draw_box(cr,t)

    if t.draw_me == true then t.draw_me = nil end
    if t.draw_me ~= nil and conky_parse(tostring(t.draw_me)) ~= "1" then return end    

    local table_corners={"circle","curve","line"}

    local t_operators={
        clear   = CAIRO_OPERATOR_CLEAR,
        source  = CAIRO_OPERATOR_SOURCE,
        over    = CAIRO_OPERATOR_OVER,
        ["in"]      = CAIRO_OPERATOR_IN,
        out     = CAIRO_OPERATOR_OUT,
        atop    = CAIRO_OPERATOR_ATOP,
        dest    = CAIRO_OPERATOR_DEST,
        dest_over   = CAIRO_OPERATOR_DEST_OVER,
        dest_in = CAIRO_OPERATOR_DEST_IN,
        dest_out = CAIRO_OPERATOR_DEST_OUT,
        dest_atop = CAIRO_OPERATOR_DEST_ATOP,
        xor = CAIRO_OPERATOR_XOR,
        add = CAIRO_OPERATOR_ADD,
        saturate =  CAIRO_OPERATOR_SATURATE,
    }
        
    function rgba_to_r_g_b_a(tc)
        --tc={position,colour,alpha}
        local colour = tc[2]
        local alpha = tc[3]
        return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
    end

    function table.copy(t)
      local t2 = {}
      for k,v in pairs(t) do
       t2[k] = {v[1],v[2]}
      end
      return t2
    end

    function draw_corner(num,t)
        local shape=t[1]
        local radius=t[2]
        local x,y = t[3],t[4]
        if shape=="line" then
            if num == 1 then cairo_line_to(cr,radius,0) 
                elseif num == 2 then cairo_line_to(cr,x,radius) 
                elseif num == 3 then cairo_line_to(cr,x-radius,y)
                elseif num == 4 then cairo_line_to(cr,0,y-radius)
            end
        end
        if shape=="circle" then
            local PI = math.pi
           if num == 1 then cairo_arc(cr,radius,radius,radius,-PI,-PI/2)
                elseif num == 2 then cairo_arc(cr,x-radius,y+radius,radius,-PI/2,0)
                elseif num == 3 then cairo_arc(cr,x-radius,y-radius,radius,0,PI/2) 
                elseif num == 4 then cairo_arc(cr,radius,y-radius,radius,PI/2,-PI)
            end
        end
        if shape=="curve" then
            if num == 1 then cairo_curve_to(cr,0,radius ,0,0 ,radius,0) 
                elseif num == 2 then cairo_curve_to(cr,x-radius,0, x,y, x,radius)
                elseif num == 3 then cairo_curve_to(cr,x,y-radius, x,y, x-radius,y)
                elseif num == 4 then cairo_curve_to(cr,radius,y, x,y, 0,y-radius)
            end
        end        
    end   

    --check values and set default values
    if t.x == nil then t.x = 0 end
    if t.y == nil then t.y = 0 end
    if t.w == nil then t.w = conky_window.width end
    if t.h == nil then t.h = conky_window.height end
    if t.radius == nil then t.radius = 0 end
    if t.border == nil then t.border = 0 end
    if t.colour==nil then t.colour={{1,0xFFFFFF,0.5}} end
    if t.linear_gradient ~= nil then 
        if #t.linear_gradient ~= 4 then
            t.linear_gradient = {t.x,t.y,t.width,t.height}
        end
    end 
    if t.angle==nil then t.angle = 0 end

    if t.skew_x == nil then t.skew_x=0  end
    if t.skew_y == nil then  t.skew_y=0 end
    if t.scale_x==nil then t.scale_x=1 end
    if t.scale_y==nil then t.scale_y=1 end    
    if t.rot_x == nil then t.rot_x=0  end
    if t.rot_y == nil then  t.rot_y=0 end
    
    if t.operator == nil then t.operator = "over" end
    if (t_operators[t.operator]) == nil then
        print ("wrong operator :",t.operator)
        t.operator = "over"
    end
    
    if t.radial_gradient ~= nil then 
        if #t.radial_gradient ~= 6 then
            t.radial_gradient = {t.x,t.y,0, t.x,t.y, t.width}
        end
    end 
    
    for i=1, #t.colour do    
        if #t.colour[i]~=3 then 
            print ("error in color table")
            t.colour[i]={1,0xFFFFFF,1} 
        end
    end

    if t.corners == nil then t.corners={ {"line",0} } end
    local t_corners = {}
    local t_corners = table.copy(t.corners)
    --don't use t_corners=t.corners otherwise t.corners is altered

    --complete the t_corners table if needed
    for i=#t_corners+1,4 do    
        t_corners[i]=t_corners[#t_corners]
        local flag=false
        for j,v in pairs(table_corners) do flag=flag or (t_corners[i][1]==v) end 
        if not flag then print ("error in corners table :",t_corners[i][1]);t_corners[i][1]="curve"  end
    end

    --this way :    
    --    t_corners[1][4]=x    
    --    t_corners[2][3]=y
    --doesn't work
    t_corners[1]={t_corners[1][1],t_corners[1][2],0,0}
    t_corners[2]={t_corners[2][1],t_corners[2][2],t.w,0}
    t_corners[3]={t_corners[3][1],t_corners[3][2],t.w,t.h}    
    t_corners[4]={t_corners[4][1],t_corners[4][2],0,t.h}        

    t.no_gradient = (t.linear_gradient == nil ) and (t.radial_gradient == nil )

    cairo_save(cr)
    cairo_translate(cr, t.x, t.y)
    if t.rot_x~=0 or t.rot_y~=0 or t.angle~=0 then
        cairo_translate(cr,t.rot_x,t.rot_y)
        cairo_rotate(cr,t.angle*math.pi/180)
        cairo_translate(cr,-t.rot_x,-t.rot_y)
    end
    if t.scale_x~=1 or t.scale_y~=1 or t.skew_x~=0 or t.skew_y~=0 then
        local matrix0 = cairo_matrix_t:create()
        tolua.takeownership(matrix0)
        cairo_matrix_init (matrix0, t.scale_x,math.pi*t.skew_y/180    , math.pi*t.skew_x/180    ,t.scale_y,0,0)
        cairo_transform(cr,matrix0)    
    end
    
    local tc=t_corners
    cairo_move_to(cr,tc[1][2],0)
    cairo_line_to(cr,t.w-tc[2][2],0)
    draw_corner(2,tc[2])
    cairo_line_to(cr,t.w,t.h-tc[3][2])
    draw_corner(3,tc[3])
    cairo_line_to(cr,tc[4][2],t.h)
    draw_corner(4,tc[4])
    cairo_line_to(cr,0,tc[1][2])
    draw_corner(1,tc[1])
    
    if t.no_gradient then
        cairo_set_source_rgba(cr,rgba_to_r_g_b_a(t.colour[1]))
    else
        if t.linear_gradient ~= nil then
            pat = cairo_pattern_create_linear (t.linear_gradient[1],t.linear_gradient[2],t.linear_gradient[3],t.linear_gradient[4])
        elseif t.radial_gradient ~= nil then
            pat = cairo_pattern_create_radial (t.radial_gradient[1],t.radial_gradient[2],t.radial_gradient[3],
                t.radial_gradient[4],t.radial_gradient[5],t.radial_gradient[6])
        end
        for i=1, #t.colour do
            cairo_pattern_add_color_stop_rgba (pat, t.colour[i][1], rgba_to_r_g_b_a(t.colour[i]))
        end
        cairo_set_source (cr, pat)
        cairo_pattern_destroy(pat)
    end 
     
    cairo_set_operator(cr,t_operators[t.operator]) 

    if t.border>0 then
        cairo_close_path(cr)
        if t.dash ~= nil then cairo_set_dash(cr, t.dash, 1, 0.0) end
        cairo_set_line_width(cr,t.border)
        cairo_stroke(cr)
    else
        cairo_fill(cr)
    end

    cairo_restore(cr)
end

Then just add this line to the desired conkyrc:

lua_load ~/.conky/clock-box.lua
lua_draw_hook_pre main_box

To get this working with the clock, you need to change the lua_draw_hook_pre to lua_draw_hook_post, like this:

lua_load ~/.conky/clock.lua
lua_draw_hook_post main_rings

(I hope this works right away this time...) smile

Last edited by Zom (2011-01-28 19:20:22)

Offline

#653 2011-01-28 20:12:08

Beelzebud
Member
From: Illinois, U.S.
Registered: 2010-07-16
Posts: 154

Re: conky configs and screenshots!

Well in this case my conky was positioned top/left, with a limit of 1920, so for me just counting the spaces to 1920 was the easiest method.   Can it be done with offset?  Sure, however goto was quicker for me, and achieved the results I needed.  Is there an issue with using GOTO that I'm not aware of?

Offline

#654 2011-01-28 22:50:39

Zom
Member
From: Sweden
Registered: 2007-10-27
Posts: 406

Re: conky configs and screenshots!

Beelzebud wrote:

Is there an issue with using GOTO that I'm not aware of?

Not that I know of, no. I just meant as a clarification. Critique, not criticism. smile

Offline

#655 2011-01-29 03:36:12

imatechguy
Arch Linux f@h Team Member
Registered: 2010-03-22
Posts: 66

Re: conky configs and screenshots!

After weeks of trolling Deviantart.com and a day or so waiting on the artists response I now have a cool desktop I really like, and the artist blessing to use it.  I normally don't like these darker images but there was something about this one I really liked.  The image is Rebirth by mrSHIROI and the original work may be found here: http://mrshiroi.deviantart.com/art/Rebi … e&qo=13628.  My screen would be nicely balanced without the F@H stats but I like to keep an eye on those and I don't find it too unbalancing with the text color scheme I'm using.  I use a cron job on my file server to copy the unitinfo.txt files for the smp and gpu clients as well as the output of "cat /proc/mdstat" to individual files on the share drive that the conky script picks up.

The only things I'm still not satisfied with right now are the ?line breaks? (carriage returns) in the unitinfo.txt file for the gpu clients.  I haven't figured out how to permanently get rid of them yet but when I do I'll finally be satisfied.

desktopcurrent.th.png

MAIN CONKY

# Main Conky configuration
background yes
use_xft yes
xftfont Monospace:size=10
xftalpha 0.8
out_to_console no
update_interval 2
total_run_times 0
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 290
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
stippled_borders 5
#border_margin 4
default_color grey
default_shade_color black
default_outline_color black
alignment top_right
gap_x 15
gap_y 10
no_buffers no
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer none


TEXT
${color #F39DFE}$alignc$sysname $kernel on $machine
${color #F39DFE}$alignc${exec whoami} @ $nodename
${color #F39DFE}$alignc Uptime: $uptime

${color #F39DFE}Date: ${color #FFFFFF}${time %A,%d %B}${alignr}${color #F39DFE}Time: ${color #FFFFFF}${time %k:%M:%S}

${color #F39DFE}MONITORS:${stippled_hr}${color #FFFFFF}
#${color orange}FANS:${stippled_hr}${color #FFFFFF}
${alignc}${color #F39DFE} CPU_clock:  ${color #FFFFFF}${freq cpu1} Mhz
${alignc}${color #F39DFE} CPU_fan:  ${color #FFFFFF}${hwmon 2 fan 1} rpm
${alignc}${color #F39DFE} Front_fan:  ${color #FFFFFF}${hwmon 2 fan 3} rpm 
   
${color #F39DFE}CPU_0${color #FFFFFF}         ${cpu cpu1}%       $alignr${hwmon 0 temp 1}°C              $alignr${cpubar cpu1 7,75}
${color #F39DFE}CPU_1${color #FFFFFF}         ${cpu cpu2}%       $alignr${hwmon 1 temp 1}°C              $alignr${cpubar cpu2 7,75}
${color #F39DFE}RAM${color #FFFFFF}        $memperc%    ${alignr}$mem/$memmax        ${alignr}${membar 7,75}
${color #F39DFE}/${color #FFFFFF}          ${fs_used_perc /}%    ${alignr}${fs_used /}/${fs_size /}        ${alignr}${fs_bar 7,75 /}
${color #F39DFE}/home${color #FFFFFF}         ${fs_used_perc /home}%    ${alignr}${fs_used /home}/${fs_size /home}         ${alignr}${fs_bar 7,75 /home}
${color #F39DFE}/mnt/data${color #FFFFFF}     ${fs_used_perc /mnt/data/}%    ${alignr}${fs_used /mnt/data/}/${fs_size /mnt/data/}        ${alignr}${fs_bar 7,75 /mnt/data/} 

${color #F39DFE}Disk Read:  ${color #FFFFFF}$diskio_read    ${alignr}${color #F39DFE}Disk Write:  ${color #FFFFFF}$diskio_write

${color #F39DFE}NETWORK: $stippled_hr
#${font Monospace:normal:size=13}  Firewall Status ${alignr}${if_existing  /var/run/daemons/iptables } Active${else}${alignr}Disabled$endif${font Monospace:normal:size=11}
   ${color #F39DFE}Down:${color #FFFFFF} ${downspeed eth0} k/s         ${alignr}${color #F39DFE}Up:${color #FFFFFF} ${upspeed eth0} k/s  
  ${color #FFFFFF}${downspeedgraph eth0 20,130 000000 white}    ${alignr}${color #FFFFFF}${upspeedgraph eth0 20,130 000000 white}

 ${color #F39DFE}Address: ${color #FFFFFF}${addr eth0}${alignr}${color #F39DFE}TCP Connections: ${color #FFFFFF}${tcp_portmon 1 65535 count}

${alignc}${color #F39DFE}--- CONNECTIONS ---
  Inbound Connections:  ${color #FFFFFF}${tcp_portmon 1 32767 count}  ${color #F39DFE}${alignr} Local Service / Port${color #FFFFFF}
   ${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}
   ${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1}
   ${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lservice 2}

${color #F39DFE}  Outbound Connections:  ${color #FFFFFF}${tcp_portmon 32768 61000 count}  ${color #F39DFE}${alignr} Remote Service / Port${color #FFFFFF}
   ${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0}
   ${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1}
   ${tcp_portmon 32768 61000 rhost 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2}
   ${tcp_portmon 32768 61000 rhost 3} ${alignr} ${tcp_portmon 32768 61000 rservice 3}

${color #F39DFE}TOP PROCESSES: $stippled_hr    ${color #FFFFFF}
Processes: ${alignr}${processes} 
Running: ${alignr}${running_processes} 

${color #F39DFE}BY CPU: $stippled_hr ${color #F39DFE}
  PROCESS                   ${alignc}    PID         CPU%     ${alignr}MEM% ${color #FFFFFF}
  ${top name 1}          ${alignc}${top pid 1}         ${top cpu 1}      ${alignr}${top mem 1} 
  ${top name 2}          ${alignc}${top pid 2}         ${top cpu 2}      ${alignr}${top mem 2} 
  ${top name 3}          ${alignc}${top pid 3}         ${top cpu 3}      ${alignr}${top mem 3} 
  ${top name 4}          ${alignc}${top pid 4}         ${top cpu 4}      ${alignr}${top mem 4} 

${color #F39DFE}BY MEMORY: ${stippled_hr}${color #F39DFE}
  PROCESS                   ${alignc}    PID         MEM%      ${alignr}CPU% ${color #FFFFFF}
  ${top_mem name 1}          ${alignc}${top_mem pid 1}         ${alignr}${top_mem mem 1}      ${top_mem cpu 1} 
  ${top_mem name 2}          ${alignc}${top_mem pid 2}         ${alignr}${top_mem mem 2}      ${top_mem cpu 2} 
  ${top_mem name 3}          ${alignc}${top_mem pid 3}         ${alignr}${top_mem mem 3}      ${top_mem cpu 3} 
  ${top_mem name 4}          ${alignc}${top_mem pid 4}         ${alignr}${top_mem mem 4}      ${top_mem cpu 4} 

${color #F39DFE}FILESERVER RAID ARRAY STATUS: $stippled_hr
 ${color #FFFFFF}${execi 60 tail /mnt/Serverbox/Shared/Serverbox_outputs/Raid_Check.txt}  
${exec feh --bg-scale "`grep 'wallpaper=' ~/.kde4/share/config/plasma-desktop-appletsrc | tail --lines=1 | sed 's/wallpaper=//'`"}

F@H CONKY

# F@H Conky config
background yes
use_xft yes
xftfont Monospace:size=10
xftalpha 0.8
out_to_console no
update_interval 2
total_run_times 0
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 375
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
stippled_borders 5
#border_margin 4
default_color grey
default_shade_color black
default_outline_color black
alignment top_right
gap_x 425
gap_y 10
no_buffers no
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer none


TEXT
${color #F39DFE}${font Monospace:normal:size=10}FOLDING AT HOME: $stippled_hr${font Monospace:normal:size=10}
${color #F39DFE} Desktop:
   CPU:
     ${color #FFFFFF}${execi 60 cat /opt/fah-smp/dad/unitinfo.txt | grep "Name"}      ${alignr}${execi 60 cat /opt/fah-smp/dad/unitinfo.txt | grep "Tag"}   
     ${execi 60 cat /opt/fah-smp/dad/unitinfo.txt | grep "Due"}
     ${font Monospace:normal:size=11}${execi 60 cat /opt/fah-smp/dad/unitinfo.txt | grep "Progress"}${font Monospace:normal:size=10}
  ${color #F39DFE} GPU:${color #FFFFFF}
     ${color #FFFFFF}${execi 60 cat /opt/fah-gpu/unitinfo.txt | grep "Name"}      
     ${execi 60 cat /opt/fah-gpu/unitinfo.txt | grep "Due"}
     ${font Monospace:normal:size=11}${execi 60 cat /opt/fah-gpu/unitinfo.txt | grep "Progress"}${font Monospace:normal:size=10}

${color #F39DFE}Server:
   CPU:
     ${color #FFFFFF}${execi 60 cat /mnt/Serverbox/Shared/Serverbox_outputs/cpu_unitinfo.txt | grep "Name"}      ${alignr}${execi 60 cat /mnt/Serverbox/Shared/Serverbox_outputs/cpu_unitinfo.txt | grep "Tag"}   
     ${execi 60 cat /mnt/Serverbox/Shared/Serverbox_outputs/cpu_unitinfo.txt | grep "Due"}
     ${font Monospace:normal:size=11}${execi 60 cat /mnt/Serverbox/Shared/Serverbox_outputs/cpu_unitinfo.txt | grep "Progress"}${font Monospace:normal:size=10}
  ${color #F39DFE} GPU:${color #FFFFFF}
     ${color #FFFFFF}${execi 60 cat /mnt/Serverbox/Shared/Serverbox_outputs/gpu_unitinfo.txt | grep "Name"}      
     ${execi 60 cat /mnt/Serverbox/Shared/Serverbox_outputs/gpu_unitinfo.txt | grep "Due"}
     ${font Monospace:normal:size=11}${execi 60 cat /mnt/Serverbox/Shared/Serverbox_outputs/gpu_unitinfo.txt | grep "Progress"}${font Monospace:normal:size=10}
${exec feh --bg-scale "`grep 'wallpaper=' ~/.kde4/share/config/plasma-desktop-appletsrc | tail --lines=1 | sed 's/wallpaper=//'`"}

Offline

#656 2011-01-31 23:36:49

Spot
Member
From: The Heart of Europe
Registered: 2008-12-20
Posts: 50

Re: conky configs and screenshots!

I can't get my lua-skript working with conky...

I paste this lines in my conkyrc

lua_load ~/.conky/rahmen.lua
lua_draw_hook_post main_rahmen ### don't really know what I have to type here....

The lua file:

local boxes_settings={
 {},
}

Whats wrong ?

Last edited by Spot (2011-01-31 23:37:46)

Offline

#657 2011-02-01 06:23:23

Zom
Member
From: Sweden
Registered: 2007-10-27
Posts: 406

Re: conky configs and screenshots!

Spot wrote:

I can't get my lua-skript working with conky...

I paste this lines in my conkyrc

lua_load ~/.conky/rahmen.lua
lua_draw_hook_post main_rahmen ### don't really know what I have to type here....

The lua file:

local boxes_settings={
 {},
}

Whats wrong ?

The lua_draw_hook_post main_* stuff is the name of the function in the script, not the script itself. Like this, in the .lua file:

function conky_main_banana()

Then you'd call it with
lua_draw_hook_post main_banana

At least, if I understand this correctly. Check your .lua file for the correct name.

Offline

#658 2011-02-01 13:01:12

Spot
Member
From: The Heart of Europe
Registered: 2008-12-20
Posts: 50

Re: conky configs and screenshots!

Thanks, but conky-lua isn't workign anyhow.
I created a new topic for this problem...

Offline

#659 2011-02-02 19:09:16

MystKid
Member
Registered: 2011-01-24
Posts: 47

Re: conky configs and screenshots!

this is my config so far. still need to setup the second urxvt terminal on the right side, that i dont know how to
Desktop
http://imagebin.org/135832

Last edited by MystKid (2011-02-02 22:11:40)

Offline

#660 2011-02-05 18:23:20

MystKid
Member
Registered: 2011-01-24
Posts: 47

Re: conky configs and screenshots!

http://imagebin.org/136272

#avoid flicker

double_buffer yes


#own window to run simultanious 2 or more conkys

own_window  yes

own_window_transparent yes


own_window_type normal

own_window_hints undecorate,sticky,skip_taskbar,skip_pager



#borders

draw_borders no

border_margin 1



#shades

draw_shades no



#position

gap_x 5

gap_y 1
alignment top_left


#behaviour

update_interval 1



#colour

default_color  8f8f8f

#default_shade_color 000000

own_window_colour 262626



#font

use_xft yes

xftfont bauhaus:pixelsize=11



#to prevent window from moving

use_spacer no
maximum_size 1280 10
minimum_size 180 10
maximum_width 1280
#mpd

mpd_host localhost

mpd_port 6600



TEXT
                  Kernel:${color e0e0e0}${font}${kernel}${color} | CPU: ${color e0e0e0}${font}${cpu}% ${color} RAM:${color e0e0e0}${font}${mem} ${color} | Intel Core i5 760 @ ${color e0e0e0}${font}2.80GHz ${color} | Core0:${color e0e0e0}${font}${execi 1 sensors | grep "Core 0" | cut -c15-18}${color}° | Core1: ${color e0e0e0}${font}${execi 1 sensors | grep "Core 1" | cut -c15-18}${color}° | Core2: ${color e0e0e0}${font}${execi 1 sensors | grep "Core 2" | cut -c15-18}°  ${color}| Core3: ${color e0e0e0}${font}${execi 1 sensors | grep "Core 3" | cut -c15-18}°  ${color}|  MB: ${color e0e0e0}${font}${execi 1 sensors | grep MBT* | cut -c22-23}${color}°  |   Nvidia GeForce 8800GT:${color e0e0e0}${font}${execi 1 nvidia-settings -q gpucoretemp  |grep '):' | cut -c 38-40}°  ${color}| ${color} Up: ${color e0e0e0}${font}${uptime_short}${color}
   IP:${color e0e0e0} ${execi 600 /home/arch/.scripts/myip}${color} | Net: ${color e0e0e0}${font}${downspeed eth0} Kb/s ${color} ${totaldown eth0} Downloaded${color} | ${color} ${color e0e0e0}${upspeed eth0} Kb/s ${color} ${totalup eth0} Uploaded${color}  |  ${color}Root: ${color e0e0e0}${font}${fs_free /} ${color} Home: ${color e0e0e0}${font}${fs_free /home} ${color} Storage: ${color e0e0e0}${font}${fs_free /storage} ${color} | Gmail: ${color3}${texeci 60 perl ~/.scripts/gmail.pl n} ${color} new. ${color}|${font} Temp: ${execi 3600 conkyForecast --location=ITXX0121 --datatype=HT | cut -c1-3} Conditions: ${execi 3600 conkyForecast --location=ITXX0121 --datatype=CC}${font ConkyWeather:size=25}${color yellow}${execi 3600 conkyForecast --location=ITXX0121 --datatype=WF}

IP config file

wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'

gmail config

#!/usr/bin/perl

use Switch;
use Text::Wrap;

my $what=$ARGV[0];

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

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

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

&passwd; #give password the proper url character encoding

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

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

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

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

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

    my $flag=0;

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

    close(IN); #close $file
}

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

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

allright this is my final config file.  hope you guys like it smile

Last edited by MystKid (2011-02-05 18:27:31)

Offline

#661 2011-02-17 18:07:51

h4xx
Member
Registered: 2011-02-17
Posts: 1

Re: conky configs and screenshots!

my conky config smile

http://gbimg.org/v8T9f


#
# h4xx conky config
#

alignment top_right
background no
border_width 1
cpu_avg_samples 2
default_color green
default_outline_color white
default_shade_color white
double_buffer yes
draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no
use_xft yes
xftfont DejaVu Sans Mono:size=8
gap_x 5
gap_y 60
minimum_size 5 5
maximum_size 320 320
net_avg_samples 2
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_transparent yes
own_window_argb_visual yes
own_window_type normal
own_window_class conky-semi
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
stippled_borders 0
update_interval 3.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no

TEXT
${font OpenLogos:size=20}B $font$nodename@$kernel $alignr ${uptime}
${color orange}${time %H:%M} ${color red}${time %a, }${color purpur}${time %b %d %G}${color black}$hr
$hr
${color white}RAM:$color$alignc$memperc%$alignr$mem/$memmax
${membar 4}
${color white}Swap:$color$alignc$swapperc%$alignr$swap/$swapmax
${swapbar 4}
${color black}$hr
${color white}File systems: $alignr$color${fs_used /}/${fs_size /}
${fs_bar 6 /}
${color white}Disk.IO: ${color green}$diskio$alignr${diskiograph 32,150 FF1493 FF0000}
${color black}$hr
${color white}Battery ${execi 1 cat /proc/acpi/battery/BAT0/state | grep "charging state:" | cut -d' ' -f12}${color white}$alignr ${battery_time}
$color${battery_bar}
${color black}$hr
${color white}CPU 1:$alignr$color ${cpu cpu0}%
${color red}${cpugraph 32,305 FF1493 FF0000}
${color white}CPU 2:$alignr$color ${cpu cpu1}%
${color red}${cpugraph 32,305 FF1493 FF0000}
${color black}$hr
${color white}UpSpeed: $color${upspeed}      $alignr${downspeed} ${color white}:DownSpeed
${color}${upspeedgraph 32,150 FF1493 FF0000} ${color}${downspeedgraph 32,150 FF1493 FF0000}
${color white}UP: $color$totalup$alignr$totaldown${color white} :DOWN
${color black}$hr
${color white}GPU:$alignr${color green}${exec nvidia-smi -a | grep Name | cut -d' ' -f3-4}
${color white}GPU Temp:$alignr${color green}${execi 10 nvidia-settings -t -q gpucoretemp}°C
${color white}GPU Usage:$alignr${color green}${execi 3 nvidia-smi -a | grep GPU | cut -d' ' -f6 | grep %}
${color white}GPU Mem:$alignr${color green}${execi 3 nvidia-smi -a | grep Memory | cut -d' ' -f6 | grep %}
${color black}$hr
${color white}Name              PID      CPU %    MEM %
${color lightgrey}${top name 1} ${top pid 1}   ${top cpu 1}   ${top mem 1}
${color lightgrey}${top name 2} ${top pid 2}   ${top cpu 2}   ${top mem 2}
${color lightgrey}${top name 3} ${top pid 3}   ${top cpu 3}   ${top mem 3}
${color lightgrey}${top name 4} ${top pid 4}   ${top cpu 4}   ${top mem 4}
${color lightgrey}${top name 5} ${top pid 5}   ${top cpu 5}   ${top mem 5}
${color lightgrey}${top name 6} ${top pid 6}   ${top cpu 6}   ${top mem 6}
${color lightgrey}${top name 7} ${top pid 7}   ${top cpu 7}   ${top mem 7}
${color lightgrey}${top name 8} ${top pid 8}   ${top cpu 8}   ${top mem 8}

${color white}Processes:$color $processes  ${color white}Running:$color $running_processes

h4xx wink

edit0: sry...forgotten screenshot smile
edit1: uups smile posted monster screen...now there's a link wink

Last edited by h4xx (2011-02-17 19:08:10)

Offline

#662 2011-02-21 00:28:04

Sector11
Banned
Registered: 2010-02-25
Posts: 10

Re: conky configs and screenshots!

Beelzebud wrote:

Less guess-work.   If I have the screen set to 1920, I have an idea of where 1500 will place the line.   It's just easier for me to visualize where things will go.   The offset command can be tricky.    The hardest part of this config was getting the voffset values correct.

Have you tried "screenruler" --> makes things a lot easier!

thmb_Screenruler.png

It rotates - for the voffsets it's a blessing!
I do everything I can to avoid ${offset} - I just don't like it.

Offline

#663 2011-02-21 01:43:22

Sector11
Banned
Registered: 2010-02-25
Posts: 10

Re: conky configs and screenshots!

thmb_Daily.png
Screen - 1280x1024

Calendar and Birthdays/Anniversaries

# To use #! in a conky use: ${exec echo '#!'}
# OB_V-Cal #

own_window yes
own_window_type override
own_window_transparent yes
own_window_hints below,skip_taskbar,skip_pager
own_window_title OB_V-Cal
own_window_class OB_V-Cal
# own_window_argb_visual yes

background no
border_inner_margin 0
border_width 0
default_outline_color black
default_shade_color black
double_buffer yes
draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no
no_buffers yes
override_utf8_locale yes
pad_percents 2
short_units yes
stippled_borders 0
text_buffer_size 4096
uppercase no
use_spacer right
use_xft yes
#xftfont DejaVu Sans Mono:size=15
xftfont monospace:size=15
xftalpha 1.0

# Colors
default_color FDD2C0 #LightSalmon 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


### OB_V-Cal ###
################
update_interval 86400
imlib_cache_size 0
gap_x 5             ### left &right
gap_y 30            ### up & down
minimum_size 66 920 ### width, height 
maximum_width 64    ### make this equal to the image width
alignment tl        ### Aligned position on screen: tl, tr, tm, bl, br, bm, ml, mr

### Strip out the in_match statements if you don't want Spanish months
TEXT
${voffset -10}${color6}${hr}
${voffset -5}${goto 13}${if_match "${time %b}"=="Jan"}ene${else}\
${if_match "${time %b}"=="Feb"}feb${else}\
${if_match "${time %b}"=="Mar"}mar${else}\
${if_match "${time %b}"=="Apr"}abr${else}\
${if_match "${time %b}"=="May"}may${else}\
${if_match "${time %b}"=="Jun"}jun${else}\
${if_match "${time %b}"=="Jul"}jul${else}\
${if_match "${time %b}"=="Aug"}aug${else}\
${if_match "${time %b}"=="Sep"}sep${else}\
${if_match "${time %b}"=="Oct"}oct${else}\
${if_match "${time %b}"=="Nov"}nov${else}\
${if_match "${time %b}"=="Dec"}dec$\
{endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${color}
${execpi 86400 $HOME/Conky/scripts/conkycal-1.sh -vl es|sed 's/^/\${goto 5}/'}
${voffset -0}${color6}${goto 7}${font monospace:size=16}${time %Y}${font}
${voffset -10}${hr}${color}
${voffset -9}${font monospace:size=8}${if_match "${time %b}"=="Jan"}${execp conkyText --template=/home/sector11/Conky/DAYS/bd.template --textfile=/home/sector11/Conky/DAYS/jan.txt}${else}${if_match "${time %b}"=="Feb"}${execp conkyText --template=/home/sector11/Conky/DAYS/bd.template --textfile=/home/sector11/Conky/DAYS/feb.txt}${else}${if_match "${time %b}"=="Mar"}${execp conkyText --template=/home/sector11/Conky/DAYS/bd.template --textfile=/home/sector11/Conky/DAYS/mar.txt}${else}${if_match "${time %b}"=="Apr"}${execp conkyText --template=/home/sector11/Conky/DAYS/bd.template --textfile=/home/sector11/Conky/DAYS/apr.txt}${else}${if_match "${time %b}"=="May"}${execp conkyText --template=/home/sector11/Conky/DAYS/bd.template --textfile=/home/sector11/Conky/DAYS/may.txt}${else}${if_match "${time %b}"=="Jun"}${execp conkyText --template=/home/sector11/Conky/DAYS/bd.template --textfile=/home/sector11/Conky/DAYS/jun.txt}${else}${if_match "${time %b}"=="Jul"}${execp conkyText --template=/home/sector11/Conky/DAYS/bd.template --textfile=/home/sector11/Conky/DAYS/jul.txt}${else}${if_match "${time %b}"=="Aug"}${execp conkyText --template=/home/sector11/Conky/DAYS/bd.template --textfile=/home/sector11/Conky/DAYS/aug.txt}${else}${if_match "${time %b}"=="Sep"}${execp conkyText --template=/home/sector11/Conky/DAYS/bd.template --textfile=/home/sector11/Conky/DAYS/sep.txt}${else}${if_match "${time %b}"=="Oct"}${execp conkyText --template=/home/sector11/Conky/DAYS/bd.template --textfile=/home/sector11/Conky/DAYS/oct.txt}${else}${if_match "${time %b}"=="Nov"}${execp conkyText --template=/home/sector11/Conky/DAYS/bd.template --textfile=/home/sector11/Conky/DAYS/nov.txt}${else}${if_match "${time %b}"=="Dec"}${execp conkyText --template=/home/sector11/Conky/DAYS/bd.template --textfile=/home/sector11/Conky/DAYS/dec.txt}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}

Requires "conkycal-1.sh" "lang" to be in the same directory

conkycal-1.sh

#!/bin/bash
cd ${0%/*}

# horizontal and vertical calendar for conky by ans
# Updated by: mobilediesel, dk75, Bruce, Crinos512, et al.
#This program is free software: you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation, either version 3 of the License, or
#(at your option) any later version.

#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#GNU General Public License for more details.

#You should have received a copy of the GNU General Public License
#along with this program.  If not, see <http://www.gnu.org/licenses/>.
# locale depend week day names
# The 'lang' file must be in the same directory as this script.
# Horizontal and English are the defaults:
#   conkycal.sh
# Make it vertical:
#   conkycal.sh -v
# Change the language to Spanish:
#   conkycal.sh -l es
# Or both at once:
#   conkycal.sh -v -l es
# The order of the arguments doesn't matter:
#   conkycal.sh -l es -v
# Need to use a goto:
#   conkycal.sh -l es|sed 's/^/\${goto 240}/'
# or a goto and a tab:
#   conkycal.sh |sed -e 's/^/\${goto 240}/' -e 's/$/\${tab 20}/'

DOW=("Mo" "Tu" "We" "Th" "Fr" "Sa" "Su")

while getopts ":vl:d:" opts; do
case "$opts" in
l) lang=$OPTARG;;
v) orientation="$opts";;
d) DATE=$OPTARG;;
esac
done
if [ -f lang ]; then
    . lang
fi

COLOROLD="445566" #MidSlateGrey
COLORTODAY="00BFFF" #DeepSkyBlue "FF8C00" #Darkorange
COLORREST="445566" #MidSlateGrey
COLORNEXT="778899" #LightSlateGrey
COLORSATURDAY="C6FF8E" # a light green
COLORSUNDAY="C6FF8E" #a light green
## COLORSATURDAY="FFFF00"
## COLORSUNDAY="FF8C00"

COLOR=("" "" "" "" "" "\${color $COLORSATURDAY}" "\${color $COLORSUNDAY}")
COLOREND="\${color}"

#DAYS=( $(cal | awk 'BEGIN{FIRST= strftime( "%Y %m 01 00 00 00", systime() )}{if ($0!~/^ *$/){LAST=$NF}} END{print strftime( "%u", mktime( FIRST ) )" "strftime( "%-d" )" "LAST}') )

DAYS=( $(cal $DATE | awk 'BEGIN{
monN=split("January February March April May June July August September October November December", months)
for(i=1; i<=monN; i++) {
months[months[i]]=i;
delete months[i];
}
}
{ if ( NR==1 ) {MONTH=months[$1];YEAR=$2} }{if ($0!~/^ *$/){LAST=$NF}} END{print strftime( "%u", mktime( strftime( YEAR" "MONTH" 01 00 00 00" ) ) )" "strftime( "%-d" )" "LAST}') )

k=${DAYS[0]}
for j in $(seq 1 ${DAYS[2]}); do
  days[$j]="${COLOR[k-1]}${DOW[k-1]}"
  k=$((${k/#7/0}+1))
done
for j in $(seq $((${DAYS[2]}+1)) 31); do
  days[$j]="${DOW[k-1]}"
  k=$((${k/#7/0}+1))
done

# horizontal function
h () {
for i in $(seq 1 ${DAYS[2]}); do
  echo -n "${days[$i]/${DOW[6]}/${DOW[6]}$COLOREND} "
done
echo -n "\${color $COLORREST}"
for i in $(seq $((${DAYS[2]}+1)) 31); do
  echo -n "${days[$i]} "
done
echo $'\n'"\${color $COLOROLD}$(seq -w -s ' ' ${DAYS[2]}|sed "0,/[0-3]*${DAYS[1]} \?/s//\${color $COLORTODAY}&\${color $COLORREST}/") \${color $COLORNEXT}$(seq -w -s ' ' 0$((31-${DAYS[2]})))"
}

#vertical function
v () {
for i in $(seq 1 $((${DAYS[1]}-1))); do
    TODAYC[$i]="\${color $COLOROLD}"
done
TODAYC[${DAYS[1]}]="\${color $COLORTODAY}"
for i in $(seq $((${DAYS[1]}+1)) ${DAYS[2]}); do
    TODAYC[$i]="\${color $COLORREST}"
done
for j in $(seq ${DAYS[2]}); do
    echo  "${days[$j]} ${TODAYC[$j]}$(printf "%02d" $j)\${color}"
done
for j in $(seq -w $((31-${DAYS[2]}))); do
    echo  "\${color $COLORNEXT}${days[$j]} $(printf "%02d" $j)\${color}"
done
}
# call function based on "$orientation" - default is horizontal
${orientation:-h}

lang

case ${lang:-$LANG} in
    af* )  DOW=("Ma" "Di" "Wo" "Do" "Vr" "Sa" "So");;            # Afrikaans (Afrikaans)
    be* )  DOW=("Па" "Аў" "Се" "Ча" "Пя" "Су" "Ня");;            # Belarusian (Беларуская)
    bs* )  DOW=("Po" "Ut" "Sr" "Če" "Pe" "Su" "Ne");;            # Bosnian (Bosanac)
    bg* )  DOW=("По" "Вт" "Ср" "Че" "Пе" "Съ" "Не");;            # Bulgarian (Български)
    zh* )  DOW=("周一" "周二" "周三" "周四" "周五" "周六" "周天");;        # Chinese (中文)
    hr* )  DOW=("Po" "Ut" "Ut" "Sr" "Če" "Su" "Ne");;            # Croatian (Hrvatska)
    cs* )  DOW=("Po" "Út" "St" "Čt" "Pá" "So" "Ne");;            # Czech (Čeština)
    da* )  DOW=("Ma" "Ti" "On" "To" "Fr" "Lø" "Sø");;            # Danish (Dánština)
    nl* )  DOW=("Ma" "Di" "Wo" "Do" "Vr" "Za" "Zo");;            # Dutch (Nederlandse)
    de* )  DOW=("Mo" "Di" "Mi" "Do" "Fr" "Sa" "So");;            # German (Deutche)
    el* )  DOW=("Δε" "Τρ" "Τε" "Πέ" "Πα" "Σά" "Κυ");;            # Greek (Ελληνικά)
    et* )  DOW=("Es" "Te" "Ko" "Ne" "Re" "La" "Pü");;            # Estonian (Eesti)
    tl* )  DOW=("Lu" "Ma" "Mi" "Hu" "Bi" "Sa" "Li");;            # Filipino (Filipino)
    fi* )  DOW=("Ma" "Ti" "Ke" "To" "Pe" "La" "Su");;            # Finnish (Suomen)
    fr* )  DOW=("Lu" "Ma" "Me" "Je" "Ve" "Sa" "Di");;            # French (Français)
    gl* )  DOW=("Lu" "Ma" "Mé" "Xo" "Ve" "Sá" "Do");;            # Galician (Galego)
    hi* )  DOW=("सोम" "मंगल" "बुध" "गुरु" "शुक्र" "शनि" "सूर्य")    ;;            # Hindi (हिन्दी)
    hu* )  DOW=("Hé" "Ke" "Se" "Cü" "Pé" "So" "Va");;            # Hungarian (Magyar)
    is* )  DOW=("Má" "Þr" "Mi" "Fi" "Fö" "La" "Su");;            # Icelandic (Íslenska)
    id* )  DOW=("Se" "Se" "Ra" "Ka" "Ju" "Sa" "Mi");;            # Indonesian (Indonesia)
    it* )  DOW=("Lu" "Ma" "Me" "Gi" "Ve" "Sa" "Do");;            # Italian (Italiano)
    ja* )  DOW=("月曜" "火曜" "水曜" "木曜" "金曜" "土曜" "日曜");;        # Japanese (日本語) x
    ko* )  DOW=("월요" "화요" "수요" "목요" "금요" "토요" "일요");;        # Korean (한국어) x
    lv* )  DOW=("Pr" "Ot" "Tr" "Ce" "Pe" "Se" "Sv");;            # Latvian (Latviešu)
    lt* )  DOW=("pi" "an" "tr" "ke" "pe" "še" "se");;            # Lithuanian (Lietuviškai)
    mk* )  DOW=("По" "Вт" "Ср" "Че" "Пе" "Са" "Не");;            # Macedonian (Македонски)
    ml* )  DOW=("Is" "Se" "Ra" "Ra" "Ju" "Sa" "Mi");;            # Malayam (Bahasa Melayu)
    nb* )  DOW=("ma" "ti" "on" "to" "fr" "lø" "sø");;            # Norwegian (Norsk)
    pl* )  DOW=("Po" "Wt" "Śr" "Cz" "Pt" "So" "Nd");;            # Polish (Polska)
    pt* )  DOW=("Sq" "Te" "Qa" "Qi" "Se" "Sá" "Do");;            # Portuguese (Português)
    ro* )  DOW=("Lu" "Ma" "Mi" "Jo" "Vi" "Sa" "Du");;            # Romanian (Român)
    ru* )  DOW=("По" "Вт" "Ср" "Че" "Пя" "Су" "Во");;            # Russian (Русский)
    sr* )  DOW=("Po" "Ut" "Sr" "Če" "Pe" "Su" "Ne");;            # Serbian (Српски)
    sk* )  DOW=("Po" "Ut" "St" "Št" "Pi" "So" "Ne");;            # Slovak (Slovenčina)
    sl* )  DOW=("Po" "To" "Sr" "Če" "Pe" "So" "Ne");;            # Slovenian (Slovenski)
    es* )  DOW=("Lu" "Ma" "Mi" "Ju" "Vi" "Sá" "Do");;            # Spanish (Español)
    sv* )  DOW=("Må" "Ti" "On" "To" "Fr" "Lö" "Sö");;            # Swedish (Svenska)
    tr* )  DOW=("Pa" "Sa" "Ça" "Pe" "Cu" "Cu" "Pa");;            # Turkish (Türkçe)
    uk* )  DOW=("По" "Ві" "Се" "Че" "Пя" "Су" "Не");;            # Ukrainian (Українська)
        * ) DOW=("Mo" "Tu" "We" "Th" "Fr" "Sa" "Su") ;;
esac

You'll need conkyText (in the AUR) for the bottom part.
A sample text tile feb.txt - one for each month, with limited space of 8 lines I start at the bottom and work up.

;
;
;
;
;
;04 ;Maria
;19 ;;S11|12
;22 ;Mariana

and the bd.template:

${goto 3}${color5};${color6};${color3};${color8};${color7}

OB_MB_Weather: conkyForecast.py (AUR)

# To use #! in a conky use: ${exec echo '#!'}
# OB_MB_Weather

background no
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints below,skip_taskbar,skip_pager
own_window_title VertWeather
own_window_class VertWeather

double_buffer yes
use_spacer right # yes is NOT an option - left right or none
override_utf8_locale yes
use_xft yes
xftfont DejaVu Sans Mono:size=8
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 CCCCCC #Marks Grey 778899 #LightSlateGrey
color2 7095BB #Marks Blue #FF8C00 #Darkorange
color3 C6FF8E #a light green #FFF00 #Chartreuse
color4 FFA07A #LightSalmon
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 48D1CC #MediumTurquoise
color8 FFFF00 #Yellow
color9 FF0000 #Red

text_buffer_size 3048 # 256 is minimum
no_buffers yes
short_units yes
pad_percents 2
#max_specials 1024
#max_user_text 10000

alignment tl  # tl, tr, tm, bl, br, bm, ml, mr
gap_x 1185 # left-right
gap_y 10 # up-down

# Minimum size of text area
minimum_size 72 72
maximum_width 80

update_interval 1200
imlib_cache_size 0

TEXT
${execpi 1200 conkyForecast -l ARDF0127 --errorlog=~/Conky/cache/conky_forecast.log -t $HOME/Conky/templates/ob_mb_weather.template}
${voffset -6}${goto 5}13|19|${color7}${exec ~/Conky/scripts/conkyDaysDiff.py 20110512}${color}
${goto 5}02|05|${color1}${exec ~/Conky/scripts/conkyDaysDiff.py 20110813}${color}
${goto 5}02|11|${color8}${exec ~/Conky/scripts/conkyDaysDiff.py 20111113}${color}
${goto 5}${color3}${exec ~/Conky/scripts/conkyDaysDiff.py 20110202}${color}|${color9}${exec ~/Conky/scripts/conkyDaysDiff.py 20110205}${color}|${color6}${exec ~/Conky/scripts/conkyDaysDiff.py 20021113}${color}

ob_mb_weather.template

${color2}${hr}
${color3}${font monospace:bold:size=9}${alignc}[--datatype=DW]${font}
${voffset -5}${color2}${hr}${image [--datatype=WI] -p 3,35 -s 40x40}${image [--datatype=MI] -p 53,35 -s 16x16}
${voffset 18}${goto 50}${color1}${font monospace:bold:size=12}[--datatype=HT --night --hideunits]${font}
${goto 50}====
${goto 50}${font monospace:bold:size=12}${color9}[--datatype=LT --night --hideunits]${color}${font}
${voffset -13}${color8}[--startday=0 --datatype=HT --night --hideunits]${color} ${color2}[--startday=0 --datatype=LT --night --hideunits]
${voffset 5}${color1}${alignc}[--datatype=WS --hideunits] km/h
${alignc}[--datatype=WD]
${voffset 5}${alignc}UV: [--datatype=UI]
${alignc}[--datatype=UT]
${voffset 5}${alignc}P: [--datatype=BR]
${alignc}[--datatype=BD]
${alignc}H: [--datatype=HM]
${voffset 5}[--datatype=SR --startday=0] | [--datatype=SS --startday=0]
${alignc}[--datatype=DL --startday=0]
${color2}${hr}
${color3}${font monospace:bold:size=9}${alignc}[--datatype=DW --startday=1]${font}
${voffset -4}${color2}${hr}${image [--datatype=WI --startday=1] -p 3,275 -s 40x40}
${color8}${goto 53}[--datatype=HT --startday=1 --night --hideunits]${color}
${goto 53}===
${color2}${goto 53}[--datatype=LT --startday=1 --hideunits]${color}
${voffset 5}${alignc}[--datatype=WS --startday=1 --hideunits] km/h
${alignc}[--datatype=WD --startday=1]
${voffset 5}[--datatype=SR --startday=1] | [--datatype=SS --startday=1]
${alignc}[--datatype=DL --startday=1]
${voffset 5}${color2}${hr}
${color3}${font monospace:bold:size=9}${alignc}[--datatype=DW --startday=2]${font}
${voffset -4}${color2}${hr}${image [--datatype=WI --startday=2] -p 3,417 -s 40x40}
${color8}${goto 53}[--datatype=HT --startday=2 --hideunits --hideunits]${color}
${goto 53}===
${color2}${goto 53}[--datatype=LT --startday=2 --hideunits]${color}
${voffset 5}${alignc}[--datatype=WS --startday=2 --hideunits] km/h
${alignc}[--datatype=WD --startday=2]
${voffset 5}[--datatype=SR --startday=2] | [--datatype=SS --startday=2]
${alignc}[--datatype=DL --startday=2]
${color2}${hr}
${color3}${font monospace:bold:size=9}${alignc}[--datatype=DW --startday=3]${font}
${voffset -4}${color2}${hr}${image [--datatype=WI --startday=3] -p 3,556 -s 40x40}
${color8}${goto 53}[--datatype=HT --startday=3 --hideunits]${color}
${color2}${goto 53}===
${goto 53}[--datatype=LT --startday=3 --hideunits]${color}
${voffset 5}${alignc}[--datatype=WS --startday=3 --hideunits] km/h
${alignc}[--datatype=WD --startday=3]
${voffset 5}[--datatype=SR --startday=3] | [--datatype=SS --startday=3]
${alignc}[--datatype=DL --startday=3]
${voffset 5}${color2}${hr}
${color3}${font monospace:bold:size=9}${alignc}[--datatype=DW --startday=4]${font}
${voffset -4}${color2}${hr}${image [--datatype=WI --startday=4] -p 3,697 -s 40x40}
${color8}${goto 53}[--datatype=HT --startday=4 --hideunits]${color}
${color2}${goto 53}===
${goto 53}[--datatype=LT --startday=4 --hideunits]${color}
${voffset 5}${alignc}[--datatype=WS --startday=4 --hideunits] km/h
${alignc}[--datatype=WD --startday=4]
${voffset 5}[--datatype=SR --startday=4] | [--datatype=SS --startday=4]
${alignc}[--datatype=DL --startday=4]
${color2}${hr}${color}

Below the weather is a "days to" and "days since" grid - I understand them, you'll need to set your own.
Requires: conkyDaysDiff.py (AUR)

Across the bottom of the screen is wlourf's "rotating" lua script found at Conky PitStop.

Offline

#664 2011-02-23 03:52:35

mr_comic
Member
From: México
Registered: 2011-02-20
Posts: 52
Website

Re: conky configs and screenshots!

Mine probably just look good with my wallpaper:
http://twitpic.com/415vju

######################
# - Conky settings - #
######################
update_interval 1
total_run_times 0
net_avg_samples 1
cpu_avg_samples 1

imlib_cache_size 0
double_buffer yes
no_buffers yes

format_human_readable

#####################
# - Text settings - #
#####################
use_xft yes
xftfont Droid Sans:size=8
override_utf8_locale yes
text_buffer_size 2048

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

alignment top_left
gap_x 0
gap_y 50
minimum_size 1368 768
maximum_width 1368 768

default_bar_size 80 80

#########################
# - Graphics settings - #
#########################
draw_shades no

default_color 0f0f0f

color0 0c0c0c
color1 090909
color2 0d0d0d

TEXT
#############
# - CLOCK - #
#############
${voffset 0}
${goto 506}${font Droid Sans:style=Bold:size=19}${time %A}${font}
${goto 506}${voffset -27}${offset -27}${font Droid Sans:style=Bold:size=66}${color2}${time %B}${color}${font}
${goto 506}${voffset -100}${offset 386}${font Arial:style=Bold:size=94}${color1}${time %d}${color}${font}
${goto 506}${voffset -19}${offset -9}${font Arial:size=47}${time %H:%M}${font}
##############
# - SYSTEM - #
##############
${voffset 40}
# |--CPU
${goto 456}${color0}${font Poky:size=24}P${font}${offset -27}${voffset 9}${cpubar cpu1 4,22}${color}${voffset -40}
${goto 486}${font Droid Sans:style=Bold:size=8}${color2}${freq_g}${color} GHZ${font}
${goto 486}CPU1: ${font Droid Sans:style=Bold:size=8}${color1}${cpu cpu1}%${color}${font}
${goto 486}Temp: ${font Droid Sans:style=Bold:size=8}${color1}${execi 30 sensors | grep 'Core 0' | cut -c15-16}°C${color}${font}
${voffset 60}
# |--MEM
${voffset -137}
${goto 576}${color0}${font Poky:size=20}M${font}${offset -25}${voffset 9}${membar 4,22}${color}${voffset -40}
${goto 606}RAM: ${font Droid Sans:style=Bold:size=8}${color1}$memperc%${color}${font}
${goto 606}F: ${font Droid Sans:style=Bold:size=8}${color2}${memeasyfree}${color}${font}
${goto 606}U: ${font Droid Sans:style=Bold:size=8}${color2}${mem}${color}${font}
# |--SWAP
${voffset -57}
${goto 676}${color0}${font Poky:size=18}s${font}${offset -24}${voffset 9}${swapbar 4,22}${color}${voffset -40}
${goto 706}SWAP: ${font Droid Sans:style=Bold:size=8}${color1}$swapperc%${color}${font}
${goto 706}F: ${font Droid Sans:style=Bold:size=8}${color2}${swapmax}${color}${font}
${goto 706}U: ${font Droid Sans:style=Bold:size=8}${color2}${swap}${color}${font}
###############
# - NETWORK - #
###############
${voffset -57}
${goto 806}${color0}${font Poky:size=18}w${font}${voffset -46}
# |--eth0
${if_up eth0}
${goto 836}Up: ${font Droid Sans:style=Bold:size=8}${color1}${upspeed eth0}${color}${font}
${goto 836}Total: ${font Droid Sans:style=Bold:size=8}${color2}${totalup eth0}${color}${font}
${goto 836}Down: ${font Droid Sans:style=Bold:size=8}${color1}${downspeed eth0}${color}${font}
${goto 836}Total: ${font Droid Sans:style=Bold:size=8}${color2}${totaldown eth0}${color}${font}
# |--ppp0
${else}${if_up ppp0}
${goto 746}Up: ${font Droid Sans:style=Bold:size=8}${color1}${upspeed ppp0}${color}${font}
${goto 746}Total: ${font Droid Sans:style=Bold:size=8}${color2}${totalup ppp0}${color}${font}
${goto 746}Down: ${font Droid Sans:style=Bold:size=8}${color1}${downspeed ppp0}${color}${font}
${goto 746}Total: ${font Droid Sans:style=Bold:size=8}${color2}${totaldown ppp0}${color}${font}
${endif}${endif}
${voffset -192}

Last edited by mr_comic (2011-02-23 03:53:34)

Offline

#665 2011-02-23 12:05:27

Sector11
Banned
Registered: 2010-02-25
Posts: 10

Re: conky configs and screenshots!

mr_comic wrote:

Mine probably just look good with my wallpaper:
http://twitpic.com/415vju

No, está bien para todos los fondos ligeros.
No, it would look good on any light wallpaper.

Offline

#666 2011-02-23 15:34:04

mr_comic
Member
From: México
Registered: 2011-02-20
Posts: 52
Website

Re: conky configs and screenshots!

Sector11 wrote:

No, está bien para todos los fondos ligeros.
No, it would look good on any light wallpaper.

Me emocioné de me que contestaras en español XD
Ok, its basically a conky-colors in panel mode but with changed colors, no lua and moved in the background to fit the wallpaper.

Offline

#667 2011-02-23 16:01:43

Sector11
Banned
Registered: 2010-02-25
Posts: 10

Re: conky configs and screenshots!

mr_comic wrote:
Sector11 wrote:

No, está bien para todos los fondos ligeros.
No, it would look good on any light wallpaper.

Me emocioné de me que contestaras en español XD
Ok, its basically a conky-colors in panel mode but with changed colors, no lua and moved in the background to fit the wallpaper.

México - español
Argentina - castellano
Buenos Aires - porteño
Sector11 - we're not sure! English and profanity with a sprinkle of French, Italian, German and porteño. lol

What is panel mode?
Conky colors as in the program "Conky-Colors"

default_color 0f0f0f

color0 0c0c0c
color1 090909
color2 0d0d0d

are basically all black why not do this:

default_color 0f0f0f
# default color e5e5e5

and remove all calls for colour!

Then if you use a dark background just change the default colour.

Last edited by Sector11 (2011-02-23 16:10:21)

Offline

#668 2011-02-24 17:22:44

mr_comic
Member
From: México
Registered: 2011-02-20
Posts: 52
Website

Re: conky configs and screenshots!

Sector11 wrote:

What is panel mode?
Conky colors as in the program "Conky-Colors"

default_color 0f0f0f

color0 0c0c0c
color1 090909
color2 0d0d0d

are basically all black why not do this:

default_color 0f0f0f
# default color e5e5e5

and remove all calls for colour!

Then if you use a dark background just change the default colour.

Conky Colors as in the program, yeah but i took of the lua. In the latest build of conky-colors they have board/panel mode that looks like this http://bit.ly/hBDNpC
Also i know its all black but it was basically cause i never finished it xD i was triyng shades of the same color but i stuck with those in order to look nice with the wall paper, also thats why it is put in that way in the desktop, probably ill change it in a few days when i change of wallpaper :3

Porteño suena a Costeño :3

Offline

#669 2011-02-24 20:15:30

Sector11
Banned
Registered: 2010-02-25
Posts: 10

Re: conky configs and screenshots!

mr_comic wrote:

Conky Colors as in the program, yeah but i took of the lua. In the latest build of conky-colors they have board/panel mode that looks like this http://bit.ly/hBDNpC
Also i know its all black but it was basically cause i never finished it xD i was triyng shades of the same color but i stuck with those in order to look nice with the wall paper, also thats why it is put in that way in the desktop, probably ill change it in a few days when i change of wallpaper :3

I'm like that to, always building, changing.  smile

mr_comic wrote:

Porteño suena a Costeño :3

Sí, llamado para el "puerto"

Offline

#670 2011-03-10 00:54:51

cra1g321
Member
Registered: 2011-01-24
Posts: 58

Re: conky configs and screenshots!

Beelzebud wrote:

I was up until around 5:30 AM tinkering with this.   Once I got going I couldn't stop.   The idea hit me, and it had to be done:

http://i193.photobucket.com/albums/z299/Beelzebud420/th_ArchNewConky.png

Nice work, simple & efficient yet still cool smile


Free Vultr $20 Credit = http://www.vultr.com/?ref=6934143-3B

Offline

#671 2011-03-10 13:32:04

dipilibupap
Member
Registered: 2011-02-05
Posts: 47

Re: conky configs and screenshots!

cra1g321 wrote:
Beelzebud wrote:

I was up until around 5:30 AM tinkering with this.   Once I got going I couldn't stop.   The idea hit me, and it had to be done:

http://i193.photobucket.com/albums/z299/Beelzebud420/th_ArchNewConky.png

Is the wallpaper available?


http://dotshare.it    >>    #dotshare@freenode

Offline

#672 2011-03-14 01:52:16

Sector11
Banned
Registered: 2010-02-25
Posts: 10

Re: conky configs and screenshots!

I revamped my weather conky today ...

thmb_revamped.png

On the left is the work in progress and then the old and new look!

PLEASE NOTE: You need to sign up for a 7 day KEY and ID for this - or cut it off at 4 if that's what you have.

# To use #! in a conky use: ${exec echo '#!'}
# OB_Weather

background no
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints below,skip_taskbar,skip_pager
own_window_title OB_Weather
own_window_class OB_Weather

double_buffer yes
use_spacer right # yes is NOT an option - left right or none
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 CCCCCC #Marks Grey 778899 #LightSlateGrey
color2 7095BB #Marks Blue #FF8C00 #Darkorange
color3 C6FF8E #a light green #FFF00 #Chartreuse
color4 FFA07A #LightSalmon
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 48D1CC #MediumTurquoise
color8 FFFF00 #Yellow
color9 FF0000 #Red

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

update_interval 1800
imlib_cache_size 0
gap_x 1195          ### left &right
gap_y 20            ### up & down
minimum_size 80 920 ### width, height ### make this equal to what is used for the image
maximum_width 80    ### make this equal to the minimum width
alignment tl        ### Aligned position on screen: tl, tr, tm, bl, br, bm, ml, mr
xftfont monospace:size=8

TEXT
${execpi 1800 conkyForecast --location=ARBA0009 --template=~/Conky/templates/ob_weather.template}

ob_weather.template

${color3}${font monospace:bold:size=9}${alignc}[--datatype=DW]${font}
${voffset -5}${color2}${hr}${image [--datatype=WI] -p 3,21 -s 40x40}${image [--datatype=MI] -p 53,21 -s 16x16}
${voffset 18}${goto 50}${color1}${font monospace:bold:size=12}[--datatype=HT --night --hideunits]${font}
${goto 50}====
${goto 50}${font monospace:bold:size=12}${color9}[--datatype=LT --night --hideunits]${color}${font}
${voffset -13}${color8}[--startday=0 --datatype=HT --night --hideunits]${color} ${color2}[--startday=0 --datatype=LT --night --hideunits]
${voffset 5}${color1}${alignc}[--datatype=WS] [--datatype=WD]
${voffset 5}${alignc}UV: [--datatype=UI]
${alignc}[--datatype=UT]
${voffset 5}${alignc}P: [--datatype=BR]
${alignc}[--datatype=BD]
${alignc}H: [--datatype=HM]
${voffset 5}[--datatype=SR --startday=0] | [--datatype=SS --startday=0]
${alignc}[--datatype=DL --startday=0]
${voffset -5}${color2}${hr}
${color3}${font monospace:bold:size=9}${alignc}[--datatype=DW --startday=1]${font}
${voffset 5}${color8}${goto 53}[--datatype=HT --startday=1 --night --hideunits]${color}
${goto 53}===${image [--datatype=WI --startday=1] -p 3,244 -s 40x40}
${color2}${goto 53}[--datatype=LT --startday=1 --hideunits]${color}
${voffset 5}[--datatype=SR --startday=1] | [--datatype=SS --startday=1]
${alignc}[--datatype=DL --startday=1]
${voffset -5}${color2}${hr}
${color3}${font monospace:bold:size=9}${alignc}[--datatype=DW --startday=2]${font}
${voffset 5}${color8}${goto 53}[--datatype=HT --startday=2 --hideunits --hideunits]${color}
${goto 53}===${image [--datatype=WI --startday=2] -p 3,338 -s 40x40}
${color2}${goto 53}[--datatype=LT --startday=2 --hideunits]${color}
${voffset 5}[--datatype=SR --startday=2] | [--datatype=SS --startday=2]
${alignc}[--datatype=DL --startday=2]
${voffset -5}${color2}${hr}
${color3}${font monospace:bold:size=9}${alignc}[--datatype=DW --startday=3]${font}
${voffset 5}${color8}${goto 53}[--datatype=HT --startday=3 --hideunits]${color}
${color2}${goto 53}===${image [--datatype=WI --startday=3] -p 3,438 -s 40x40}
${goto 53}[--datatype=LT --startday=3 --hideunits]${color}
${voffset 5}[--datatype=SR --startday=3] | [--datatype=SS --startday=3]
${alignc}[--datatype=DL --startday=3]
${voffset -5}${color2}${hr}
${color3}${font monospace:bold:size=9}${alignc}[--datatype=DW --startday=4]${font}
${voffset 5}${color8}${goto 53}[--datatype=HT --startday=4 --hideunits]${color}
${color2}${goto 53}===${image [--datatype=WI --startday=4] -p 3,536 -s 40x40}
${goto 53}[--datatype=LT --startday=4 --hideunits]${color}
${voffset 5}[--datatype=SR --startday=4] | [--datatype=SS --startday=4]
${alignc}[--datatype=DL --startday=4]
${voffset -5}${color2}${hr}${color}
${color3}${font monospace:bold:size=9}${alignc}[--datatype=DW --startday=5]${font}
${voffset 5}${color8}${goto 53}[--datatype=HT --startday=5 --hideunits]${color}
${color2}${goto 53}===${image [--datatype=WI --startday=5] -p 3,634 -s 40x40}
${goto 53}[--datatype=LT --startday=5 --hideunits]${color}
${voffset 5}[--datatype=SR --startday=5] | [--datatype=SS --startday=5]
${alignc}[--datatype=DL --startday=5]
${voffset -5}${color2}${hr}${color}
${color3}${font monospace:bold:size=9}${alignc}[--datatype=DW --startday=6]${font}
${voffset 5}${color8}${goto 53}[--datatype=HT --startday=6 --hideunits]${color}
${color2}${goto 53}===${image [--datatype=WI --startday=6] -p 3,732 -s 40x40}
${goto 53}[--datatype=LT --startday=6 --hideunits]${color}
${voffset 5}[--datatype=SR --startday=6] | [--datatype=SS --startday=6]
${alignc}[--datatype=DL --startday=6]
${color2}${hr}${color}

The own_window section is done the way it is so that I have "right click" access to my OpenBox menus over the conky.

Offline

#673 2011-03-14 01:54:51

Sector11
Banned
Registered: 2010-02-25
Posts: 10

Re: conky configs and screenshots!

dipilibupap wrote:
cra1g321 wrote:
Beelzebud wrote:

I was up until around 5:30 AM tinkering with this.   Once I got going I couldn't stop.   The idea hit me, and it had to be done:

http://i193.photobucket.com/albums/z299/Beelzebud420/th_ArchNewConky.png

Is the wallpaper available?

+1 - Nice conky, nice wallpaper

Offline

#674 2011-03-14 17:26:31

quiquex
Member
Registered: 2011-01-25
Posts: 34

Re: conky configs and screenshots!

Based on Minimalis Conky 1.0

# Author : AleAngel
# Email : sifrasabljarka@yahoo.com

th_Screenshot.png

background yes
font ubuntu:size=8
xftfont ubuntu:size=8
use_xft yes
xftalpha 0.6
update_interval 1.0
total_run_times 0
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades yes
draw_outline yes
draw_borders no
draw_graph_borders no
minimum_size 200
maximum_width 270
default_color ffffff
default_shade_color 000000
draw_outline no
alignment top_right
gap_x 12
gap_y 45
no_buffers yes
cpu_avg_samples 2
override_utf8_locale yes
uppercase no
use_spacer none

TEXT
${image ~/.conkyx/icon/Television-Alt.png -p 10,15 -s 32x32} ${goto 50}SYSTEM
${goto 50}Host: ${nodename} 
${goto 50}Kernel: $kernel $machine
${goto 50}Uptime: $uptime_short

${image ~/.conkyx/icon/Clock.png -p 10,73 -s 32x32} ${goto 50}DATE & TIME
${goto 50}Date${goto 75}:${goto 85}${time %A, %d %b %Y}
${goto 50}Time${goto 75}:${goto 85}${time %H:%M %p}

${image ~/.conkyx/icon/Task-Manager.png -p 10,120 -s 32x32} ${voffset 6}${goto 50}PROCCESSOR
${goto 50}CPU 1: ${cpubar cpu0 5,65}  ${cpu cpu0}% @ ${freq_g cpu0} Ghz
${goto 50}CPU 2: ${cpubar cpu1 5,65}  ${cpu cpu1}% @ ${freq_g cpu1} Ghz
${goto 50}Temp: ${hwmon temp 1}°C

${image ~/.conkyx/icon/Memory.png -p 10,190 -s 32x32} ${goto 50}MEMORY
${goto 50}RAM:   ${membar 5,65}  $memperc%
${goto 50}Swap: ${swapbar 5,65}  $swapperc%
${goto 50}Processes: $processes
${goto 50}Running: $running_processes

${goto 50}${voffset 8}${image ~/.conkyx/icon/Gear.png -p 10,285 -s 32x32} ${goto 50}PROCESSES $alignc ${goto 185} ${alignr}MEM   ${alignr}CPU
${goto 50}CPU TIME $stippled_hr
${goto 50}${top name 1} ${goto 175}$alignr${top mem 1} $alignr${top cpu 1}
${goto 50}${top name 2} ${goto 175}$alignr${top mem 2} $alignr${top cpu 2}
${goto 50}${top name 3} ${goto 175}$alignr${top mem 3} $alignr${top cpu 3}
${goto 50}${top name 4} ${goto 175}$alignr${top mem 4} $alignr${top cpu 4}
${goto 50}TOTAL MEM $stippled_hr
${goto 50}${top_mem name 1} ${goto 175}$alignr${top_mem cpu 1} $alignr${top_mem mem 1}
${goto 50}${top_mem name 2} ${goto 175}$alignr${top_mem cpu 2} $alignr${top_mem mem 2}
${goto 50}${top_mem name 3} ${goto 175}$alignr${top_mem cpu 3} $alignr${top_mem mem 3}
${goto 50}${top_mem name 4} ${goto 175}$alignr${top_mem cpu 4} $alignr${top_mem mem 4}

${image ~/.conkyx/icon/Hard-Drive.png -p 10,450 -s 32x32} ${goto 50}HDD
${goto 50}Root: ${fs_bar 4,55 /}  ${fs_used /} / ${fs_size /}
${goto 50}Home: ${fs_bar 4,55 /home/robvelor}  ${fs_used /home/robvelor} / ${fs_size /home/robvelor}
${goto 50}HD160: ${fs_bar 4,55 /media/HD160GB}  ${fs_used /media/HD160GB} / ${fs_size /media/HD160GB}

${image ~/.conkyx/icon/Connectiions.png -p 10,520 -s 32x32} ${goto 50}LAN
${goto 50}Download: ${downspeed eth0}
${goto 50}Upload: ${upspeed eth0}
${goto 50}Total Download: ${totaldown eth0} 

${image ~/.conkyx/icon/Task-Manager.png -p 10,590 -s 32x32} ${goto 50}GPU
${goto 50}Core Temp: ${nvidia temp}°C
${goto 50}Ambient Temp: ${nvidia ambient}°C
${goto 50}GPU Speed: ${nvidia gpufreq}Mhz
${goto 50}Mem Speed: ${nvidia memfreq}Mhz

Offline

#675 2011-03-14 17:44:10

Sector11
Banned
Registered: 2010-02-25
Posts: 10

Re: conky configs and screenshots!

quiquex wrote:

Based on Minimalis Conky 1.0

Nice one!  Where did you get the images you use?
Those are really sharp, at first I thought font and I was going to grab it but ...

... you threw a curve ball ... Stiiiiiiiii...rike ONE!

Two more and I'm out!

Last edited by Sector11 (2011-03-14 17:44:50)

Offline

Board footer

Powered by FluxBB