SEARCH

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

You are not logged in.

#8701 2015-08-16 17:09:03

BraxnerM
Member
Registered: 2014-10-17
Posts: 22

Re: Conky v1.9 Thread

Offline

Be excellent to each other!

#8702 2015-08-16 17:37:33

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

Re: Conky v1.9 Thread

Offline

#8703 2015-08-16 18:41:03

iami
Member
Registered: 2013-09-06
Posts: 44

Re: Conky v1.9 Thread

counter  -   updates     -    second 
1	 - 	0	 - 	54
2	 - 	1	 - 	54
3	 - 	1	 - 	54
4	 - 	1	 - 	54
5	 - 	1	 - 	54
6	 - 	1	 - 	54
7	 - 	1	 - 	54
8	 - 	1	 - 	54
9	 - 	1	 - 	54
10	 - 	1	 - 	54
11	 - 	1	 - 	54
12	 - 	1	 - 	54
13	 - 	2	 - 	55
14	 - 	2	 - 	55
15	 - 	2	 - 	55
16	 - 	2	 - 	55
17	 - 	2	 - 	55
18	 - 	2	 - 	55
19	 - 	2	 - 	55
20	 - 	2	 - 	55
21	 - 	2	 - 	55
22	 - 	2	 - 	55
23	 - 	2	 - 	55

Last edited by iami (2015-08-16 18:55:58)

Offline

#8704 2015-08-16 19:32:52

BraxnerM
Member
Registered: 2014-10-17
Posts: 22

Re: Conky v1.9 Thread

Offline

#8705 2015-08-16 21:13:05

BraxnerM
Member
Registered: 2014-10-17
Posts: 22

Re: Conky v1.9 Thread

counter  -   updates     -    second 
1        -      0        -      12
2        -      1        -      12
3        -      2        -      13
4        -      3        -      14       <-- started 2nd conky 
5        -      3        -      15       <--  and here it is
6        -      4        -      15
7        -      4        -      16
8        -      5        -      16       <-- 2 conkys in parallel     
9        -      5        -      17
10       -      6        -      17      <-- started 3rd conky 
11       -      6        -      17      <-- should be 2nd instance
12       -      6        -      17      <-- 3rd one as expected
13       -      6        -      18      <--  a 4th ?? Yap ... no clue !!!!
14       -      7        -      18      
15       -      7        -      18      <-- 3 conkys in parallel
16       -      7        -      19
17       -      8        -      19      <-- killing off one shell
18       -      8        -      20      <-- leaves 2 running
19       -      9        -      20
20       -      9        -      21
21       -      10       -      21     <-- killing off 2nd shell
22       -      11       -      22     <-- clean as a whistle 

Offline

#8706 2015-08-17 06:36:53

iami
Member
Registered: 2013-09-06
Posts: 44

Re: Conky v1.9 Thread

-- LUA script - barebones.lua

local counter = false
local updates = 0

function conky_main()
...
end

Offline

#8707 2015-08-17 07:53:44

BraxnerM
Member
Registered: 2014-10-17
Posts: 22

Re: Conky v1.9 Thread

# conky configuration   -   barebones2.conky                                                                             
#background yes                                                
update_interval 3           
total_run_times 0                                               


lua_load /home/nat/bin/conky/scripts/barebones2.lua
lua_draw_hook_post test

TEXT

Offline

#8708 2015-08-17 10:38:03

iami
Member
Registered: 2013-09-06
Posts: 44

Re: Conky v1.9 Thread

Last edited by iami (2015-08-17 10:55:51)

Offline

#8709 2015-08-18 03:24:44

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 987

Re: Conky v1.9 Thread

Offline

#8710 2015-08-18 05:39:35

BraxnerM
Member
Registered: 2014-10-17
Posts: 22

Re: Conky v1.9 Thread

# conky configuration  -  barebones3.conky                                                                             
update_interval 1           
total_run_times 0                                              

TEXT

Offline

#8711 2015-08-18 06:27:10

iami
Member
Registered: 2013-09-06
Posts: 44

Re: Conky v1.9 Thread

Last edited by iami (2015-08-18 06:28:38)

Offline

#8712 2015-08-18 06:56:29

BraxnerM
Member
Registered: 2014-10-17
Posts: 22

Re: Conky v1.9 Thread

...
if ( lastUpdate != tonumber(conky_parse('${updates}')) ) then
    lastupdates = tonumber(conky_parse('${updates}'))
    ... run your needed update
end

Offline

#8713 2015-08-18 12:42:36

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 987

Re: Conky v1.9 Thread

@iami & BraxnerM
Certain things can trigger a conky update other than it being "on time".
Two I know of are dragging a window across a conky (this forces updates as the window manager needs to redraw constantly) and changing workspaces in some window managers.
If any of your conky windows overlap it might be something related to the dragging thing.
I have three conky windows on one computer that don't overlap and never had anything like this happen with v1.9.1 except the previously mentioned "draw_shades yes" bug.

Last edited by arclance (2015-08-18 16:07:57)

Offline

#8714 2015-08-18 18:19:09

BraxnerM
Member
Registered: 2014-10-17
Posts: 22

Re: Conky v1.9 Thread

Offline

#8715 2015-08-18 18:43:37

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 987

Re: Conky v1.9 Thread

Last edited by arclance (2015-08-18 19:00:38)

Offline

#8716 2015-08-18 18:57:27

BraxnerM
Member
Registered: 2014-10-17
Posts: 22

Re: Conky v1.9 Thread

Offline

#8717 2015-08-18 19:05:02

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 987

Re: Conky v1.9 Thread

Offline

#8718 2015-08-20 07:12:25

iami
Member
Registered: 2013-09-06
Posts: 44

Re: Conky v1.9 Thread

Updates 1/sec; lua1 (window):
1306	 - 	1301
1252	 - 	1248
1315	 - 	1312

Updates 1/sec: lua2 (window):
1283	 - 	1280
1292	 - 	1281
1290	 - 	1274

Update 0.2/sec; lua1 (window):
6305	 - 	6288
6273	 - 	6220
6270	 - 	6248

Update 1/sec: lua1 (no window):
3129	 - 	1035
3272	 - 	1035
3248	 - 	1044

Last edited by iami (2015-08-20 13:01:36)

Offline

#8719 2015-08-20 16:29:09

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 987

Re: Conky v1.9 Thread

Last edited by arclance (2015-08-20 18:09:13)

Offline

#8720 2015-08-20 18:06:52

iami
Member
Registered: 2013-09-06
Posts: 44

Re: Conky v1.9 Thread

Offline

#8721 2015-08-21 05:52:03

BraxnerM
Member
Registered: 2014-10-17
Posts: 22

Re: Conky v1.9 Thread

Offline

#8722 2015-08-21 07:48:46

fuzamaru
New Member
Registered: 2015-08-21
Posts: 2

Re: Conky v1.9 Thread

# Performance Settings
update_interval 1
double_buffer yes
no_buffers yes
background no

# Window Settings
own_window yes
own_window_type panel
own_window_transparent yes
own_window_argb_visual yes
own_window_argb_value 200
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
#disable_auto_reload 1

# Window border
draw_shades no
#draw_borders no
draw_graph_borders no

# Size and position
minimum_size 185 185
gap_x 0
gap_y 50
alignment br

# Lua Скрипты
lua_load ~/.conky/just_another_clock/lua/imlib_clock.lua

TEXT
${lua imlib_clock atolm 200 95 95}

Last edited by fuzamaru (2015-08-21 19:18:47)

Offline

#8723 2015-08-21 09:31:20

iami
Member
Registered: 2013-09-06
Posts: 44

Re: Conky v1.9 Thread

Your images do not work, you have copy pasted the names of the images but we can not see them. You have to upload them to a website and give us the link or make a thumbnail. Maybe some one (Sector11?) knows a tutorial to do this.

So you want the clock to be on top all the time and have a transparent background? I'm using cinnamon too and used the folowing settings for the cairo_clock_rc:

# Window Settings
own_window yes
own_window_transparent false
own_window_type normal
own_window_hints undecorated,above,sticky,skip_taskbar,skip_pager
own_window_argb_visual yes
own_window_argb_value 0

(replace the current window settings with the one i gave, the clue is to use the "above" window hint)

edit: this won't work for the imlib version since the own_window_argb_value value also sets the alpha value of the clock itself making it invisible if you set it to 0.

Last edited by iami (2015-08-21 11:12:41)

Offline

#8724 2015-08-21 14:30:15

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 987

Re: Conky v1.9 Thread

--#### Setup Global Variables ####
if tonumber(conky_parse('${updates}')) < 2 then --# don't reset these global variables when changes are made to the lua script
	previousEpoch = os.time() --# initialize previous epoch (use to prevent graph tables from being screwed up when other windows are moved across the conky window)
end --# if tonumber(conky_parse('${updates}')) < 2 then

function conky_main() --# main function controls everything else
	local newEpoch = os.time()
	if previousEpoch < newEpoch then
		"Collect Data in Global Variables Here"
	end --# if previousEpoch < newEpoch then
	if previousEpoch < newEpoch then
		previousEpoch = newEpoch
	else
		print("error: epoch check warning old:"..previousEpoch.." new:"..newEpoch)
	end --# if previousEpoch < newEpoch then
end-- end main function

Last edited by arclance (2015-08-21 14:33:04)

Offline

Help fund CrunchBang, donate to the project!

#8725 2015-08-21 20:48:12

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 987

Re: Conky v1.9 Thread

	-- combine the clock
	local buffer = imlib_create_image(w_img, h_img)
	imlib_context_set_image(buffer)
	imlib_image_set_has_alpha(1)
	imlib_image_clear()
	imlib_context_set_blend(0)
	imlib_blend_image_onto_image(

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