SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1026 2010-12-04 20:19:06

Chewie
#! CrunchBanger
From: /dev/null
Registered: 2010-12-01
Posts: 103

Re: Conky Help

Hmmm it does something weird, maybe the gmail script doesn't like my conky?

tNmZjbQ


#!CrunchBang Linux ~$ apt-get into it | #!(Statler:R20101205): OpenBox | Like To Program?
                          “The cure for boredom is curiosity. There is no cure for curiosity.”

Offline

Be excellent to each other!

#1027 2010-12-04 20:22:18

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,171

Re: Conky Help

Post your script and conkyrc?


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Github

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

#1028 2010-12-04 20:23:31

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 9,418

Re: Conky Help

Try putting this in your conky:

${execi 600 /path/to/gmailscript n}

Offline

#1029 2010-12-04 20:35:39

Chewie
#! CrunchBanger
From: /dev/null
Registered: 2010-12-01
Posts: 103

Re: Conky Help

Okay so I threw and 'Emails:' In front of it and came up with¬

tNmZjcg

That's how is supposed to look?

And I know it works cause I just got a an update in my conky to '21' emails. (the forum replaies subscription emails) wink


#!CrunchBang Linux ~$ apt-get into it | #!(Statler:R20101205): OpenBox | Like To Program?
                          “The cure for boredom is curiosity. There is no cure for curiosity.”

Offline

#1030 2010-12-04 20:42:37

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 9,418

Re: Conky Help

For just showing the number of emails then yes thats how its supposed to look.

Offline

#1031 2010-12-04 21:12:16

Chewie
#! CrunchBanger
From: /dev/null
Registered: 2010-12-01
Posts: 103

Re: Conky Help

Okay, thats all I actually need anyways, thank you for all your help.

---------------------------------------------

Edit: I've moved and merged the discussion from Viauri's conky support request into our main Conky help thread.

--omns smile


#!CrunchBang Linux ~$ apt-get into it | #!(Statler:R20101205): OpenBox | Like To Program?
                          “The cure for boredom is curiosity. There is no cure for curiosity.”

Offline

#1032 2010-12-05 00:13:51

friTTe
#! CrunchBanger
From: Sweden
Registered: 2010-06-20
Posts: 150
Website

Re: Conky Help

mmm tint...conky with g-mail...debian inside wallpaper...darkish..lovely big_smile

Offline

#1033 2010-12-05 15:38:29

Unia
#! Octo-portal-pussy
From: The Netherlands
Registered: 2010-07-17
Posts: 4,171

Re: Conky Help

Who can help me getting a background and border to my conky?
I'm using a modified version of my previous lua script, but can't figure out how to change the background and border.
These are the original lines for the background and border:

draw_arectangle(0, 0, 200, 660, 20, 0x000000, 0.15, 0, 0x92CC00, 0.4)
draw_arectangle(1, 1, 198, 658, 18, 0x000000, 0.0, 2, 0x92CC00, 0.4)

How the original looks:
tNmRlMQ

How it needs to be:
tNmZxYg

So the only things that have to change is the shape, width and length. I want it to look like my tint2. How can I do this?

EDIT: Took another go at it. The only thing that needs to change now is the width, but I just can get it to change.
Lines in lua script:

draw_arectangle(1, 1, 200, 766, 20, 0x000000, 0.15, 0, 0x92CC00, 0.4)
draw_arectangle(1, 0, 198, 770, 0, 0x000000, 0.15, 2, 0x92CC00, 0.4)

How it looks now:
tNmZxZw

EDIT2: Never mind, found it myself.

draw_arectangle(72, 1, 35, 766, 0, 0x000000, 0.15, 0, 0x92CC00, 0.4)
draw_arectangle(72, 0, 37, 770, 0, 0x000000, 0.15, 2, 0x92CC00, 0.4)

To see what it looks like, go to the December screenshot thread!

Last edited by Unia (2010-12-05 17:38:11)


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Github

I am a #! forum moderator. Feel free to send me a PM with any question you have!

Offline

#1034 2010-12-06 09:11:46

Leeeeeevi
New Member
Registered: 2009-02-04
Posts: 9

Re: Conky Help

Hey all. I'm having a bit of trouble getting my horizontal conky to display correctly. For some reason the bar expands well below the text... but I can't see any reason why this is happening in my config file.

example:
QbUGZl.jpg

my conkyrc:

 avoid flicker
double_buffer yes

#own window to run simultanious 2 or more conkys
own_window  yes

own_window_transparent no
own_window_type override
own_window_hints undecorate,sticky,skip_taskbar,skip_pager
background yes

total_run_times 0

#borders
draw_borders no
border_inner_margin 0
border_outer_margin 0

#shades
draw_shades no

#position
gap_x 0
gap_y 0
alignment top_middle

#behaviour
update_interval 1
update_interval_on_battery 5

#colour
default_color  ecedee
#default_shade_color 101010
own_window_colour 191919

#font
use_xft yes
#font terminus:pixelsize=12
font sans:size=8

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

#to prevent window from moving
use_spacer yes
minimum_size 1366 15
maximum_size 1366 15
maximum_width 1366

# Network interface must have an ip address to be considered up
if_up_strictness address

TEXT
${alignc}${if_mpd_playing}${mpd_smart 50} ${color 606060}|${color}${endif}${kernel} ${color 606060}|${color} Uptime: ${uptime_short} ${color 606060}|${color} RAM: ${membar 7,60} ${color 606060} |${color} Root: ${fs_bar 7,60 /}  Home: ${fs_bar 7,60 /home} ${color 606060} |${color} Down: ${totaldown} Up: ${totalup}${color 606060}| ${color}Battery: ${battery_short BAT0} /  ${battery_time BAT0} ${color 606060}
  

any advice much appreciated!

Last edited by Leeeeeevi (2010-12-06 09:15:15)

Offline

#1035 2010-12-06 12:19:13

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,276

Re: Conky Help

^ Have you tried reducing "minimum_size" and "maximum_size"?  I'd try changing them to "1366 10".

EDIT:  There's no "maximum_size" in conky, just "maximum_width".  Maybe try "use_spacer no"?

Last edited by pvsage (2010-12-06 12:22:53)

Offline

#1036 2010-12-06 12:36:35

Leeeeeevi
New Member
Registered: 2009-02-04
Posts: 9

Re: Conky Help

Yeah, I've tried changing all of those (I figured maximum_size probably wasn't a real variable but added it in anyway on the off chance that it just wasn't included on the conky variables page for whatever reason), none of them effect the vertical space taken up. Could've sworn that was how I fixed this issue last time it came up hmm (which was admittedly pretty long ago).
use_spacer no doesn't seem to do anything either.

Offline

#1037 2010-12-06 12:47:01

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,276

Re: Conky Help

I think I see a space or two on the line after your text.  Have you tried deleting that line entirely in a graphical editor like Gedit?  (I know certain CLI editors like Nano insist on a new line character after the last line of text...)

Offline

#1038 2010-12-06 13:27:48

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,407
Website

Re: Conky Help

minimum_size 1366 15
#maximum_size 1366 15
maximum_width 1366

maximum_size doesn't exist - it should in my opinion

and a few other changes that don't apply here:  mpd and battery and it looks good:

http://dl.dropbox.com/u/16070765/full_levi.png

and changing it to:

minimum_size 1366 10

was even better.

Last edited by Sector11 (2010-12-06 13:33:57)

Offline

#1039 2010-12-06 13:35:23

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,407
Website

Re: Conky Help

pvsage wrote:

I think I see a space or two on the line after your text.  Have you tried deleting that line entirely in a graphical editor like Gedit?  (I know certain CLI editors like Nano insist on a new line character after the last line of text...)


I missed that - I copied from the line after TEXT up ... it does work!  smile

Offline

#1040 2010-12-06 13:39:19

Leeeeeevi
New Member
Registered: 2009-02-04
Posts: 9

Re: Conky Help

pvsage wrote:

I think I see a space or two on the line after your text.  Have you tried deleting that line entirely in a graphical editor like Gedit?  (I know certain CLI editors like Nano insist on a new line character after the last line of text...)

success! (up until just then I had indeed been using nano)

Sector11 wrote:

and a few other changes that don't apply here:  mpd and battery and it looks good:
http://dl.dropbox.com/u/16070765/full_levi.png

Weird- both the mpd and battery parts are working fine for me. Must just be differences between our systems. (eg BAT0 could be BAT1 for you, etc)

thanks for the help guys smile

Last edited by Leeeeeevi (2010-12-06 13:40:59)

Offline

#1041 2010-12-06 14:10:10

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,407
Website

Re: Conky Help

Leeeeeevi wrote:

Weird- both the mpd and battery parts are working fine for me. Must just be differences between our systems. (eg BAT0 could be BAT1 for you, etc)

thanks for the help guys smile

Of course it works for you, I don't have mpd installed and I have a desktop, it's kinda heavy for my lap, and even more complications when I add the monitor and keyboard. lol


No problem, we do what we can.

Last edited by Sector11 (2010-12-06 14:12:42)

Offline

#1042 2010-12-09 06:49:45

doicomehereoften
New Member
Registered: 2010-12-09
Posts: 8

Re: Conky Help

Hey guys!  Been using #! 9.04 on my netbook since I got it about a year and a half ago and just installed Statler.

I've also never been interested in doing crazy things with my conky, but suddenly I find myself with the urge.  It's mostly because of screenspace on the netbook.  I find I can maximize my vertical real estate by moving tint2 to one side, but then I can't have the date and time since that doesn't rotate with the panel.

So, the solution I thought would work is to use conky to display the date and time, rotated 90*.  To my dismay, this apparently requires some lua scripting, which I'm having trouble figuring out, even though I've copied stuff from different examples I was able to find on deviantart.

Here's my conkyrc:

# -- Conky settings -- #
background no
update_interval 1

cpu_avg_samples 2
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048
imlib_cache_size 0

own_window_type panel
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,above
own_window yes
own_window_transparent yes
own_window_argb_visual yes
own_window_title text widget v1.2

border_inner_margin 0
border_outer_margin 0

alignment tl
minimum_size 20 594

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


# -- Lua load -- #
lua_load ~/location/of/vertical/text.lua
lua_draw_hook_post draw_text2

#at least one line (empty or not) after TEXT
TEXT

And the lua code that I've tried to modify:

require 'cairo'
--FUNCTION FOR INFOS TEXT , KERNEL ....
function conky_draw_text2()
    local h=0
    if conky_window ~=nil then h= conky_window.height end
    text_settings={
        --BEGIN OF PARAMETERS
--info:
        {text=conky_parse("${time %d %b %Y}$alignr${time %T}"),
        angle=90,
        font_name="Bitstream Vera Sans Mono",
        font_size=18,
        x=0,
        y=5,
        --09101a
        --715dba
        colour={0,0xa9a9a9,0}
        }  ,
        
    }
    
    
--------------END OF PARAMETERS----------------


    if conky_window == nil then return end
    if tonumber(conky_parse("$updates"))<3 then return end
    local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
    cr = cairo_create (cs)
    
    for i,v in pairs(text_settings) do
        display_text(v)
    end
    
    cairo_destroy(cr)
    cairo_surface_destroy(cs)
end

Any hints, directions, or different code snippets are welcome!

Offline

#1043 2010-12-09 13:23:06

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,407
Website

Re: Conky Help

doicomehereoften wrote:

Any hints, directions, or different code snippets are welcome!

OK, I get errors with that as well:

Conky: llua_do_call: function conky_draw_text2 execution failed: /home/sector11/conky/doicomehereoften.lua:32: attempt to call global 'display_text' (a nil value)
Conky: llua_do_call: function conky_draw_text2 execution failed: /home/sector11/conky/doicomehereoften.lua:32: attempt to call global 'display_text' (a nil value)
Conky: llua_do_call: function conky_draw_text2 execution failed: /home/sector11/conky/doicomehereoften.lua:32: attempt to call global 'display_text' (a nil value)
Conky: llua_do_call: function conky_draw_text2 execution failed: /home/sector11/conky/doicomehereoften.lua:32: attempt to call global 'display_text' (a nil value)

and not knowing LUA at all I can't help with that.

Where did you get this code I would like to se it at it's original location, maybe there is something you missed.

Offline

#1044 2010-12-09 13:40:15

stocc
Member
From: United Kingdom
Registered: 2009-10-15
Posts: 10

Re: Conky Help

I don't know lua either, but it looks to me as though you've defined a function called conky_draw_text2, but you're then trying to call something called display_text. Perhaps you need to call conky_draw_text2? I'm not on a machine with conky at the moment, so I can't test it myself.

Offline

#1045 2010-12-09 18:21:00

doicomehereoften
New Member
Registered: 2010-12-09
Posts: 8

Re: Conky Help

Thanks for looking at this guys!

The original is contained in the zip file here: http://fav.me/d2ssfrt

When you enlarge the image, you can see it faintly along the left edge of the screen, reporting the kernel & build. I'm trying to get that to display date and time, on the other side of the screen.

It does contain 3 conkyrc's to get all that running.  The one that does the sideways text is conkyrc1.

Also, the lua file that comes with it is kind of long, so it's possible that there's something in the lua file that I should have copied over that I didn't.  Not sure what that might be though.

Offline

#1046 2010-12-09 19:10:46

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,407
Website

Re: Conky Help

doicomehereoften wrote:

Thanks for looking at this guys!

The original is contained in the zip file here: http://fav.me/d2ssfrt

When you enlarge the image, you can see it faintly along the left edge of the screen, reporting the kernel & build. I'm trying to get that to display date and time, on the other side of the screen.

It does contain 3 conkyrc's to get all that running.  The one that does the sideways text is conkyrc1.

Also, the lua file that comes with it is kind of long, so it's possible that there's something in the lua file that I should have copied over that I didn't.  Not sure what that might be though.

Well this is bad... it worked the first time....
thmb_wlourf.png
so I did a 

killall conky

and ran all three...
thmb_2010-12-09--1291921665_1280x1024_scrot.png
I'll contact wlourf and see what he can do, it's his script.
I'll be back

Offline

#1047 2010-12-09 23:08:55

doicomehereoften
New Member
Registered: 2010-12-09
Posts: 8

Re: Conky Help

Update:

So I've been playing with this a little bit more.

stocc made a good call on the display_text thing.  I found that it was the last function at the end of lua script I was copying from, so I added it to my lua scriipt and now I'm getting a different error.  conky is claiming that there's an error at the line marked with a boatload of *'s in the below code.  It's part of an if...then statement.

Here's the error message:

Conky: llua_do_call: function conky_draw_text2 execution failed: /home/jeremy/documents/cairostuff/attempt.lua:72: attempt to get length of field '?' (a number value)

Here's my new lua script:

require 'cairo'
--FUNCTION FOR INFOS TEXT , KERNEL ....
function conky_draw_text2()
    local h=0
    if conky_window ~=nil then h= conky_window.height end
    text_settings={
        --BEGIN OF PARAMETERS
--info:
        {text=conky_parse("${time %d %b %Y}$alignr${time %T}"),
        angle=90,
        font_name="Sans Serif",
        font_size=8,
        x=0,
        y=5,
        --09101a
        --715dba
        colour={0,0xa9a9a9,0}
        }  ,
        
    }
    
    
--------------END OF PARAMETERS----------------


    if conky_window == nil then return end
    if tonumber(conky_parse("$updates"))<3 then return end
    local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
    cr = cairo_create (cs)
    
    for i,v in pairs(text_settings) do
        display_text(v)
    end
    
    cairo_destroy(cr)
    cairo_surface_destroy(cs)
end

function display_text(t)
    if t.text==nil then t.text="Conky is good for you !" end
    if t.x==nil then t.x = conky_window.width/2 end
    if t.y==nil then t.y = conky_window.height/2 end
    if t.colour==nil then t.colour={{1,0xFFFFFF,1}} end
    if t.font_name==nil then t.font_name="Free Sans" end
    if t.font_size==nil then t.font_size=14 end
    if t.angle==nil then t.angle=0 end
    if t.italic==nil then t.italic=false end
    if t.oblique==nil then t.oblique=false end
    if t.bold==nil then t.bold=false end
    if t.radial ~= nil then
        if #t.radial~=6 then 
            print ("error in radial table")
            t.radial=nil 
        end
    end
    if t.orientation==nil then t.orientation="ww" end
    if t.h_align==nil then t.h_align="l" end
    if t.v_align==nil then t.v_align="b" end    
    
    cairo_save(cr)
    cairo_translate(cr,t.x,t.y)
    cairo_rotate(cr,t.angle*math.pi/180)
    local slant = CAIRO_FONT_SLANT_NORMAL
    local weight =CAIRO_FONT_WEIGHT_NORMAL
    if t.italic then slant = CAIRO_FONT_SLANT_ITALIC end
    if t.oblique then slant = CAIRO_FONT_SLANT_OBLIQUE end
    if t.bold then weight = CAIRO_FONT_WEIGHT_BOLD end
    cairo_select_font_face(cr, t.font_name, slant,weight)
    cairo_set_font_size(cr,t.font_size)
    
    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
    local te=cairo_text_extents_t:create()
    cairo_text_extents (cr,t.text,te)
    if #t.colour==1 then 
        cairo_set_source_rgba(cr,rgb_to_r_g_b(t.colour[1]))
    else
        local pat
        if t.radial==nil then
            local pts=linear_orientation(t,te)
            pat = cairo_pattern_create_linear (pts[1],pts[2],pts[3],pts[4])
        else
            pat = cairo_pattern_create_radial (t.radial[1],t.radial[2],t.radial[3],t.radial[4],t.radial[5],t.radial[6])
        end
        
        for i=1, #t.colour do
            cairo_pattern_add_color_stop_rgba (pat, t.colour[i][1], rgb_to_r_g_b(t.colour[i]))
        end
        cairo_set_source (cr, pat)
        cairo_pattern_destroy(pat)
    end
    
    local mx,my=0,0
    
    if t.h_align=="c" then
        mx=-te.width/2
    elseif t.h_align=="r" then
        mx=-te.width
    end
    if t.v_align=="m" then
        my=-te.height/2-te.y_bearing
    elseif t.v_align=="t" then
        my=-te.y_bearing
    end
    cairo_move_to(cr,mx,my)
    
    cairo_show_text(cr,t.text)
    cairo_stroke(cr)
    cairo_restore(cr)
end

The conkyrc is the same as from my previous post.  I think this means I'm getting close....

Offline

#1048 2010-12-11 15:33:53

glenmo
Member
Registered: 2008-12-17
Posts: 16

Re: Conky Help

anyone know why my conky window is so wide, and how i can fix it?  i've turned on borders so you can see it.

i've played with the maximum_width setting, and all it seems to do is push the text out of the box.

screenshot

conkyrc:

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal
own_window_transparent yes
own_window_argb_visual yes
#own_window_argb_value
own_window_hints undecorated,below,skip_taskbar,sticky
background yes

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

# fiddle with window
use_spacer none
use_xft yes

# Update interval in seconds
update_interval 1.0

# Minimum size of text area
#minimum_size 400 5
#maximum_width 400

# Draw shades?
draw_shades no

# Text stuff
draw_outline no # amplifies text if yes
draw_borders yes  # usually no, but debugging the config so yes

uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
#stippled_borders 8

# border margins
#border_margin 4

# border width
#border_width 1

# Default colors and also border colors, grey90 == #e5e5e5
default_color white
default_shade_color black
default_outline_color white

#own_window_colour #000000
#own_window_transparent yes

# 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
gap_x 0
gap_y 0

# stuff after 'TEXT' will be formatted on screen

override_utf8_locale no
xftfont Terminus:size=9
xftalpha 0.5

TEXT

${offset 240}${color slate grey}${time %a, } ${color }${time %e %B %G}
${offset 240}${color slate grey}${time %Z,    }${color }${time %H:%M:%S}
${offset 240}${color slate grey}UpTime: ${color }$uptime
${offset 240}${color slate grey}Kern:${color }$kernel
${offset 240}${color slate grey}CPU:${color } $cpu% ${acpitemp}C
${offset 240}${cpugraph 20,130 000000 ffffff}
${offset 240}${color slate grey}Load: ${color }$loadavg
${offset 240}${color slate grey}Processes: ${color }$processes  
${offset 240}${color slate grey}Running:   ${color }$running_processes

${offset 240}${color slate grey}Highest CPU:
${offset 240}${color #ddaa00} ${top name 1}${top_mem cpu 1}
${offset 240}${color lightgrey} ${top name 2}${top cpu 2}
${offset 240}${color lightgrey} ${top name 3}${top cpu 3}
${offset 240}${color lightgrey} ${top name 4}${top cpu 4}

${offset 240}${color slate grey}Highest MEM:
${offset 240}${color #ddaa00} ${top_mem name 1}${top_mem mem 1}
${offset 240}${color lightgrey} ${top_mem name 2}${top_mem mem 2}
${offset 240}${color lightgrey} ${top_mem name 3}${top_mem mem 3}
${offset 240}${color lightgrey} ${top_mem name 4}${top_mem mem 4}

${offset 240}${color slate grey}MEM:  ${color } $memperc% $mem/$memmax
${offset 240}${membar 3,100}
#${offset 240}${color slate grey}SWAP: ${color }$swapperc% $swap/$swapmax
#${offset 240}${swapbar 3,100}

${offset 240}${color slate grey}ROOT:    ${color }${fs_free /}/${fs_size /}
${offset 240}${fs_bar 3,100 /}
${offset 240}${color slate grey}HOME:  ${color }${fs_free /home}/${fs_size /home}
${offset 240}${fs_bar 3,100 /home}
${offset 240}${color slate grey}TMP:  ${color }${fs_free /tmp}/${fs_size /tmp}
${offset 240}${fs_bar 3,100 /tmp}
#${offset 240}${color slate grey}MUSIC:  ${color }${fs_free /home/glen/mnt/music}/${fs_size /home/glen/mnt/music}
#${offset 240}${fs_bar 3,100 /home/glen/mnt/music}
${offset 240}${color slate grey}NET:  ${hr 2}$color
#${offset 240}${color}Up: ${color }${upspeed eth1} k/s
#${offset 240}${upspeedgraph eth1 20,130 000000 ffffff}
#${offset 240}${color}Down: ${color }${downspeed eth1}k/s${color}
#${offset 240}${downspeedgraph eth1 20,130 000000 ffffff}
${offset 240}${color}Up: ${color }${upspeed eth0} k/s
${offset 240}${upspeedgraph eth0 20,130 000000 ffffff}
${offset 240}${color}Down: ${color }${downspeed eth0}k/s${color}
${offset 240}${downspeedgraph eth0 20,130 000000 ffffff}
#it was a good idea, but need to learn netstat more
#${offset 240}${color slate grey}netstat: ${hr 2}$color
#${offset 240}${execi 30 netstat -an | fold -w25}
#${offset 240}${color slate grey}LOG: ${hr 2}$color
#${offset 240}${execi 30 tail -n3 /var/log/messages | fold -w25}

Offline

#1049 2010-12-11 16:27:31

wlourf
#! CrunchBanger
Registered: 2010-02-13
Posts: 153
Website

Re: Conky Help

@doicomehereoften

Hello,

I think the mistake is here, you wrote (line 17) :

colour={0,0xa9a9a9,0}

(a table of 3 elements)
But you should write :

colour={{0,0xa9a9a9,0}}

a table containing a table of three elements, so you can use gradients like this (blue to red):

colour={{0,0x0000FF,1},{1,0xFF0000,1}}

Be careful, the number after the colour is the opacity , 0 = transparent, 1=opaque



I think you should keep the script with the little HOWTO at the beginning, it can be helpful wink or check this page for more explanations on the way I use colours in tables (this is only my way of doing it in my scripts , not an "official way" ! ),
http://u-scripts.blogspot.com/2010/06/text-widget.html

HTH ;-)

Offline

Be excellent to each other!

#1050 2010-12-11 17:25:32

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,407
Website

Re: Conky Help

glenmo wrote:

anyone know why my conky window is so wide, and how i can fix it?  i've turned on borders so you can see it.

i've played with the maximum_width setting, and all it seems to do is push the text out of the box.

Remove all of these:

${offset 240}

thmb_glenmo.png

Last edited by Sector11 (2010-12-11 17:30:00)

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo