You are not logged in.

#141 2017-06-18 19:40:00

ututo
Member
Registered: 2015-09-29
Posts: 326

Re: Conky - Calendars / Clocks / Time

Sector11 wrote:

There's a clock inn that image?  where?  lol lol
NICE! - the clock I mean ... {cough cough}  smile

Thanks, man! ok ok. I'll add a 'preview pic'

Sector11 wrote:

I get a blank page.  Dropbox has disabled publick links.

really? I do get the 'Download' button, though. I'll have to find another way to load the files and make it easy for everyone to download.


BunsenLabs on deviantArt
Don't touch my git!

Offline

#142 2017-06-18 20:04:01

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Conky - Calendars / Clocks / Time

ututo wrote:
Sector11 wrote:

There's a clock inn that image?  where?  lol lol
NICE! - the clock I mean ... {cough cough}  smile

Thanks, man! ok ok. I'll add a 'preview pic'

Sector11 wrote:

I get a blank page.  Dropbox has disabled publick links.

really? I do get the 'Download' button, though. I'll have to find another way to load the files and make it easy for everyone to download.

It's your DropBox ... it's also why I DroppedDropBox
Now they have shared links

PS. If I look at the "no clock", Dawana, image too long my wife gets upset lol ]:D


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#143 2017-06-18 20:09:30

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Conky - Calendars / Clocks / Time

Sector11 wrote:
ututo wrote:
Sector11 wrote:

There's a clock inn that image?  where?  lol lol
NICE! - the clock I mean ... {cough cough}  smile

Thanks, man! ok ok. I'll add a 'preview pic'

Sector11 wrote:

I get a blank page.  Dropbox has disabled publick links.

really? I do get the 'Download' button, though. I'll have to find another way to load the files and make it easy for everyone to download.

It's your DropBox ... it's also why I DroppedDropBox
Now they have shared links

PS. If I look at the "no clock", Dawana, image too long my wife gets upset lol ]:D

Edit your post to use the "wget" line I posted, like this:

=======================
Get the image with this line in a terminal:

wget https://www.dropbox.com/s/hhevxp58myqse14/GreyConkyClock.tar.gz

=======================
A good temporary fix.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#144 2017-06-24 23:32:48

Döbbie03
Resident Metalhead
From: New Zealand
Registered: 2015-09-29
Posts: 3,853

Re: Conky - Calendars / Clocks / Time

ututo wrote:

Grey Conky Clock

based on EtlesTeam's Conky Dawana, so all credits go for him. I just made my own clock with Inkscape.

conkyrc:

# Conky, a system monitor, based on torsmo
#
# Any original torsmo code is licensed under the BSD license
#
# All code written since the fork of torsmo is licensed under the GPL
#
# Please see COPYING for details
#
# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
# Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
# All rights reserved.
#
# 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/>.
################################################################################

background no
update_interval 0.5
update_run_times 0
total_run_times 0

cpu_avg_samples 2
net_avg_samples 2

double_buffer yes
no_buffers yes

text_buffer_size 1024
imlib_cache_size 0

own_window yes
own_window_class Conky
own_window_type normal #All options: conky,dock,desktop,normal,override,panel
own_window_transparent yes
own_window_argb_visual yes
own_window_argb_value 120 #Opacity color
own_window_colour ff0000 #Change color bg in this line
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

draw_shades no
draw_borders no
draw_graph_borders no

minimum_size 250 135
maximum_width 250

alignment bottom_right
gap_x 50
gap_y 80

use_xft yes
override_utf8_locale yes
xftfont Mono:size=8
xftalpha 1
uppercase no
use_spacer none

default_color ffffff #D8D8D8
color1 ff0000

lua_load ~/.conky/Grey/scripts/lua/imlib_clock.lua

TEXT
${voffset 24}${offset 150}${font Roboto Condensed:size=12}${color 616161}ARGENTINA${font}
${voffset 2}${offset 150}${font Roboto Condensed:size=12}${color 616161}${time %A}${font}
${voffset 2}${offset 150}${font Roboto Condensed:size=12}${color 616161}${time %e}.${time %m}.${time %Y}${font}
${voffset 2}${offset 150}${font Roboto Condensed:size=12}${color 8D8D8D}${time %I}:${time %M}:${time %S}  ${time %p}${font}
${lua imlib_clock grey 130 71 72}

##======================== Regards, Etles_Team =============================##

lua script:

--[[
Simple clock, written using imlib. Edited by Etles_Team (2016)
Make sure you've installed "imlib2" application in your system if this script doesn't work :) 

To use this script in Conky, Add this command in conkyrc file before (TEXT), Example :

lua_load ~/.conky/Conky-Name/imlib_clock.lua
lua_draw_hook_pre imlib_clock theme

OR you can add this other command to load script in conkyrc after (TEXT), Example :

${lua imlib_clock theme-name 120 100 100}

]]
---------------------------------------------------------------------------------------------------------

require 'imlib2'

image_path = os.getenv ('HOME')..'/.conky/Grey/images/'

function fFreeImage (image)
	imlib_context_set_image(image)
	imlib_free_image ()
end

function fRotateImage (image, arc)
	imlib_context_set_image(image)
	return imlib_create_rotated_image(arc)
end

function fGetImageSize(image)
	imlib_context_set_image(image)
	return imlib_image_get_width(), imlib_image_get_height()
end

function create_clock(theme, arc_s, arc_m, arc_h)

local imgFace =  imlib_load_image(image_path..theme..'/face.png')
local w_img, h_img = fGetImageSize(imgFace)

local imgH =  imlib_load_image(image_path..theme..'/h.png')
local imgHR = fRotateImage (imgH, arc_h)
local w_imgH, h_imgH = fGetImageSize(imgHR)

local imgM =  imlib_load_image(image_path..theme..'/m.png')
local imgMR = fRotateImage (imgM, arc_m)
local w_imgM, h_imgM = fGetImageSize(imgMR)

local imgS =  imlib_load_image(image_path..theme..'/s.png')
local imgSR = fRotateImage (imgS, arc_s)
local w_imgS, h_imgS = fGetImageSize(imgSR)

local imgGlass =  imlib_load_image(image_path..theme..'/glass.png')

local buffer = imlib_create_image(w_img, h_img)
	imlib_context_set_image(buffer)
	imlib_image_set_has_alpha(1)
	imlib_image_clear()

imlib_blend_image_onto_image(imgFace, 1, 0, 0, w_img, h_img, 0, 0, w_img, h_img )

imlib_blend_image_onto_image(imgHR, 1, 0, 0, w_imgH, h_imgH, w_img/2-w_imgH/2, h_img/2-h_imgH/2, w_imgH, h_imgH )

imlib_blend_image_onto_image(imgMR, 1, 0, 0, w_imgM, h_imgM, w_img/2-w_imgM/2, h_img/2-h_imgM/2, w_imgM, h_imgM )

imlib_blend_image_onto_image(imgSR, 1, 0, 0, w_imgS, h_imgS, w_img/2-w_imgS/2-1, h_img/2-h_imgS/2-1, w_imgS, h_imgS )

--imlib_blend_image_onto_image(imgGlass, 1, 70, 70, w_img, h_img, 0, 0, w_img, h_img )

	fFreeImage (imgFace)
	fFreeImage (imgH)
	fFreeImage (imgHR)
	fFreeImage (imgM)
	fFreeImage (imgMR)
	fFreeImage (imgS)
	fFreeImage (imgSR)
	fFreeImage (imgGlass)

	return buffer

end

function conky_imlib_clock(theme,w,x,y)

	if conky_window==nil then return ' ' end

	local w = w or 200
	local x = x or conky_window.width / 2
	local y = y or conky_window.height / 2

	local arc_s = (2 * math.pi / 60) * os.date("%S")
	local arc_m = (2 * math.pi / 60) * os.date("%M") + arc_s / 60
	local arc_h = (2 * math.pi / 12) * os.date("%I") + arc_m / 12

	local buffer = create_clock(theme, arc_s, arc_m, arc_h)
	imlib_context_set_image(buffer)

	imlib_render_image_on_drawable_at_size(
		x-w/2, y-w/2, w, w)

	fFreeImage (buffer)

	return ' '
end
--======================== Regards, Etles_Team ===========================--

Am I missing something with this config? For the life of me I can't get the clock face to show.  What version of conky is this intended for?


"All we are is dust in the wind, dude"
                                       - Theodore "Ted" Logan
"Led Zeppelin didn't write tunes that everybody liked, they left that to the Bee Gees."
                                       - Wayne Campbell

Offline

#145 2017-06-25 00:10:57

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Conky - Calendars / Clocks / Time

@ Dobbie03

This is a conky v1.9 file - you are using conky v1.10 - the LUA format

You will need to convert it.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#146 2017-06-25 00:15:59

Döbbie03
Resident Metalhead
From: New Zealand
Registered: 2015-09-29
Posts: 3,853

Re: Conky - Calendars / Clocks / Time

Sector11 wrote:

@ Dobbie03

This is a conky v1.9 file - you are using conky v1.10 - the LUA format

You will need to convert it.

Thanks for the reply S11.  I have installed Conky V19 from the AUR and I am currently running v 1.9.0.


"All we are is dust in the wind, dude"
                                       - Theodore "Ted" Logan
"Led Zeppelin didn't write tunes that everybody liked, they left that to the Bee Gees."
                                       - Wayne Campbell

Offline

#147 2017-06-25 00:25:15

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Conky - Calendars / Clocks / Time

Oh in that case it should work ... what error message do you get if you start it in the terminal?


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#148 2017-06-25 00:31:39

Döbbie03
Resident Metalhead
From: New Zealand
Registered: 2015-09-29
Posts: 3,853

Re: Conky - Calendars / Clocks / Time

Conky: missing text block in configuration; exiting
***** Imlib2 Developer Warning ***** :
	This program is calling the Imlib call:

	imlib_context_free();

	With the parameter:

	context

	being NULL. Please fix your program.

This, I have imlib2 installed.


"All we are is dust in the wind, dude"
                                       - Theodore "Ted" Logan
"Led Zeppelin didn't write tunes that everybody liked, they left that to the Bee Gees."
                                       - Wayne Campbell

Offline

#149 2017-06-25 00:37:18

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Conky - Calendars / Clocks / Time

Nope, sorr Dobbie03... not until you get the images from ututo ...  in the lua script:

image_path = os.getenv ('HOME')..'/.conky/Grey/images/'

I'm getting the error:

***** Imlib2 Developer Warning ***** :
	This program is calling the Imlib call:

	imlib_image_get_width();

	With the parameter:

	image

	being NULL. Please fix your program.
***** Imlib2 Developer Warning ***** :
	This program is calling the Imlib call:

	imlib_image_get_height();

	With the parameter:

	image

	being NULL. Please fix your program.
***** Imlib2 Developer Warning ***** :
	This program is calling the Imlib call:

	imlib_create_rotated_image();

	With the parameter:

	image

	being NULL. Please fix your program.
***** Imlib2 Developer Warning ***** :
	This program is calling the Imlib call:
{snip}
you get the idea ... it's "forever!"

Oh ututo  we need you!  big_smile

EDIT:  Images available in utuo's original post.

I have: libimlib2.

I changed:

--#image_path = os.getenv ('HOME')..'/.conky/Grey/images/'
image_path = os.getenv '/media/5/Conky/images/Grey/images/grey/'

And have the conky, but not the clock.  sad


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#150 2017-06-25 00:41:39

Döbbie03
Resident Metalhead
From: New Zealand
Registered: 2015-09-29
Posts: 3,853

Re: Conky - Calendars / Clocks / Time

Sector11 wrote:

Nope, sorr Dobbie03... not until you get the images from ututo ...  in the lua script:

image_path = os.getenv ('HOME')..'/.conky/Grey/images/'

I'm getting the error:

***** Imlib2 Developer Warning ***** :
	This program is calling the Imlib call:

	imlib_image_get_width();

	With the parameter:

	image

	being NULL. Please fix your program.
***** Imlib2 Developer Warning ***** :
	This program is calling the Imlib call:

	imlib_image_get_height();

	With the parameter:

	image

	being NULL. Please fix your program.
***** Imlib2 Developer Warning ***** :
	This program is calling the Imlib call:

	imlib_create_rotated_image();

	With the parameter:

	image

	being NULL. Please fix your program.
***** Imlib2 Developer Warning ***** :
	This program is calling the Imlib call:
{snip}
you get the idea ... it's "forever!"

Oh ututo  we need you!  big_smile


I have all the images, lua etc.  All in the correct places that conky specifies.....me confussed.


"All we are is dust in the wind, dude"
                                       - Theodore "Ted" Logan
"Led Zeppelin didn't write tunes that everybody liked, they left that to the Bee Gees."
                                       - Wayne Campbell

Offline

#151 2017-06-25 00:53:14

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Conky - Calendars / Clocks / Time

Calling ututo! Calling ututo! Calling ututo! Calling ututo! Calling ututo!

big_smile

Me too!


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#152 2017-06-25 01:04:42

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Conky - Calendars / Clocks / Time

OK, I grabbed the file in ututo's post, and have the conky in the same place as in the archive, still getting the error in the terminal but I have the conky.
2017-06-24_215944_Scrot11.th.jpg

/home/sector11/.conky/Grey/conkyrc
/home/sector11/.conky/Grey/scripts/lua/imlib_clock.lua
/home/sector11/.conky/Grey/images/grey/face.png
/home/sector11/.conky/Grey/images/grey/h.png
/home/sector11/.conky/Grey/images/grey/m.png
/home/sector11/.conky/Grey/images/grey/s.png


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#153 2017-06-25 01:20:58

Döbbie03
Resident Metalhead
From: New Zealand
Registered: 2015-09-29
Posts: 3,853

Re: Conky - Calendars / Clocks / Time

Sector11 wrote:

OK, I grabbed the file in ututo's post, and have the conky in the same place as in the archive, still getting the error in the terminal but I have the conky.
https://cdn.scrot.moe/images/2017/06/25/2017-06-24_215944_Scrot11.th.jpg

/home/sector11/.conky/Grey/conkyrc
/home/sector11/.conky/Grey/scripts/lua/imlib_clock.lua
/home/sector11/.conky/Grey/images/grey/face.png
/home/sector11/.conky/Grey/images/grey/h.png
/home/sector11/.conky/Grey/images/grey/m.png
/home/sector11/.conky/Grey/images/grey/s.png


I just did that myself.  No luck at all.


"All we are is dust in the wind, dude"
                                       - Theodore "Ted" Logan
"Led Zeppelin didn't write tunes that everybody liked, they left that to the Bee Gees."
                                       - Wayne Campbell

Offline

#154 2017-06-25 01:27:15

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Conky - Calendars / Clocks / Time

Now I really want to see your terminal output from starting it. This should do it:

Make sure it is dead:

pkill -xf "conky -c /home/sector11/.conky/Grey/conkyrc" &

replace 'sector11' with your user... and start it:

conky -c /home/sector11/.conky/Grey/conkyrc &

post the error please.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#155 2017-06-25 01:32:40

Döbbie03
Resident Metalhead
From: New Zealand
Registered: 2015-09-29
Posts: 3,853

Re: Conky - Calendars / Clocks / Time

***** Imlib2 Developer Warning ***** :
	This program is calling the Imlib call:

	imlib_free_image();

	With the parameter:

	image

	being NULL. Please fix your program.
***** Imlib2 Developer Warning ***** :
	This program is calling the Imlib call:

	imlib_render_image_on_drawable_at_size();

	With the parameter:

	image

	being NULL. Please fix your program.
***** Imlib2 Developer Warning ***** :
	This program is calling the Imlib call:

	imlib_free_image();

	With the parameter:

	image

	being NULL. Please fix your program.

See, same error as we both have been having.  Conky pops up but no clock .


"All we are is dust in the wind, dude"
                                       - Theodore "Ted" Logan
"Led Zeppelin didn't write tunes that everybody liked, they left that to the Bee Gees."
                                       - Wayne Campbell

Offline

#156 2017-06-25 01:38:37

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Conky - Calendars / Clocks / Time

AHA!!!!!  And I missed it too.....  right at the beginning:

24 Jun 17 @ 22:33:36 ~
   $ Conky: /home/sector11/.conky/Grey/conkyrc: 28: no such configuration: 'update_run_times'
Conky: desktop window (4b2) is root window
Conky: window type - normal
Conky: drawing to created window (0x2800002)
Conky: drawing to double buffer
***** Imlib2 Developer Warning ***** :

but still with error.  sad

 24 Jun 17 @ 22:36:17 ~
   $ Conky: desktop window (4b2) is root window
Conky: window type - normal
Conky: drawing to created window (0x2800002)
Conky: drawing to double buffer
***** Imlib2 Developer Warning ***** :
	This program is calling the Imlib call:

	imlib_free_image();

Getting closer....


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#157 2017-06-25 01:42:13

Döbbie03
Resident Metalhead
From: New Zealand
Registered: 2015-09-29
Posts: 3,853

Re: Conky - Calendars / Clocks / Time

Sector11 wrote:

AHA!!!!!  And I missed it too.....  right at the beginning:

24 Jun 17 @ 22:33:36 ~
   $ Conky: /home/sector11/.conky/Grey/conkyrc: 28: no such configuration: 'update_run_times'
Conky: desktop window (4b2) is root window
Conky: window type - normal
Conky: drawing to created window (0x2800002)
Conky: drawing to double buffer
***** Imlib2 Developer Warning ***** :

but still with error.  sad

 24 Jun 17 @ 22:36:17 ~
   $ Conky: desktop window (4b2) is root window
Conky: window type - normal
Conky: drawing to created window (0x2800002)
Conky: drawing to double buffer
***** Imlib2 Developer Warning ***** :
	This program is calling the Imlib call:

	imlib_free_image();

Getting closer....

I have no ideas, so I will patiently wait on the sideline while the guru figures this out big_smile


"All we are is dust in the wind, dude"
                                       - Theodore "Ted" Logan
"Led Zeppelin didn't write tunes that everybody liked, they left that to the Bee Gees."
                                       - Wayne Campbell

Offline

#158 2017-06-25 01:47:24

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Conky - Calendars / Clocks / Time

I have it!!!!!!!!!!!!!!!!!
2017-06-24_224344_Scrot11.jpg
Cost ya a coffee for the fix ... and since I know you're good for it:

In the lua code - comment out this line:

function fFreeImage (image)
	imlib_context_set_image (image)
--	imlib_free_image ()

should be line 23.  smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#159 2017-06-25 01:51:17

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Conky - Calendars / Clocks / Time

Dobbie03 wrote:
Sector11 wrote:

AHA!!!!!  And I missed it too.....  right at the beginning:

24 Jun 17 @ 22:33:36 ~
   $ Conky: /home/sector11/.conky/Grey/conkyrc: 28: no such configuration:

I have no ideas, so I will patiently wait on the sideline while the guru figures this out big_smile

see that 28:

That's line 28 in the conky RC ... the line that reads:

update_run_times 0

Delete that line.  big_smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#160 2017-06-25 02:04:10

Döbbie03
Resident Metalhead
From: New Zealand
Registered: 2015-09-29
Posts: 3,853

Re: Conky - Calendars / Clocks / Time

Thanks S11, still isn't working. 

I thought I might need to somehow enable an image "flag" but can't seem to find anything relating to this.


"All we are is dust in the wind, dude"
                                       - Theodore "Ted" Logan
"Led Zeppelin didn't write tunes that everybody liked, they left that to the Bee Gees."
                                       - Wayne Campbell

Offline

Board footer

Powered by FluxBB