You are not logged in.
That does it ... running one instance of that conky and my computer froze - tighter than a bull's bum in fly season ... for the 3rd time. I'm going to salvage ututo's images and KILL/delete/grind-up the rest of that into fine pixels ... bye bye Grey!
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
${color3}\
${if_match "${time %u}" == "1"}${color2}Mo ${color1}${else}Mo ${endif}\
${if_match "${time %u}" == "2"}${color2}Tu ${color1}${else}Tu ${endif}\
${if_match "${time %u}" == "3"}${color2}We ${color1}${else}We ${endif}\
${if_match "${time %u}" == "4"}${color2}Tr ${color1}${else}Tr ${endif}\
${if_match "${time %u}" == "5"}${color2}Fr ${color1}${else}Fr ${endif}\
${if_match "${time %u}" == "6"}${color2}Sa ${color1}${else}Sa ${endif}\
${if_match "${time %u}" == "7"}${color2}Su ${color1}${else}Su ${endif}
${time %a a %A A}
${time %b b %B B}
${time %c c %C C}
${time %d d %D D}
${time %e e}
${time %F F}
${time %g g %G G}
${time %h h %H H}
${time %I I}
${time %j j}
${time %l l}
${time %m m %M M}
${time %n n}
${time %p p %P P}
${time %r r %R R}
${time %S S}
${time %t t %T T}
${time %u u %U U}
${time %V V}
${time %w w %W W}
${time %x x %X X}
${time %y y %Y Y}
${time %z z %Z Z}
${tztime} tz ${utime} u
${execp cat /etc/timezone}
${tztime Europe/Greenwich %G-%m-%d %H:%M:%S }\
${if_match ${tztime Europe/Greenwich %H}<=12}a.m.${else}${if_match ${tztime Europe/Greenwich %H}>12}p.m.${endif}${endif}${alignr}\
${tztime Europe/Greenwich %Z %z} Time Zone Europe/Greenwich
Last edited by grzegorzdabrowka (2017-06-26 14:46:38)
Offline
I have tried those, if I have the lua link uncommented in the conky config I get a seg fault.
Still struggling to get the clock face to show.
Scratching my head over this part. In the imlib_clock.lua there is this:
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}
The original author uses "OR" , but in ututo's 1.90 conkyrc (which we know works) both are used; so it should be "AND" ????:
<snip>
lua_load ~/.conky/Grey/scripts/lua/imlib_clock.lua
TEXT
<snip>
${lua imlib_clock grey 130 71 72}
If I try to use both in conky 1.10, I get the error about imlib image being null, but the system information is shown:
lua 5.2, Void linux.
edit - I changed the system info to uptime and battery
Last edited by PackRat (2017-06-26 15:29:37)
You must unlearn what you have learned.
-- yoda
Offline
Why not get some help from the Conky developers? You might have hit a bug, S11 and Dobbie03.
Real Men Use Linux
Offline
@dobbie -
Got it working:
Void linux, conky 1.10, lua 5.2 -
I unziped the original configuration and scripts at deviantArt and recreated the author's directory structure so I didn't have to edit anything related to the clock (although I changed the system info). Converted the conkyrc to conky 1.10 syntax with convet.lua.
So now my question is, what does that image null error refer to, and is it actually an error?
the only additional package I installed was imlib2-tools to make sure I had all of imlib2; I checked Arch and Debian packages and saw they don't have a similar package, so I think if you have imlib2 and lua you should be good.
Last edited by PackRat (2017-06-26 17:08:54)
You must unlearn what you have learned.
-- yoda
Offline
Scratching my head over this part. In the imlib_clock.lua there is this:
The original author uses "OR" , but in ututo's 1.90 conkyrc (which we know works) both are used; so it should be "AND" ????:
NO, it really is OR -- not AND
Look at it this way:
Option 1. Above TEXT (or Before) your choice:
lua_load ~/.conky/Conky-Name/imlib_clock.lua
lua_draw_hook_pre imlib_clock theme
TEXT
Option 2. Above and Below TEXT
lua_load ~/.conky/Conky-Name/imlib_clock.lua
TEXT
${lua imlib_clock theme-name 120 100 100}
In either, Option 1 or Option 2, this line MUST go above TEXT
lua_load ~/.conky/Conky-Name/imlib_clock.lua
Loot at ututo's conky, he's using Option 2.
Now that error: NOT A CLUE!
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
All I have is:
26 Jun 17 @ 13:18:32 ~
$ list libimlib2 liblua5.1-0 liblua5.2-0 lua-expat
Alias for: apt list -a filename
Listing... Done
libimlib2/oldstable,oldstable,now 1.4.6-2+deb8u2 amd64 [installed,automatic]
liblua5.1-0/oldstable,now 5.1.5-7.1 amd64 [installed,automatic]
liblua5.2-0/oldstable,now 5.2.3-1.1 amd64 [installed,automatic]
lua-expat/oldstable,now 1.3.0-2 amd64 [installed]
26 Jun 17 @ 13:20:11 ~
$
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
^^ thanks for the explanation
Changed the window to transparent to avoid the argb -
looks better with my wallpapers.
@dobbie -
do you have the tolua++ package installed? That's the only other lua package I have installed that you may need. I can't remember if it comes in as a dependency for Arch and Void (it should on a debian system for conky-all).
You must unlearn what you have learned.
-- yoda
Offline
@ grzegorzdabrowka
Nice little conky cheetsheet. I use this: time_2.txt
Conky: ${time %?} or ${time %? %? %?}
Time
====
%H Two digit representation of the hour in 24-hour format 00 through 23
%I Two digit representation of the hour in 12-hour format 01 through 12
%l (lower-case 'L') Hour in 12-hour format, with a space preceeding single digits 1 through 12
%M Two digit representation of the minute 00 through 59
%p UPPER-CASE 'AM' or 'PM' based on the given time Example: AM for 00:31, PM for 22:23
%P lower-case 'am' or 'pm' based on the given time Example: am for 00:31, pm for 22:23
%r Same as "%I:%M:%S %p" Example: 09:34:17 PM for 21:34:17
%R Same as "%H:%M" Example: 00:35 for 12:35 AM, 16:44 for 4:44 PM
%S Two digit representation of the second 00 through 59
%T Same as "%H:%M:%S" Example: 21:34:17 for 09:34:17 PM
-------
%X Preferred time representation based on locale, without the date Example: 03:59:16 or 15:59:16
-------
%z Either the time zone offset from UTC or the abbreviation (depends on operating system) Example: -0500 or EST for Eastern Time
%Z The time zone offset/abbreviation option NOT given by %z (depends on operating system) Example: -0500 or EST for Eastern Time
Day
===
%a An abbreviated textual representation of the day Sun through Sat
%A A full textual representation of the day Sunday through Saturday
%d Two-digit day of the month (with leading zeros) 01 to 31
%e Day of the month, with a space preceding single digits 1 to 31
%j Day of the year, 3 digits with leading zeros 001 to 366
%u ISO-8601 numeric representation of the day of the week 1 (for Monday) though 7 (for Sunday)
%w Numeric representation of the day of the week 0 (for Sunday) through 6 (for Saturday)
Month
=====
%b Abbreviated month name, based on the locale Jan through Dec
%B Full month name, based on the locale January through December
%h Abbreviated month name, based on the locale (an alias of %b) Jan through Dec
%m Two digit representation of the month (with leading zeros) 01 to 12
Year
====
%g Two digit representation of the year going by ISO-8601:1988 standards (see Week: %V) Example: 09 for the week of January 6, 2009
%G The full four-digit version of %g Example: 2008 for the week of January 3, 2009
%y Two digit representation of the year Example: 09 for 2009, 79 for 1979
%Y Four digit representation for the year Example: 2038
Century
=======
%C Two digit representation of the century (year divided by 100, truncated to an integer) 19 for the 20th
Week
====
%U Week number of the given year, starting with the first Sunday as the first week 13 (for the 13th full week of the year)
%V ISO-8601:1988 week number of the given year, starting with the first week of the year with at least 4 weekdays, with Monday being the start of the week
01 through 53 (where 53 accounts for an overlapping week)
%W A numeric representation of the week of the year, starting with the first Monday as the first week
46 (for the 46th week of the year beginning with a Monday)
Time and Date Stamps
====================
%c Preferred date and time stamp based on local Example: Tue Feb 5 00:45:10 2009 for February 4, 2009 at 12:45:10 AM
%D Same as "%m/%d/%y" Example: 02/05/09 for February 5, 2009
%F Same as "%Y-%m-%d" (commonly used in database datestamps) Example: 2009-02-05 for February 5, 2009
%s Unix Epoch Time timestamp (same as the time() function) Example: 305815200 for September 10, 1979 08:40:00 AM
%x Preferred date representation based on locale, without the time Example: 02/05/09 for February 5, 2009
Miscellaneous
=============
%n A newline character ("\n") ---
%t A Tab character ("\t") ---
%% A literal percentage character ("%") ---
Maximum length of this parameter is 1023 characters.
Keep sharing.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
^^ thanks for the explanation
You're welcome.
looks better with my wallpapers.
NICE! Not freezing up on you?
tolua++
Not a dependency of conky-all on Debian and I have no tolua++ here.
26 Jun 17 @ 13:46:45 ~
$ dep conky-all
alias dep=apt-cache depends
conky-all
Depends: libaudclient2
Depends: libc6
Depends: libcairo2
Depends: libcurl3-gnutls
Depends: libdbus-glib-1-2
Depends: libglib2.0-0
Depends: libimlib2
Depends: libiw30
Depends: liblua5.1-0 <<<--- TADA! or maybe 5.1-0 [i]PLUS[/i]
Depends: libncurses5
Depends: libtinfo5
Depends: libx11-6
Depends: libxdamage1
Depends: libxext6
Depends: libxfixes3
Depends: libxft2
Depends: libxml2
Depends: libxmmsclient6
Depends: libxnvctrl0
Suggests: apcupsd
Suggests: audacious
Suggests: moc
Suggests: mpd
Suggests: xmms2
Conflicts: conky-cli
Conflicts: conky-std
Breaks: conky
Replaces: conky
Replaces: conky-cli
Replaces: conky-std
26 Jun 17 @ 13:46:56 ~
$
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
^ thanks - looks like it is just a dev package now; probably still need it to compile conky from source.
@S11 no freezing. But I did try "own_window = false" and that wreaked some havoc with all open windows blinking and crashed tint2. Good times.
And this being conky -> more tweaking; changed the "alignr" to "goto" for some better (on my screen anyway) balance and changed the font to a monospaced with a slashed "0":
conky 1.10 config file:
conky.config = {
-- 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 = false,
update_interval = 0.5,
-- update_run_times = '0',
total_run_times = 0,
cpu_avg_samples = 2,
net_avg_samples = 2,
double_buffer = true,
no_buffers = true,
text_buffer_size = 1024,
imlib_cache_size = 512,
own_window = true,
own_window_class = 'Conky',
own_window_type = 'desktop',--All options: conky,dock,desktop,normal,override,panel
own_window_transparent = true,
-- own_window_argb_visual = true,
-- own_window_argb_value = 255,--Opacity color
own_window_colour = '#2E2C2C',--Change color bg in this line
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
draw_shades = false,
draw_borders = false,
draw_graph_borders = false,
minimum_width = 216, minimum_height = 100,
maximum_width = 216,
alignment = 'top_left',
gap_x = 8,
gap_y = 8,
use_xft = true,
override_utf8_locale = true,
font = 'Inconsolata:size=10',
xftalpha = 1,
uppercase = false,
use_spacer = 'none',
default_color = '#868686',--D8D8D8
default_shade_color = '#000000',
default_outline_color = '#939393',
color0 = '#FFFFFF',
color1 = '#010101',
color2 = '#F3F3FF',-- - red
color3 = '#FFFF00',-- - yellow
color4 = '#0000FF',-- - blue
color5 = '#00FF00',-- - green
color6 = '#FFA500',-- - orange
color7 = '#F3F3FF',-- - cyan
color8 = '#FFD700',-- - gold
color9 = '#F00F16',-- - reddish
lua_load = '~/.conky/DAWANA/scripts/lua/imlib_clock.lua',
-- ${image ~/.conky/DAWANA/images/dw/line.png -s 80x1 -p 138,68}
-- ${image ~/.conky/DAWANA/images/dw/line-v.png -s 1x135 -p 135,0}
};
conky.text = [[
${voffset 5}${goto 164}${font Ubuntu:size=8}${color FFFFF0}${time %A}${font}
${voffset -5}${goto 164}${font Ubuntu:size=25}${color FFFFF0}${time %e}${font}
${voffset 1}${goto 160}${font Ubuntu:size=8}${color FFFFF0}${time %b %Y}${font}
${voffset 10}${goto 160}${uptime_short}
${voffset 5}${goto 156}${if_match ${battery_percent BAT0}<=15}${color9}${blink ${battery_percent BAT0}%}${color}${else}${if_match ${battery_percent BAT0}<=33}${color8}${battery_percent BAT0}%${else}${if_match ${battery_percent BAT0}>33}${color2}${battery_percent BAT0}%${endif}${endif}${endif}${color FFFFF0}${offset 4}${execpi 60 acpi -b | awk '{print $3}' | cut -c1-4}
${voffset 5}${goto 156}${battery_time BAT0}
${lua imlib_clock dw 130 71 72}
${image ~/.conky/DAWANA/images/dw/line.png -s 80x1 -p 138,74}
${voffset -30}
##======================== Regards, Etles_Team =============================##
]];
Last edited by PackRat (2017-06-26 18:44:17)
You must unlearn what you have learned.
-- yoda
Offline
hahahahaha OMG! I remember that use to happen all the time back in my days with Xubu!
And I see you are using conky v1.10 I refuse - as long as v1.9 runs for me I will use it.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
I don't blame you. It would be nice if conky 1.9 was forked; or even 1.8.
You must unlearn what you have learned.
-- yoda
Offline
HoaS made a Debian Stretch version of conky 1.9 I'm running the Debian 8 conky-all in Debian 9 and it works just fine. Ah yes, conky 1.8 was the "sweetheart" of conkys. 1.7 was a killer.
What distro are you running?
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Void Linux. I'd have to compile 1.9 from source - which I've done for Void once; or try and use xbps-source to make a Void package for it.
You must unlearn what you have learned.
-- yoda
Offline
I don't blame you. It would be nice if conky 1.9 was forked; or even 1.8.
Think you can find the source for Conky 1.9 in the Debian snapshots repo. Just need to rebuild it against the newer libraries.
@Head_on_a_Stick's package works just fine so far.
Last edited by DeepDayze (2017-06-26 20:22:27)
Real Men Use Linux
Offline
^^ thanks for the explanation
Changed the window to transparent to avoid the argb -
http://en.zimagez.com/miniature/screenshot2017-06-2612-21-43.png
looks better with my wallpapers.
@dobbie -
do you have the tolua++ package installed? That's the only other lua package I have installed that you may need. I can't remember if it comes in as a dependency for Arch and Void (it should on a debian system for conky-all).
I have that installed. I am completely stumped on this one.
"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
Void - I should have known, you've left the odd breadcrumb laying around. Oh look, a loaf!
In other words: I knew that, I forgot that I knew that, but I knew that. O:)
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
PackRat wrote:I don't blame you. It would be nice if conky 1.9 was forked; or even 1.8.
Think you can find the source for Conky 1.9 in the Debian snapshots repo. Just need to rebuild it against the newer libraries.
@Head_on_a_Stick's package works just fine so far.
You must unlearn what you have learned.
-- yoda
Offline
PackRat wrote:^^ thanks for the explanation
Changed the window to transparent to avoid the argb -
http://en.zimagez.com/miniature/screenshot2017-06-2612-21-43.png
looks better with my wallpapers.
@dobbie -
do you have the tolua++ package installed? That's the only other lua package I have installed that you may need. I can't remember if it comes in as a dependency for Arch and Void (it should on a debian system for conky-all).
I have that installed. I am completely stumped on this one.
Try what I did. I was stumped so just started from scratch. Unzip the original file and re-create the author's directory structure. Use the conky 1.10 config file I posted; don't touch the lua script.
I recently copied the files to a new location - ~/conky/clock/ - and edited the paths in the conkyrc and lua script. Which is how I started yesterday. And of course it works just fine - still get that terminal output about the imlib image being null though.
You must unlearn what you have learned.
-- yoda
Offline