SEARCH

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

You are not logged in.

#401 2012-02-02 03:29:42

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

^^  No that doesn't but this does:

update_interval 0.2

pushed my CPU usage up by 10% though.

# To use #! in a conky use: ${exec echo '#!'}
# Test 203
# conky -c ~/conky/test203 &
# by Sector11

background no
border_inner_margin 400
border_outer_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 yes #no
draw_shades yes #no
no_buffers yes

own_window yes
own_window_type normal #override
own_window_transparent yes
own_window_hints undecorated,sticky,below,skip_taskbar,skip_pager
own_window_title T-200
own_window_class T-200

pad_percents 2
short_units yes
stippled_borders 0
top_name_width 5
uppercase no
use_spacer right
use_xft yes
xftalpha 1.0
xftfont Anonymous Pro:size=9
override_utf8_locale yes

default_color DCDCDC #Gainsboro
color0 FFFFF0 #Ivory
color1 CCCCCC #Marks Grey 778899 #LightSlateGrey
color2 7095BB #Marks Blue #FF8C00 #Darkorange
color3 C6FF8E #Light Green #FFF00 #Chartreuse
color4 FFA07A #LightSalmon
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 48D1CC #MediumTurquoise
color8 FFFF00 #Yellow
color9 FF0000 #Red

default_bar_size  200 25
draw_graph_borders yes


gap_x 10 # left-right
gap_y 10 # up-down
# text_buffer_size 12096 # 256 is minimum
update_interval 0.2

own_window_argb_visual yes

alignment tm
minimum_size 250 14     ## width, height
maximum_width 250       ## width, usually a good idea to equal minimum width

TEXT
${scroll 10 1 Scroll 'text' by 'step' characters showing 'length' number of characters at the same time. The text may also contain variables. 'step' is optional and defaults to 1 if not set. If a var creates output on multiple lines then the lines are placed behind each other separated with a '|'-sign. If you change the textcolor inside scroll it will automatically have it's old value back at the end of scroll. The end and the start of text will be separated by 'length' number of spaces.}

·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

Help fund CrunchBang, donate to the project!

#402 2012-02-02 04:11:32

barrybarrykelly
Member
Registered: 2012-01-25
Posts: 34

Re: Conky v1.9 Thread

You could do the scroll using your own script to basically concatenate all the strings into one big string but you'd be stuck with the same basic problem since the the "speed" is really dependant on the conky refresh rate, the step is just how many characters it moves each cycle with 1 cycle occurring every refresh.

You could decrease the refresh interval and get smoother, faster scrolling but you'd take a bigger hit on the CPU or increase the step and skip a few letters more each time.

Offline

#403 2012-02-02 08:16:29

fortyseven
#! Die Hard
From: Sector 7G
Registered: 2011-12-23
Posts: 514

Re: Conky v1.9 Thread

Sector11 wrote:

What command are you using to "enable text outlines"?  I don't see any.

Never mind:

draw_outline yes
draw_shades yes

Please show an example of how you move it and the shade or outline down'y move.  In my test they do.

It seems I was doing a basic rookie mistake by moving lines around using spaces and the <enter> key instead of using {offset} and {voffset}. roll


on the outside looking in

Offline

#404 2012-02-02 15:37:38

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

fortyseven wrote:
Sector11 wrote:

What command are you using to "enable text outlines"?  I don't see any.

Never mind:

draw_outline yes
draw_shades yes

Please show an example of how you move it and the shade or outline don'y move.  In my test they do.

It seems I was doing a basic rookie mistake by moving lines around using spaces and the <enter> key instead

I'm sorry, moving lines down with [enter] and and using spaces on a line is NOT a basic rookie mistake at all.

It's my preferred way of moving text around if possible.

Where it's not possible is when you have two (or more) conky command outputs on the same line that have variable length outputs. always use a ${goto xx} not an ${offset} command

example:

CPU: 1 ${cpu cpu1}% 2 ${cpu cpu2}% 3 ${cpu cpu3}% 4 ${cpu cpu4}% Avg: ${cpu cpu0}%

and if the output is all less than 10:

CPU: 1: 4% 2: 4% 3: 2% 4: 2% Avg: 3%

what happens if cpu 1 jumps to 34%

CPU: 1: 34% 2: 4% 3: 2% 4: 2% Avg: 10%

notice how everything moved to the right!

Start with a fake text line:

CPU: 1: 000% 2: 000% 3: 000% 4: 000% Avg: 000%

under that another:

CPU: 1: 000% 2: 000% 3: 000% 4: 000% Avg: 000%
CPU: 1: 000%${goto xx}2: 000%${goto xx}3: 000%${goto xx}4: 000%${goto xx}Avg: 000%

Making sure that each ${goto xx} puts the corresponding # under it's counterpart.
Now the values can range from 1 to 100 and the line length doesn't change (except for that very last one).  Add the appropriate ${goto xx} values to the real line and you have it:

CPU: 1: 000% 2: 000% 3: 000% 4: 000% Avg: 000%
CPU: 1: 34%  2: 4%   3: 4%   4: 4%   Avg: 4%

I use to advocate the use of ${voffset} and ${goto} a lot and if you have 2+ cores with the memory to back them got for it, otherwise a conky with hundreds of those commands on an older computer id noticeably different in performance - and a nightmare to code.

I've seen conkys with and ovehttp://crunchbanglinux.org/forums/extensions/pun_bbcode/buttons/Oxygen/code.pngr usage of ${voffset 0}!  Why? conky has to read that and then use cpu process time to move everything 0 pixels.  To a 4 core CPU with 8GB RAM - it less than a drop of water in the ocean - to 800mHz single core CPU with 1GB RAM it's different.

having said that using these command to get special affects is a different matter:

${goto 5}${color1}${cpubar cpu1}${goto5}${color3}${cpugraph cpu1}${color}
    ${voffset -15}${color5}${cpu cpu1}${color}

with enough "spaces" to get the text inside the "bar"

Spacing in Conky and Goto/offset/voffset

Last edited by Sector11 (2012-02-02 15:48:40)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#405 2012-02-03 06:01:27

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: Conky v1.9 Thread

here's a minimal conky
screenshot-1347.png
these change color, largest on right is average cpu, then core 1 and core 2 for the smaller led's

ive set them to show the color changes at 0, 50% and 100% but when running their color is relative to actual cpu% smile

not sure that im completely happy with the look of my lua led's ...oh well smile

--[[
led conky
in conkyrc

lua_load /path/to/sciptname.lua
lua_draw_hook_pre led
TEXT

]]
require 'cairo'

function conky_led()
if conky_window == nil 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)
local updates=tonumber(conky_parse('${updates}'))
if updates>5 then
--#########################################################################################################
--call like so
-- led(xposition,yposition,radius,getcolor(tonumber(conky_parse("${conky variable you want to show}"))))
--only works for % outputs at moment
led(100,30,15,getcolor(tonumber(conky_parse("${cpu cpu0}"))))
led(135,30,10,getcolor(tonumber(conky_parse("${cpu cpu1}"))))
led(165,30,10,getcolor(tonumber(conky_parse("${cpu cpu2}"))))
--#########################################################################################################
end-- if updates>5
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
end-- end main function

function getcolor(num)
local cv=num
local str,stg,stb,sta=0,1,0,1
local mr,mg,mb,ma=1,1,0,1
local fr,fg,fb,fa=1,0,0,1
--for i=0,nd do
if cv<50 then
colr=((mr-str)*(cv/(50)))+str
colg=((mg-stg)*(cv/(50)))+stg
colb=((mb-stb)*(cv/(50)))+stb
cola=((ma-sta)*(cv/(50)))+sta
elseif cv>=50 then
colr=((fr-mr)*((cv-(50))/(50)))+mr
colg=((fg-mg)*((cv-(50))/(50)))+mg
colb=((fb-mb)*((cv-(50))/(50)))+mb
cola=((fa-ma)*((cv-(50))/(50)))+ma
else
colr=br
colg=bg
colb=bb
cola=ba
end
--end
return colr,colg,colb
end

function led (centerx,centery,radius2,xred,xgreen,xblue)
--button middle
cairo_set_source_rgba (cr,xred,xgreen,xblue,1)
cairo_arc(cr,centerx,centery,radius2,0,2*math.pi)
cairo_fill (cr)
--outer ring
pat = cairo_pattern_create_radial(
centerx,--center 1 x
centery,--center 1 y
0,--center 1 radius
centerx,--center 2 x
centery,--center 2 y
radius2--radius 2
)
cairo_pattern_add_color_stop_rgba (pat, 0, 0, 0, 0, 0);
cairo_pattern_add_color_stop_rgba (pat, 0.7, 0, 0, 0, 0.2)
cairo_pattern_add_color_stop_rgba (pat, 0.85, 0, 0, 0, 0);
cairo_pattern_add_color_stop_rgba (pat, 1, 0, 0, 0, 0.2);
cairo_set_source (cr, pat);
cairo_arc (cr, centerx, centery, radius2, 0, 2 * math.pi);
cairo_fill (cr);
cairo_pattern_destroy (pat);
--inner flat
cairo_set_source_rgba (cr,xred,xgreen,xblue,1)
cairo_arc(cr,centerx,centery,radius2*0.7,0,2*math.pi)
cairo_fill (cr)
--center top offset
pat = cairo_pattern_create_radial(
centerx,--center 1 x
centery,--center 1 y
radius2/2.5,--center 1 radius
centerx,--center 2 x
centery,--center 2 y
radius2*0.7--radius 2
)
cairo_pattern_add_color_stop_rgba (pat, 0, 0, 0, 0, 0);
cairo_pattern_add_color_stop_rgba (pat, 1, 0, 0, 0, 0.2);
cairo_set_source (cr, pat);
cairo_arc (cr, centerx, centery, radius2*0.7, 0, 2 * math.pi);
cairo_fill (cr);
cairo_pattern_destroy (pat);
--center white spot
pat = cairo_pattern_create_radial(
centerx,--center 1 x
centery,--center 1 y
radius2/50,--center 1 radius
centerx,--center 2 x
centery,--center 2 y
(radius2*0.7)*0.6--radius 2
)
cairo_pattern_add_color_stop_rgba (pat, 0, 1, 1, 1, 1);
cairo_pattern_add_color_stop_rgba (pat, 1, 1, 1, 1, 0);
cairo_set_source (cr, pat);
cairo_arc (cr, centerx, centery, (radius2*0.7)*0.6, 0, 2 * math.pi);
cairo_fill (cr);
cairo_pattern_destroy (pat);
--overlay
pat = cairo_pattern_create_radial(
centerx-(radius2/2),--center 1 x
centery-(radius2/1.3),--center 1 y
0,--center 1 radius
centerx-(radius2/1.9),--center 2 x
centery-(radius2/1.9),--center 2 y
radius2*1.75--radius 2
)
cairo_pattern_add_color_stop_rgba (pat, 0, 1, 1, 1, 0.6);
cairo_pattern_add_color_stop_rgba (pat, 1, 1, 1,1, 0);
cairo_set_source (cr, pat);
cairo_arc (cr, centerx, centery, radius2+(radius2/20), 0, 2 * math.pi);
cairo_fill (cr);
cairo_pattern_destroy (pat);
end

this is what it looks like when i open gimp
made one of the leds super big
screenshot-2173.png

Last edited by mrpeachy (2012-02-03 06:08:09)

Offline

#406 2012-02-03 07:41:16

fortyseven
#! Die Hard
From: Sector 7G
Registered: 2011-12-23
Posts: 514

Re: Conky v1.9 Thread

@ Sector11

I'm not gonna quote your entire post but thank you so much for taking the time to explain that to me. I'm a bit slow at learning new things but you've put into perspective quite a few things I'd planned on asking in a future post.
In my case, when using outlines or shadows, using the <enter> key messes things up (according to my limited understanding). In shot 1, I used the <enter> key to move text down. As you can see it caused havoc with the outline: tY2xvdA
In shot 2 I used {voffset} which worked nicely: tY2xvdQ
When I first was confronted with this problem, I looked through quite a few other conkyrc's and, as you so rightly said, I saw many with entries like {voffset 0} which initially confused the poo outta me. However, once I'd figured out what {voffset} was, it opened up a whole new way of thinking.

Again, thanks for your time. smile


on the outside looking in

Offline

#407 2012-02-03 14:35:56

Deegan
Member
From: Italy Varese
Registered: 2011-11-19
Posts: 36

Re: Conky v1.9 Thread

Boys today I have installed Mate Desktop on my (Precise Pangolin 12.04), and I have noticed that starting conky in the terminal goes out me::*

WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-2Dc4iE/pkcs11: No such file or directory

Ideas??:D

[*]..< resolved >..[/*]

Last edited by Deegan (2012-02-04 11:13:06)

Offline

#408 2012-02-03 15:12:26

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

@ fortyseven

You're welcome.  It's strange the it works here but not for you.
So I have a question, did you make the change (with [enter]) and then kill conky and restart it?

Newer versions of conky do not "refresh" right on the fly, especially if you re-size the window.  Not sure if it is a bug or a feature.  big_smile

Could you share that conky code, I'd like to test with the original.  big_smile

Last edited by Sector11 (2012-02-03 15:15:25)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#409 2012-02-03 15:13:51

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

mrpeachy wrote:

this is what it looks like when i open gimp
made one of the leds super big
screenshot-2173.png

Put an eyeball in that and it'll be scary!  lol


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#410 2012-02-03 15:36:10

ElderV.LaCoste
#! Die Hard
From: Equarico
Registered: 2010-07-15
Posts: 817

Re: Conky v1.9 Thread

I got a problem.  I have seen this discussed but I haven't figured out if there is a solution to it yet.  Here is the problem:

My Conky should look like this:
tY2x2Yw

Problem is, it looks like this:
tY2x2ZA

It has something to do with International vs. US Accuweather codes.  Does anyone know how to fix this?


Things are not as they seem, nor are they otherwise.
- Lankavatara Sutra

Offline

#411 2012-02-03 15:48:59

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: Conky v1.9 Thread

ElderV.LaCoste wrote:

It has something to do with International vs. US Accuweather codes.  Does anyone know how to fix this?

i assume that your weather parts are through a script run via the conkyrc
the weather script is messing up the information, so in th conkyrc you are switching to the weather font, then expecting a single character to give you your forecast, but instead your getting lots of characters returned and they are all being written in the conkyweather font

probably best to contact the script writer and see if they can fix it

Last edited by mrpeachy (2012-02-03 16:14:52)

Offline

#412 2012-02-03 16:04:15

ElderV.LaCoste
#! Die Hard
From: Equarico
Registered: 2010-07-15
Posts: 817

Re: Conky v1.9 Thread

Thanks Mr. Peachy.  What you said is accurate.


Things are not as they seem, nor are they otherwise.
- Lankavatara Sutra

Offline

#413 2012-02-03 17:03:28

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

ElderV.LaCoste wrote:

I got a problem.  I have seen this discussed but I haven't figured out if there is a solution to it yet.  Here is the problem:

My Conky should look like this:
tY2x2Yw

Problem is, it looks like this:
tY2x2ZA

It has something to do with International vs. US Accuweather codes.  Does anyone know how to fix this?

Why International vs US Accuweather codes?

Post your conky, you are probably missing a closing

${font}

somewhere.

SEXY setup ... you should marry that with mrpeachys v9000 weather script! But that's uses IntelliCast
Just a thought.


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#414 2012-02-03 17:36:20

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

Which reminds me I made a SunMoon RiseSet conky from mepeachy's v9000 LUA script...

On a background I call: "If the heat doesn't get ya; the humidity and UV Index will!"
a7af71173000531.jpg

Conky:

## To use #! in a conky use: ${exec echo '#!'}
## killall conky && conky -c ~/Conky/v9000_sm.conky &
##
## The latest script is a lua only weather script. aka: v9000
## http://crunchbanglinux.org/forums/topic/16100/weather-in-conky/
##
## the file:
## http://dl.dropbox.com/u/19008369/weatheragain9000.lua.tar.gz
##
## mrppeachys LUA Tutorial
## http://crunchbanglinux.org/forums/topic/17246/how-to-using-lua-scripts-in-conky/
##
##
###  Begin Window Settings  ##################################################
# Create own window instead of using desktop (required in nautilus)
own_window yes

# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes

own_window_type normal
own_window_transparent yes #no
own_window_hints undecorated,below,skip_taskbar,skip_pager
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
#own_window_colour black
own_window_class SUN_MOON
own_window_title Sun Moon Rise Set Times

### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
### This option will not work as desired (in most cases) in conjunction with
### 'own_window_type override'
own_window_argb_visual yes

### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
#own_window_argb_value 150

minimum_size 140 540  ##820 260   ## width, height
maximum_width 140     ##820       ## width, usually a good idea to equal minimum width

gap_x 70        ### left &right
gap_y 5        ### up & down

alignment bottom_right
####################################################  End Window Settings  ###
###  Font Settings  ##########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont Anonymous Pro:size=9

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 0
# Force UTF8? requires XFT ###
override_utf8_locale yes

draw_shades no
default_shade_color black

draw_outline no # amplifies text if yes
default_outline_color black

uppercase no
######################################################  End Font Settings  ###
###  Color Settings  #########################################################
default_shade_color grey
default_outline_color black

default_color DCDCDC #Gainsboro
color0 DAA520 #Goldenrod  FFFFF0 #Ivory
color1 778899 #LightSlateGrey
color2 FF8C00 #Darkorange
color3 7FFF00 #Chartreuse
color4 FFA07A #LightSalmon
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 00FFFF #Cyan 48D1CC #MediumTurquoise
color8 FFFF00 #Yellow
color9 FF0000 #Red
#####################################################  End Color Settings  ###
###  Borders Section  ########################################################
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders no
#####################################################  End Borders Secton  ###
###  Miscellaneous Section  ##################################################

# Boolean value, if true, Conky will be forked to background when started.
background no

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
text_buffer_size 512

# Subtract (file system) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

##############################################  End Miscellaneous Section  ###
###  LUA Settings  ###########################################################
## Above and After TEXT - requires a composite manager or it blinks.
##
 lua_load ~/wea_conky/draw_bg.lua
## TEXT
## ${lua conky_draw_bg 10 0 0 0 0 0x000000 0.4}
## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
##
##
## OR Both above TEXT (No composite manager required - no blinking!)
##
## lua_load ~/wea_conky/draw_bg.lua
## lua_draw_hook_pre draw_bg 10 0 0 0 0 0x000000 0.5
## TEXT
##
#######################################################  End LUA Settings  ###

# The all important - How often conky refreshes.
# If you have a "Crey" try: 0.2 - smokin' - but watch the CPU useage go UP!
update_interval 1

#lua_load ~/Conky/LUA/weather9001.lua
#lua_draw_hook_pre conky_weather 
#starts the lua weather data gathering function, call once at top of conkyrc

lua_load ~/v9000/v9000.lua
lua_draw_hook_pre weather
lua_load ~/Conky/templates/t9000_sun-moon_template.lua

TEXT
${lua conky_draw_bg 15 0 0 0 0 0x000000 0.7}  Sunrise ${color3}~ ${color7}Sunset${color}
 Moonrise ${color3}~ ${color7}Moonset${color}

~/Conky/templates/t9000_sun-moon_template.lua

--[[
 The latest script is a lua only weather script. aka: v9000
 http://crunchbanglinux.org/forums/topic/16100/weather-in-conky/

 the file:
http://dl.dropbox.com/u/19008369/v9000.tar.gz

 mrppeachys LUA Tutorial
 http://crunchbanglinux.org/forums/topic/17246/how-to-using-lua-scripts-in-conky/
]]
_G.weather_script = function()--#### DO NOT EDIT THIS LINE ##############
--these tables hold the coordinates for each repeat do not edit #########
top_left_x_coordinate={}--###############################################
top_left_y_coordinate={}--###############################################
--#######################################################################
--SET DEFAULTS ##########################################################
--set defaults do not localise these defaults if you use a seperate display script
default_font="Anonymous Pro"--font must be in quotes
default_font_size=11
default_color=0xffffff--white
default_alpha=1--fully opaque
default_image_width=50
default_image_height=50
--END OF DEFAULTS #######################################################
--START OF WEATHER CODE -- START OF WEATHER CODE -- START OF WEATHER CODE

--start or weather forecast table section
--set start forecast day
start_day=1
--set total forecast days you want to display
number_of_days=10
topy=60
topyy=50 -- topy+(topyy*1)
topx=15
topxx=130
--set coordinates for top lef corners for each repeat
top_left_x_coordinate[1],top_left_y_coordinate[1]        =topx ,topy
   top_left_x_coordinate[2],top_left_y_coordinate[2]     =topx ,topy+(topyy*1)
top_left_x_coordinate[3],top_left_y_coordinate[3]        =topx ,topy+(topyy*2)
   top_left_x_coordinate[4],top_left_y_coordinate[4]     =topx ,topy+(topyy*3)
top_left_x_coordinate[5],top_left_y_coordinate[5]        =topx ,topy+(topyy*4)
   top_left_x_coordinate[6],top_left_y_coordinate[6]     =topx ,topy+(topyy*5)
top_left_x_coordinate[7],top_left_y_coordinate[7]        =topx ,topy+(topyy*6)
   top_left_x_coordinate[8],top_left_y_coordinate[8]     =topx ,topy+(topyy*7)
top_left_x_coordinate[9],top_left_y_coordinate[9]        =topx ,topy+(topyy*8)
   top_left_x_coordinate[10],top_left_y_coordinate[10]   =topx ,topy+(topyy*9)
--########################################################################################
for i=start_day,number_of_days-(start_day-1) do --start of day repeat, do not edit #######
tlx=top_left_x_coordinate[i] --sets top left x position for each repeat ##################
tly=top_left_y_coordinate[i] --sets top left y position for each repeat ##################
--########################################################################################
out({c=0xA4FFA4,a=1,f="Anonymous Pro:bold",fs=11,x=tlx+25,y=tly,txt=forecast_day_short[i].."  "..forecast_date[i].."  "..forecast_month_short[i]})
out({c=0xFAFAEC,a=1,f="Anonymous Pro:bold",fs=11,x=tlx,y=tly+15,txt="S: "..sun_rise_lc[i]})
   out({c=0x48D1CC,a=1,f="Anonymous Pro:bold",fs=11,x=tlx+73,y=tly+15,txt=sun_set_lc[i]})
out({c=0xFAFAEC,a=1,f="Anonymous Pro:bold",fs=11,x=tlx,y=tly+30,txt="M: "..moon_rise_lc[i]})
   out({c=0x48D1CC,a=1,f="Anonymous Pro:bold",fs=11,x=tlx+73,y=tly+30,txt=moon_set_lc[i]})
--########################################################################################
end--of forecast repeat section ##########################################################
--########################################################################################
--END OF WEATHER CODE ----END OF WEATHER CODE ----END OF WEATHER CODE ---
--#######################################################################
end--of weather_display function do not edit this line ##################
--#######################################################################

·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#415 2012-02-03 18:01:49

Deegan
Member
From: Italy Varese
Registered: 2011-11-19
Posts: 36

Re: Conky v1.9 Thread

This is my conkyconfig::* big_smile
dt-7RMB.png

Offline

#416 2012-02-03 18:04:09

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: Conky v1.9 Thread

@ sector11
very nice, you seem to have the measure of the repeat function of v9000 smile

@ elder
v9000 could easily provide the weather outputs your after
where is your current conky from?

Offline

#417 2012-02-03 20:47:15

ElderV.LaCoste
#! Die Hard
From: Equarico
Registered: 2010-07-15
Posts: 817

Re: Conky v1.9 Thread

mrpeachy wrote:

@ elder
v9000 could easily provide the weather outputs your after
where is your current conky from?

The Conky is from here:  http://browse.deviantart.com/customizat … /#/d4lwd83

It also has something to do with the scripts on here for International and US:  http://ubuntuforums.org/showthread.php?t=1156383

I tried messing around with different scripts but I haven't been able to pull it together.


Things are not as they seem, nor are they otherwise.
- Lankavatara Sutra

Offline

#418 2012-02-03 21:08:44

Dodge ram
#! CrunchBanger
Registered: 2011-04-26
Posts: 140

Re: Conky v1.9 Thread

@S11, I know how your bear feels. I feel that way sometimes.

Offline

#419 2012-02-03 22:06:36

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

Dodge ram wrote:

@S11, I know how your bear feels. I feel that way sometimes.

Bear?  That ain't no bear, that's me after all this heat/humidity combo!
You might say I'm "barely" survivin'  hmm
{pun intended - you may boo now!}


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#420 2012-02-03 22:34:11

CBizgreat!
#! Die Hard
Registered: 2011-07-27
Posts: 1,865

Re: Conky v1.9 Thread

Installed new #! release, so was time to make a new conky to go with. This reminded me of a couple things. Whenever having to mess with conky I HATE THE DANG THING !!!! ARGGGGHHHH ! Otherwise it's neat the rest the time. Mmmm, now with that outta the way. Thought would post what came up with. Simple, minimal and pretty much about all the info I really want from conky.

th_Screenshot-02032012-042029PM.png


th_Screenshot-02032012-042109PM.png


Link to Orbitron font.


And the conkyrc for the thing in case blahblahblah ...

##############################################
# Settings
##############################################
background yes
use_xft yes
xftfont Orbitron Bold:size=9
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
##############################################
# Compositing tips:
# Conky can play strangely when used with
# different compositors. I have found the
# following to work well, but your mileage
# may vary. Comment/uncomment to suit.
##############################################
## no compositor
own_window_type override
own_window_argb_visual no

## xcompmgr
#own_window_type override
#own_window_argb_visual yes

## cairo-compmgr 
#own_window_type desktop
#own_window_argb_visual yes
##############################################
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 1920 5
maximum_width 1920
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color FFFFFF
default_shade_color 000000
default_outline_color 828282
alignment bottom_left
gap_x 25
gap_y 0
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
##############################################
#  Output
##############################################
TEXT  


${voffset 75}${font Orbitron:size=22}- RAM = ${font}${voffset -8}${font Orbitron:size=16}$mem ${font} ${alignr 1330}${voffset -7}${font Orbitron:size=20}- CPU =${font}${voffset -5}${font Orbitron:size=16} ${cpu cpu0}% ${font} ${alignr 1210}${voffset -8}${font Orbitron:size=18}- SWAP =${font}${voffset -5}${font Orbitron:size=16} $swapperc% ${font} ${alignr 880} ${voffset -17} ${font Orbitron:size=20}${time %a, %b.%e    %I:%M %p}${font}


Viva la gnu/Linux ! wink

Last edited by CBizgreat! (2012-02-03 22:39:09)


Some common cbiz abbreviations. This will save me time and yet @ same time tell folks what the babble is supposed to mean.

Vll ! = ( Viva la gnu/Linux !)    Vl#!! = ( Viva la #! !)    Last but not least, UD ... OD ! = ( Use Debian ... or die !) tongue

Offline

#421 2012-02-03 22:38:38

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

ElderV.LaCoste wrote:

I tried messing around with different scripts but I haven't been able to pull it together.

Hey buddy ... two things,

1. Even if you think you have the fonts installed - re-install the fonts that come with the script.  Teo made some changes to one of them.

2. Next check the conky to see if you have this line:

own_window_type conky

that's a HUGE NO_NO!!!!!

change it to:

own_window_type normal

I have the default conky working here with the battery stuff edited out.
2fdce8173042277.jpg

Post your code so we can see it.


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#422 2012-02-03 22:48:20

CBizgreat!
#! Die Hard
Registered: 2011-07-27
Posts: 1,865

Re: Conky v1.9 Thread

Runs off to check that stuff too. Sector11 did not get to be known as one of the revered conky grand masters for nuttin ! wink


Thing I posted is as minimal as poss. But with a little ( more like ALOT, we're talking about conky here !) someone could do mucho to it. Add bars and gauges + bells and whistles. I almost went all out, but then remembered I'm entirely too lazy for that. I just wanna know how much RAM/CPU and Swap is in use.


Hiya's Sector11 ... Per usual hope life is treating you and all the good gnu/nixers or people of the world well. And not to say conky can't be as kewl or boring as someone wants to make it. All the screenie and config files people have posted here def proves that ! Lotsa neat stuff shared.



End babble ... wink

Last edited by CBizgreat! (2012-02-06 09:50:07)


Some common cbiz abbreviations. This will save me time and yet @ same time tell folks what the babble is supposed to mean.

Vll ! = ( Viva la gnu/Linux !)    Vl#!! = ( Viva la #! !)    Last but not least, UD ... OD ! = ( Use Debian ... or die !) tongue

Offline

#423 2012-02-03 23:57:16

Dodge ram
#! CrunchBanger
Registered: 2011-04-26
Posts: 140

Re: Conky v1.9 Thread

S11, Have a good night. Time to go to work.

Offline

#424 2012-02-04 17:14:18

SiNiSTeR
#! Member
From: north carolina
Registered: 2012-02-03
Posts: 55

Re: Conky v1.9 Thread

ok so im having a lil prob with my conky...
whenever i login or restart my pc conky starts and any windows i open ie firefox or w/e goes behind conky and i have to restart conky so that it stays behind any windows...
heres my conkyrc...

total_run_times 0
background no
cpu_avg_samples 1                    
net_avg_samples 2
double_buffer yes
no_buffers yes
text_buffer_size 1024
out_to_console no
update_interval 1
alignment top_right
minimum_size 350
maximum_width 300
gap_x 5
gap_y 60
draw_shades no
draw_outline no
draw_borders no
border_width 1
border_inner_margin 1
own_window yes
own_window_type override
own_window_transparent yes
use_xft yes
xftalpha .1
override_utf8_locale yes
uppercase no
use_spacer right
xftfont saxMono:size=9
default_bar_size 82 3
stippled_borders 3
default_color FFFFFF
default_shade_color 404040
default_outline_color black
color1 ff0000
short_units yes
pad_percents 2


TEXT
${color1}${offset 56}${voffset 1}${cpugraph cpu6 17,1}${voffset -3}${hr 2}


${color ffffff}${voffset -27}${offset 120}${font neuropol:size=15}${nodename}${font} ${font neuropol:size=10}64bit
${color1}${voffset -5}${offset 120}${cpubar cpu6 0, 200}${voffset 2}
${font neuropol:size=10 style=bold}${color ffffff}${offset 120}SiNiSTeR
${font neuropol:size=10 style=bold}${color ffffff}${offset 120}AMD Phenom 9550 X4
${font neuropol:size=10 style=bold}${color ffffff}${offset 120}${sysname} ${kernel}
${font neuropol:size=10 style=bold}${color ffffff}${offset 120}${uptime}


#cpu1-2#
${color1}${offset 100}${voffset 20}${cpugraph cpu6 17,1}${voffset -3}${hr 2}
${color ffffff}${offset 200}${font neuropol:size=15}${cpu cpu1}${font neuropol:size=15}% ${font neuropol:size=10 style=bold}core.1
${offset 200}${font neuropol:size=20}${cpu cpu2}${font neuropol:size=15}% ${font neuropol:size=10 style=bold}core.2
${color1}${offset 200}${voffset -5}${cpubar cpu6 0, 110}${voffset 2}


#cpu3-4#
${color1}${offset 150}${voffset 30}${cpugraph cpu6 17,1}${voffset -3}${hr 2}${color ffffff}
${offset 200}${font neuropol:size=15}${cpu cpu3}${font neuropol:size=15}% ${font neuropol:size=10 style=bold}core.3
${offset 200}${font neuropol:size=15}${cpu cpu4}${font neuropol:size=15}% ${font neuropol:size=10 style=bold}core.4
${color1}${offset 200}${voffset -5}${cpubar cpu6 0, 110}${voffset 2}


#ram#
${color1}${offset 100}${voffset 3}${cpugraph cpu6 17,1}${voffset -3}${hr 2}${color ffffff}
#${offset 170}${font neuropol:size=10}memory
${offset 170}${font neuropol:size=15}${mem}${font neuropol:size=15}${font neuropol:size=10 style=bold}in use
${offset 170}${font neuropol:size=15}${memmax}${font neuropol:size=10} total
${color1}${offset 170}${voffset -6}${cpubar cpu6 0, 150}


#music
${color1}${voffset 20}${voffset 3}${cpugraph cpu6 17,1}${voffset -3}${hr 2}${color ffffff}
${color ffffff}${voffset -5}${offset 35}${font neuropol:size=10 style=bold}current song
${if_running rhythmbox}${voffset 15}${offset 55}${voffset -10}${font neuropol:size=15 style=bold} ${exec conkyRhythmbox --datatype=PT} ${voffset -10}${offset -65}${offset 55}
${color1}${offset 50}${cpubar cpu6 0,110}${voffset -30}
${color ffffff}${font neuropol:size=15 style=bold}
${offset 55}${exec conkyRhythmbox --datatype=TI}
${offset 55}${exec conkyRhythmbox --datatype=AR}
${offset 55}${exec conkyRhythmbox --datatype=AL}
${else}       ..:: rhythmbox not running ::..
${exec conkyRhythmbox --datatype=TI} 

http://i1244.photobucket.com/albums/gg5 … _scrot.png

Last edited by SiNiSTeR (2012-02-04 17:21:36)

Offline

Help fund CrunchBang, donate to the project!

#425 2012-02-04 17:22:43

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

@ SiNiSTeR

Easy fix you have these:

own_window yes
own_window_type override
own_window_transparent yes

add this:

own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

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.
Server: acrobat

Debian Logo