You are not logged in.
I need to steal ... errrrrr, borrow ? Errrr, respectfully appropriate some of these good looking conky's ! Dang !
Offline
I saw another Rainmeter skin that I liked, and I have approximated it in conky. See this skin, and also this
If you can, please try out and test the following code. It needs a bit of adjustment to get everything to fit just right. Currently, there are config options for every element. I might remove them in favour of a single global config, which simplifies it but takes away some customization.
Note that the ':' separator, and AM/PM are drawn from the conky.conf
conky.conf
conky.config = {
-- Conky settings
background = false,
update_interval = 1,
cpu_avg_samples = 2,
net_avg_samples = 2,
override_utf8_locale = true,
double_buffer = true,
no_buffers = true,
short_units = true,
text_buffer_size = 2048,
imlib_cache_size = 0,
use_xft = true,
font = 'sans:size=50',
xftalpha = 1,
own_window_type = 'desktop',
own_window_hints = 'undecorated,sticky,skip_taskbar,skip_pager,below',
own_window = true,
own_window_transparent = true,
-- own_window_argb_visual = true,
-- own_window_colour = '303030',
default_color = '5dacba',
border_inner_margin = 0,
border_outer_margin = 0,
minimum_width = 1350,
minimum_height = 720,
alignment = 'top_left',
gap_x = 10,
gap_y = 30,
-- Graphics settings
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
-- Lua load
lua_load = 'running_clock.lua',
lua_draw_hook_pre = 'main',
};
-- we set the ':' and AM/PM here
conky.text = [[
${voffset 125} ${goto 955}: \
${voffset 5}${goto 1060}${time %p}
]];
running_clock.lua It could use a better name
--[[
running_clock.lua
lua script for running_clock conky
easysid
Sunday, 17 December 2017 15:57 IST
Based on the Sasuke Theme Rainmeter by Quantum99 (http://fav.me/d6ykk0m)
Credits:
* mrpeachy, for the out() function
* rainmeter skin http://fav.me/d6ykk0m
--]]
require 'cairo'
--
-- There are two tables
-- settings_t1 draws the date, and time
-- settings_t2 draws the day, and month
-- IMPORTANT - The separator ':' for Hours and minutes, as well as AM/PM,
-- is drawn in the conkyrc. This might be fixed in the future
--
settings_t1 = { -- This table draws the vertical text - date and time
{
arg='%d', -- date. See man date, or strftime
max = 31, -- maximum value
x = 400, -- x position
y = 520, -- y position
font = 'sans', -- font face
size = '25', -- font size
text_color = {0x5dacba, 1}, -- color for the actual text
base_color = {0x404040, 1}, -- color for the trail
trail = 7, -- number of trail after the text
trail_back = nil; -- trail before text. nil value means all the remaining trail
},
{
arg='%I', -- hours in 12hr format. See man date, or strftime
max = 12,
x = 950,
y = 200,
font = 'sans',
size = '60',
text_color = {0x5dacba, 1},
base_color = {0x202020, 0.7},
justify='r', -- text justification - right (default left)
trail = 2,
trail_back = 2;
},
{
arg='%M', -- Minutes. See man date, or strftime
max = 60,
x = 980,
y = 200,
font = 'sans',
size = '60',
text_color = {0x5dacba, 1},
base_color = {0x202020, 0.7},
trail = 2,
trail_back = 2;
}
} -- end settings_t1
settings_t2 = { -- This table draws the horizontal text - day, and month
{
arg='%m', -- month in decimal format. See man date, or strftime
max=12,
x = 440,
y = 520,
font = 'sans',
size = '25',
text_color = {0x5dacba, 1},
base_color = {0x404040, 1},
trail = 45,
left_pad = 60, -- left side padding to make space for date
-- translate the following table for your own language
names = {"JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY",
"AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER"}
},
{
arg='%u', -- day of the week. See man date, or strftime
max=7,
x = 440,
y = 560,
font = 'sans',
size = '38',
text_color = {0x5dacba, 1},
base_color = {0x404040, 1},
trail = 26,
left_pad = 60, -- left side padding to make space for date
-- translate the following table for your own language
names = {"SUNDAY", "MONDAY", "TUESDAY", "WEDNESDAY",
"THURSDAY", "FRIDAY", "SATURDAY"}
}
} -- end settings_t2
-- ********** You should not need to change anything below this **********
-- main function.
function conky_main()
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}'))
-- Code here
if updates > 2 then
for i in ipairs(settings_t1) do
draw_date(settings_t1[i])
end --for
for i in ipairs(settings_t2) do
draw_day(settings_t2[i])
end --for
end
-- Code here
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
end
function draw_date(t)
local just = t.justify or "l"
local value = tonumber(os.date(t.arg))
if t.trail_back == nil then t.trail_back = t.max - t.trail - 1 end
local dy = 1.2*get_extents(t.font, t.size, value, nil)
-- draw main text
out({x=t.x, y=t.y, fs=t.size, f=t.font, c=t.text_color, txt=value, hj=just})
-- draw forward trail
for i = 1, t.trail do
local v = value + i
if v > t.max then v = v%t.max end
out({x=t.x, y=t.y+i*dy, fs=t.size, f=t.font, c=t.base_color, txt=v, hj=just})
end
-- draw back trail
for i = 1, t.trail_back do
local v = value - i
if v < 1 then v = v + t.max end
out({x=t.x, y=t.y-i*dy, fs=t.size, f=t.font, c=t.base_color, txt=v, hj=just})
end
end --end draw_date
function draw_day(t)
local value = tonumber(os.date(t.arg))
local s=''
for i = value+1, #t.names do s = s..t.names[i] end
for i = 1, value -1 do s = s..t.names[i] end
local rhs = s:sub(1, t.trail)
local lhs = s:sub(t.trail+1)
s = t.names[value]
local dx = get_extents(t.font, t.size, s, 'width')
out({x=t.x, y=t.y, fs=t.size, f=t.font, c=t.text_color, txt=s})
out({x=t.x+dx, y=t.y, fs=t.size, f=t.font, c=t.base_color, txt=rhs})
out({x=t.x-t.left_pad, y=t.y, fs=t.size, f=t.font, c=t.base_color, txt=lhs, hj='r'})
end --end draw_day
function get_extents(font, size, text, ext)
local extents=cairo_text_extents_t:create()
local e = 0
tolua.takeownership(extents)
cairo_select_font_face (cr,font)
cairo_set_font_size(cr,size)
cairo_text_extents(cr,text,extents)
if ext == 'width' then
e = extents.width
else
e = extents.height
end
return e
end --end get_extents
function out(txj)
-- Taken from mrpeachy's wun.lua
-- args: c,a,f,fs,face,x,y,txt,hj,vj,ro,sxo,syo,sfs,sface,sc,sa
local extents=cairo_text_extents_t:create()
tolua.takeownership(extents)
local function justify(jtxt,x,hj,y,vj,f,face,fs)
if face=="normal" then
face={f,CAIRO_FONT_SLANT_NORMAL,CAIRO_FONT_WEIGHT_NORMAL}
elseif face=="bold" then
face={f,CAIRO_FONT_SLANT_NORMAL,CAIRO_FONT_WEIGHT_BOLD}
elseif face=="italic" then
face={f,CAIRO_FONT_SLANT_ITALIC,CAIRO_FONT_WEIGHT_NORMAL}
elseif face=="bolditalic" then
face={f,CAIRO_FONT_SLANT_ITALIC,CAIRO_FONT_WEIGHT_BOLD}
else
print ('face not set - "normal","bold","italic","bolditalic"')
end
cairo_select_font_face (cr,face[1],face[2],face[3])
cairo_set_font_size(cr,fs)
cairo_text_extents(cr,jtxt,extents)
local wx=extents.x_advance
local wd=extents.width
local hy=extents.height
local bx=extents.x_bearing
local by=extents.y_bearing+hy
local tx=x
local ty=y
--set horizontal alignment - l, c, r
if hj=="l" then
x=x-bx
elseif hj=="c" then
x=x-((wx-bx)/2)-bx
elseif hj=="r" then
x=x-wx
else
print ("hj not set correctly - l, c, r")
end
--vj. n=normal, nb=normal-ybearing, m=middle, mb=middle-ybearing, t=top
if vj=="n" then
y=y
elseif vj=="nb" then
y=y-by
elseif vj=="m" then
y=y+((hy-by)/2)
elseif vj=="mb" then
y=y+(hy/2)-by
elseif vj=="t" then
y=y+hy-by
else
print ("vj not set correctly - n, nb, m, mb, t")
end
return face,fs,x,y,rad,rad2,tx,ty
end--justify local function #################
--set variables
local c=txj.c or {0xffffff, 1}
local a=txj.a or 1
local f=txj.f or "monospace"
local fs=txj.fs or 12
local x=txj.x or 100
local y=txj.y or 100
local txt=txj.txt or "text"
local hj=txj.hj or "l"
local vj=txj.vj or "n"
local face=txj.face or "normal"
--print text ################################
local face,fs,x,y=justify(txt,x,hj,y,vj,f,face,fs)
cairo_select_font_face (cr,face[1],face[2],face[3])
cairo_set_font_size(cr,fs)
cairo_move_to (cr,x,y)
cairo_set_source_rgba (cr,rgba_to_r_g_b_a(c))
cairo_show_text (cr,txt)
cairo_stroke (cr)
return nx
end--function out
function rgba_to_r_g_b_a(tcolor)
local color,alpha=tcolor[1],tcolor[2]
return ((color / 0x10000) % 0x100) / 255.,
((color / 0x100) % 0x100) / 255., (color % 0x100) / 255., alpha
end --end rgba
Last edited by easysid (2017-12-17 16:57:44)
Offline
I saw another Rainmeter skin that I liked, and I have approximated it in conky.
Hopefully will be more active in forums come January.
Have this bookmarked to test, looks really nice!!
Thank youi
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
@easysid
It is rare here that conky1.10 works immediately. O:)
This is my result (scrot. moe is broken at the moment)
: AM/PM have I not yet understood
...
${voffset 5}${goto 1060}${time %p}
..
ought to be wrong
PS2: hm, I can comment out the code line (#) still I miss the number 0 (e. g. 22:09)
Last edited by unklar (2017-12-18 10:40:48)
Offline
I'd like to ask a question. There is a strange pixel showing in conky, after the gateway number:
Code is something like this:
${if_up wlp0}${color grey}Net:
${color grey}Down: $color${downspeed wlp0}${alignr}${downspeedgraph wlp0 20,160 474747 E9E9E9}
${color grey}Total Down: $color$alignr${totaldown wlp0}
${color grey}Up: $color${upspeed wlp0}${alignr}${upspeedgraph wlp0 20,160 474747 E9E9E9}
${color grey}Total Up: $color$alignr${totalup wlp0}
${color grey}Local IP:$color$alignr${addr wlp0}
${color grey}Gateway:$color$alignr${gw_ip wlp0}${endif}
Any ideas maybe why it is there?
Offline
Offline
^The image works for me here in the thread with scrot.moe, all of the pictures look ok. Maybe it's got something to do with a forum setting.
Thank you for testing. That pixel is really annoying on the desktop and I have no idea why it is there. That part of conky looks basically the same for me, the end of the local IP line is not aligned correctly to the right. If I close conky, that pixel goes away.
Last edited by martix (2017-12-18 14:19:53)
Offline
Offline
I have made a few changes to the conky (now called fade conky, after the rainmeter skin)
The ':' separator, and the AM/PM are now drawn by the lua script. However a side effect of this is that all digits are now zero padded. While this is desirable in the clock, I am not so sure of it in the calendar. Separating the two will lead to additional code that doesn't seem necessary.
Also missing is the circluar trail of original rainmeter. It would be easy to implement, but again, I don't think that it is necessary.
I have also added an option to configure common attributes like font and colors globally. They can still be configured individually.
Use the following lua script. As always suggestions are welcome
--[[
fade_clock.lua
lua script for fade_clock conky
easysid
Sunday, 17 December 2017 15:57 IST
Based on the Fade Rainmeter Skin by FreakQuency85 (http://fav.me/d2sd40n)
Credits:
* mrpeachy, for the out() function
* rainmeter skin http://fav.me/d2sd40n
--]]
require 'cairo'
--
-- There are two tables
-- settings_t1 draws the date, and time
-- settings_t2 draws the day, and month
--
-- Global settings. These are overrriden by element specific settings
default_font = 'sans' -- font
default_text_color = {0x5dacba, 1} -- color for the actual text
default_base_color = {0x404040, 1} -- color for the trail
settings_t1 = { -- This table draws the vertical text - date and time
{
arg='%d', -- date. See man date, or strftime
max = 31, -- maximum value
x = 400, -- x position
y = 520, -- y position
-- font = 'sans', -- font face. Uncomment to override default_font
size = 25, -- font size
-- text_color = {0x5dacba, 1}, -- color for the actual text. Uncomment to override default_text_color
-- base_color = {0x404040, 1}, -- color for the trail. Uncomment to override default_base_color
trail = 7, -- number of trail after the text
trail_back = nil; -- trail before text. nil value means all the remaining trail
},
{
arg='%I', -- hours in 12hr format. See man date, or strftime
max = 12,
x = 950,
y = 200,
size = 60,
base_color = {0x202020, 0.7}, -- element specific color for the trail
justify='r', -- text justification - right (default left)
trail = 2,
trail_back = 2;
},
{
arg='%M', -- Minutes. See man date, or strftime
max = 60,
x = 980,
y = 200,
size = 60,
base_color = {0x202020, 0.7},
trail = 2,
trail_back = 2;
},
{
arg='%p', -- AM/PM. See man date, or strftime
x = 1070,
y = 200,
size = 60,
trail = nil, -- Do not draw the trail. Important
},
{
arg=':', -- just the ':' separator
x = 962,
y = 196,
size = 60,
trail = nil, -- Do not draw the trail. Important
}
} -- end settings_t1
settings_t2 = { -- This table draws the horizontal text - day, and month
{
arg='%m', -- month in decimal format. See man date, or strftime
max=12,
x = 440,
y = 520,
size = 26,
trail = 44,
left_pad = 60, -- left side padding to make space for date
-- translate the following table for your own language
names = {"JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY",
"AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER"}
},
{
arg='%u', -- day of the week. See man date, or strftime
max=7,
x = 440,
y = 560,
size = 38,
trail = 27,
left_pad = 60, -- left side padding to make space for date
-- translate the following table for your own language
names = {"SUNDAY", "MONDAY", "TUESDAY", "WEDNESDAY",
"THURSDAY", "FRIDAY", "SATURDAY"}
}
} -- end settings_t2
-- ********** You should not need to change anything below this **********
-- main function.
function conky_main()
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 > 2 then
-- drawing code here
for i in ipairs(settings_t1) do
draw_datetime(settings_t1[i])
end --for
for i in ipairs(settings_t2) do
draw_daymonth(settings_t2[i])
end --for
-- drawing code here
end -- if
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
end
function draw_datetime(t)
local font = t.font or default_font
local base_color = t.base_color or default_base_color
local text_color = t.text_color or default_text_color
local value = os.date(t.arg)
-- draw main text
out({x=t.x, y=t.y, fs=t.size, f=font, c=text_color, txt=value, hj=t.justify})
-- calculate trail only if we have to
if t.trail then
local value = tonumber(value) or 0
if not t.trail_back then t.trail_back = t.max - t.trail - 1 end
-- magic number warning
local dy = 1.2*get_extents(font, t.size, value, 'height')
for i = 1, t.trail do -- draw forward trail
local v = value + i
if v > t.max then v = v%t.max end -- fix out of bounds
out({x=t.x, y=t.y+i*dy, fs=t.size, f=font, c=base_color,
txt=string.format('%02d', v), hj=t.justify})
end
for i = 1, t.trail_back do -- draw back trail
local v = value - i
if v < 1 then v = v + t.max end -- fix negatives
out({x=t.x, y=t.y-i*dy, fs=t.size, f=font, c=base_color,
txt=string.format('%02d', v), hj=t.justify})
end
end --end if
end --end draw_datetime
function draw_daymonth(t)
local font = t.font or default_font
local base_color = t.base_color or default_base_color
local text_color = t.text_color or default_text_color
local value = tonumber(os.date(t.arg))
local s=''
for i = value+1, #t.names do s = s..t.names[i] end -- join the next days
for i = 1, value -1 do s = s..t.names[i] end -- join the previous days
local rhs = s:sub(1, t.trail) -- split the trail
local lhs = s:sub(t.trail+1)
s = t.names[value]
local dx = get_extents(font, t.size, s, 'width') -- check how wide is current day
out({x=t.x, y=t.y, fs=t.size, f=font, c=text_color, txt=s})
out({x=t.x+dx, y=t.y, fs=t.size, f=font, c=base_color, txt=rhs})
out({x=t.x-t.left_pad, y=t.y, fs=t.size, f=font, c=base_color, txt=lhs, hj='r'})
end --end draw_daymonth
function get_extents(font, size, text, ext)
local extents=cairo_text_extents_t:create()
local e = 0
tolua.takeownership(extents)
cairo_select_font_face (cr,font)
cairo_set_font_size(cr,size)
cairo_text_extents(cr,text,extents)
if ext == 'width' then
e = extents.width
else
e = extents.height
end
return e
end --end get_extents
function out(txj)
-- Taken from mrpeachy's wun.lua
-- args: c,a,f,fs,face,x,y,txt,hj,vj,ro,sxo,syo,sfs,sface,sc,sa
local extents=cairo_text_extents_t:create()
tolua.takeownership(extents)
local function justify(jtxt,x,hj,y,vj,f,face,fs)
if face=="normal" then
face={f,CAIRO_FONT_SLANT_NORMAL,CAIRO_FONT_WEIGHT_NORMAL}
elseif face=="bold" then
face={f,CAIRO_FONT_SLANT_NORMAL,CAIRO_FONT_WEIGHT_BOLD}
elseif face=="italic" then
face={f,CAIRO_FONT_SLANT_ITALIC,CAIRO_FONT_WEIGHT_NORMAL}
elseif face=="bolditalic" then
face={f,CAIRO_FONT_SLANT_ITALIC,CAIRO_FONT_WEIGHT_BOLD}
else
print ('face not set - "normal","bold","italic","bolditalic"')
end
cairo_select_font_face (cr,face[1],face[2],face[3])
cairo_set_font_size(cr,fs)
cairo_text_extents(cr,jtxt,extents)
local wx=extents.x_advance
local wd=extents.width
local hy=extents.height
local bx=extents.x_bearing
local by=extents.y_bearing+hy
local tx=x
local ty=y
--set horizontal alignment - l, c, r
if hj=="l" then
x=x-bx
elseif hj=="c" then
x=x-((wx-bx)/2)-bx
elseif hj=="r" then
x=x-wx
else
print ("hj not set correctly - l, c, r")
end
--vj. n=normal, nb=normal-ybearing, m=middle, mb=middle-ybearing, t=top
if vj=="n" then
y=y
elseif vj=="nb" then
y=y-by
elseif vj=="m" then
y=y+((hy-by)/2)
elseif vj=="mb" then
y=y+(hy/2)-by
elseif vj=="t" then
y=y+hy-by
else
print ("vj not set correctly - n, nb, m, mb, t")
end
return face,fs,x,y,rad,rad2,tx,ty
end--justify local function #################
--set variables
local c=txj.c or {0xffffff, 1}
local a=txj.a or 1
local f=txj.f or "monospace"
local fs=txj.fs or 12
local x=txj.x or 100
local y=txj.y or 100
local txt=txj.txt or "text"
local hj=txj.hj or "l"
local vj=txj.vj or "n"
local face=txj.face or "normal"
--print text ################################
local face,fs,x,y=justify(txt,x,hj,y,vj,f,face,fs)
cairo_select_font_face (cr,face[1],face[2],face[3])
cairo_set_font_size(cr,fs)
cairo_move_to (cr,x,y)
cairo_set_source_rgba (cr,rgba_to_r_g_b_a(c))
cairo_show_text (cr,txt)
cairo_stroke (cr)
return nx
end--function out
function rgba_to_r_g_b_a(tcolor)
local color,alpha=tcolor[1],tcolor[2]
return ((color / 0x10000) % 0x100) / 255.,
((color / 0x100) % 0x100) / 255., (color % 0x100) / 255., alpha
end --end rgba
Offline
That part of conky looks basically the same for me, the end of the local IP line is not aligned correctly to the right.
^ add a space bar to your
${color grey}Local IP:$color$alignr${addr wlp0}
${color grey}Local IP: $color$alignr${addr wlp0}
Offline
@easysid,
the 'Preview' is not yet correct
I can't find the "button"![]()
What 'button'?
The effect in the screenshot is because you probably forgot to change 'max' value to 24, from 12.
However, there is a larger bug that you have helped uncover. The time in the trail wont go to 00. It will show 24 or 12 or 60 instead 00. Now this is an issue. Hours and minutes go to, or rather begin from 00, but days begin from 01. But they are drawn from the same code. This is something that would need to be fixed.
Offline
Hi easysid,
I have to check it out.
Offline
The effect in the screenshot is because you probably forgot to change 'max' value to 24, from 12.
Yeah, you were right! I had overlooked this attitude.
Offline
martix wrote:That part of conky looks basically the same for me, the end of the local IP line is not aligned correctly to the right.
^ add a space bar to your
${color grey}Local IP:$color$alignr${addr wlp0} ${color grey}Local IP: $color$alignr${addr wlp0}
Thanks. I had a commented out part after "endif" and I simply moved it to a new line. Now that strange pixel is finally gone.
Offline
This is for conky.conf version 1.10, You need awesome font for this conky.
Modified conky from here: https://raw.githubusercontent.com/andre … conky.conf
Original conky image: https://github.com/andrea-rosa/conky-co … enshot.png
conky.config = {
background = true,
update_interval = 1.5,
cpu_avg_samples = 2,
net_avg_samples = 2,
out_to_console = false,
override_utf8_locale = true,
double_buffer = true,
no_buffers = true,
text_buffer_size = 32768,
imlib_cache_size = 0,
own_window = true,
own_window_type = 'normal',
own_window_argb_visual = true,
own_window_argb_value = 120,
own_window_hints = 'decorated,below,sticky,skip_taskbar,skip_pager',
border_inner_margin = 10,
border_outer_margin = 0,
xinerama_head = 2,
alignment = 'top_right',
gap_x = 30,
gap_y = 30,
draw_shades = true,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
use_xft = true,
font = 'Ubuntu Mono:size=9',
xftalpha = 0.8,
uppercase = false,
default_color = '#FFFFFF',
own_window_colour = '#2B2B2B',
minimum_width = 0, minimum_height = 0,
};
conky.text = [[
${font FontAwesome}${font} Archlinux - ${kernel} - ${machine}${color}${alignr}${font FontAwesome}${font}${voffset -2} ${time %d/%m/%y} ${font FontAwesome}${font}${voffset -2} ${time %H:%M}
${hr}
${font FontAwesome}${font}${voffset -2} ${alignr}[Tot-Up:${totalup enp0s29u1u3}] - [Tot-Down:${totaldown enp0s29u1u3}]
${goto 20}${upspeedgraph enp0s29u1u3 30,178 06E9F8 2104FA}${alignr}${downspeedgraph enp0s29u1u3 30,175 FFFF00 DD3A21}
${font FontAwesome}${goto 20}${font} ${upspeed enp0s29u1u3}${font FontAwesome}${alignr}${font} ${downspeed enp0s29u1u3}
${hr}
${font FontAwesome}${font}${voffset -2}
${goto 20}${diskiograph_read 30,178 06E9F8 2104FA}${alignr}${diskiograph_write 30,175 FFFF00 DD3A21}
${font FontAwesome}${goto 20}${font} ${diskio_read}${font FontAwesome}${alignr}${font} ${diskio_write}
${hr}
${font FontAwesome}${font}${voffset -2} ${mem}/${memmax} (${memperc}%) | Swap: ${swapperc}%
${alignr}${memgraph 30,355 AAF5D0 00B35B}
${hr}
${goto 20}CPU0: ${cpu cpu0}%${goto 100}${cpubar 7,80 cpu0}${alignr}CPU4: ${cpu cpu4}%${alignr} ${cpubar 7,80 cpu4}
${goto 20}CPU1: ${cpu cpu1}%${goto 100}${cpubar 7,80 cpu1}${alignr}CPU5: ${cpu cpu5}%${alignr} ${cpubar 7,80 cpu5}
${goto 20}CPU2: ${cpu cpu2}%${goto 100}${cpubar 7,80 cpu2}${alignr}CPU6: ${cpu cpu6}%${alignr} ${cpubar 7,80 cpu6}
${goto 20}CPU3: ${cpu cpu3}%${goto 100}${cpubar 7,80 cpu3}${alignr}CPU7: ${cpu cpu7}%${alignr} ${cpubar 7,80 cpu7}
${hr}
${color #FFFF00}${goto 20}Name ${goto 310}Pid${goto 360}Cpu%${goto 420}Mem%${color}
${goto 20}${top name 1} ${goto 300}${top pid 1}${goto 355}${top cpu 1}${goto 415}${top mem 1}
${goto 20}${top name 2} ${goto 300}${top pid 2}${goto 355}${top cpu 2}${goto 415}${top mem 2}
${goto 20}${top name 3} ${goto 300}${top pid 3}${goto 355}${top cpu 3}${goto 415}${top mem 3}
${goto 20}${top name 4} ${goto 300}${top pid 4}${goto 355}${top cpu 4}${goto 415}${top mem 4}
${hr}
${font FontAwesome} ${font}${fs_size /root} [${color}U: ${fs_used /root} - F: ${fs_free /root}] ${font FontAwesome} ${font}${fs_size /home} [${color}U: ${fs_used /home} - F: ${fs_free /home}]
#${addrs enp0s29u1u3}
]];
Offline
Happy New Year to all!
I am hoping some of those who are refugees from the old #! days are still around (Sector11, Wlrouf, mrPechy, et al) and perhaps even some new friends, as I could use some help on a conky. As some of you may remember, I am not a programmer. I understand just enough code to get into trouble!
This is what the finished conky is to look like (this is actually two conky running one atop the other):
What I wish to do is combine the two conky and the subsequent three lua scripts into one conky, one lua.
The secondary (clock hands) conky
TIA
-DrakarNoir
PS:
This is posted on the Vsido forum as well. Thanks to Packrat for directing me here!
--I can EXPLAIN it to you. I cannot UNDERSTAND it for you!
Offline
Hello
I have any probleme with my old cronograph conky
he work great .
the problem is with that 2 lines ( i try a lot of changing like this
(lua_draw_hook_pre main clock_rings - lua_draw_hook_pre main_clock_rings - etc )
but i don't found the
right one
here the konsole
lua_load ~/.conky/cronograph/scripts/clock_rings.lua
lua_draw_hook_pre clock_rings
konsole
[loutch@localhost ~]$ conky -c ~/.conky/cronograph/conkyrc
Conky: forked to background, pid is 1296
[loutch@localhost ~]$
Conky: desktop window (22001b4) is subwindow of root window (34c)
Conky: window type - normal
Conky: drawing to created window (0x4e00003)
Conky: drawing to double buffer
--2018-01-03 16:46:55-- [url]http://www.accuweather.com/fr/fr/sarreguemines/135050/current-weather/135050[/url]
Résolution de [url=http://www.accuweather.com]www.accuweather.com[/url] ([url=http://www.accuweather.com]www.accuweather.com[/url])… 23.38.6.92
Connexion à [url=http://www.accuweather.com]www.accuweather.com[/url] ([url=http://www.accuweather.com]www.accuweather.com[/url])|23.38.6.92|:80… connecté.
requête HTTP transmise, en attente de la réponse… 301 Moved Permanently
Emplacement : [url]https://www.accuweather.com/fr/fr/sarreguemines/135050/current-weather/135050[/url] [suivant]
--2018-01-03 16:46:56-- [url]https://www.accuweather.com/fr/fr/sarreguemines/135050/current-weather/135050[/url]
Connexion à [url=http://www.accuweather.com]www.accuweather.com[/url] ([url=http://www.accuweather.com]www.accuweather.com[/url])|23.38.6.92|:443… connecté.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : non indiqué [text/html]
Sauvegarde en : « /home/loutch/1_accuweather/curr_cond_raw »
[ <=> ] 101 005 --.-K/s ds 0,07s
2018-01-03 16:46:56 (1,38 MB/s) - « /home/loutch/1_accuweather/curr_cond_raw » sauvegardé [101005]
--2018-01-03 16:46:56-- [url]http://www.accuweather.com/fr/fr/sarreguemines/135050/daily-weather-forecast/135050[/url]
Résolution de [url=http://www.accuweather.com]www.accuweather.com[/url] ([url=http://www.accuweather.com]www.accuweather.com[/url])… 23.38.6.92
Connexion à [url=http://www.accuweather.com]www.accuweather.com[/url] ([url=http://www.accuweather.com]www.accuweather.com[/url])|23.38.6.92|:80… connecté.
requête HTTP transmise, en attente de la réponse… 301 Moved Permanently
Emplacement : [url]https://www.accuweather.com/fr/fr/sarreguemines/135050/daily-weather-forecast/135050[/url] [suivant]
--2018-01-03 16:46:56-- [url]https://www.accuweather.com/fr/fr/sarreguemines/135050/daily-weather-forecast/135050[/url]
Connexion à [url=http://www.accuweather.com]www.accuweather.com[/url] ([url=http://www.accuweather.com]www.accuweather.com[/url])|23.38.6.92|:443… connecté.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : non indiqué [text/html]
Sauvegarde en : « /home/loutch/1_accuweather/first_days_raw »
[ <=> ] 101 261 --.-K/s ds 0,05s
2018-01-03 16:46:57 (2,06 MB/s) - « /home/loutch/1_accuweather/first_days_raw » sauvegardé [101261]
--2018-01-03 16:46:57-- [url]http://www.accuweather.com/fr/fr/sarreguemines/135050/daily-weather-forecast/135050?day=6[/url]
Résolution de [url=http://www.accuweather.com]www.accuweather.com[/url] ([url=http://www.accuweather.com]www.accuweather.com[/url])… 23.38.6.92
Connexion à [url=http://www.accuweather.com]www.accuweather.com[/url] ([url=http://www.accuweather.com]www.accuweather.com[/url])|23.38.6.92|:80… connecté.
requête HTTP transmise, en attente de la réponse… 301 Moved Permanently
Emplacement : [url]https://www.accuweather.com/fr/fr/sarreguemines/135050/daily-weather-forecast/135050?day=6[/url] [suivant]
--2018-01-03 16:46:57-- [url]https://www.accuweather.com/fr/fr/sarreguemines/135050/daily-weather-forecast/135050?day=6[/url]
Connexion à [url=http://www.accuweather.com]www.accuweather.com[/url] ([url=http://www.accuweather.com]www.accuweather.com[/url])|23.38.6.92|:443… connecté.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : non indiqué [text/html]
Sauvegarde en : « /home/loutch/1_accuweather/last_days_raw »
[ <=> ] 101 606 --.-K/s ds 0,05s
2018-01-03 16:46:57 (2,12 MB/s) - « /home/loutch/1_accuweather/last_days_raw » sauvegardé [101606]
Conky: unknown variable
Conky: unknown variable
Conky: unknown variable
Conky: unknown variable
Conky: unknown variable
Conky: unknown variable
Conky: unknown variable
Conky: unknown variable
Here the conkyrc
background yes
use_xft yes
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_argb_visual yes
own_window_type normal
own_window_hints undecorated,below,skip_taskbar,skip_pager
double_buffer yes
minimum_size 300 300
maximum_width 300
text_buffer_size 2048
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white#dbc38f
default_outline_color black
alignment middle_middle
gap_x 0
gap_y 200
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
imlib_cache_size 0
uppercase no
xftfont Poiret One:weight=Light:size=10
xftalpha 1.0
color0 white
color1 orange
color2 green
#${font Poiret One:weight=Light:size=12}
lua_load ~/.conky/cronograph/scripts/clock_rings.lua
lua_draw_hook_pre clock_rings
lua_load ~/.conky/cronograph/scripts/multi_rings.lua
lua_draw_hook_post main
TEXT
${execi 600 bash $HOME/1_accuweather/1_accuweather -f }
${voffset 15}${goto 80}Entrant ${goto 200}Sortant
${goto 75}${downspeed wlp2s0} ${goto 195}${upspeed wlp2s0}
${voffset -30}${goto 140}${fs_used_perc /}%
${voffset -1}${goto 132}Home
${voffset 16}${goto 50}Cpu : ${exec sensors | grep Physical | cut -c18-24} ${goto 130}Gpu : ${hwmon 1 temp 1} ° ${goto 190}Dd : ${execi 120 hddtemp -n /dev/sda} °
${voffset 10}${goto 74}CPU ${goto 203}MEM
${voffset 14}${goto 80}${cpu cpu0}%${goto 206}${memperc}%
${voffset -40}${goto 126}${font ConkyWeather:size=40}${execi 90 sed -n '23p' $HOME/1_accuweather/curr_cond}$font
${voffset -6}${goto 74}${execi 90 sed -n '2p' $HOME/1_accuweather/curr_cond} °C ${goto 190}${font Poiret One:weight=Light:size=9}${execi 90 sed -n '4p' $HOME/1_accuweather/curr_cond}
${voffset 2}${goto 70}${execi 3600 echo `date --date="1 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="1 day" | awk '{print $3}'`}\
${goto 134}${execi 3600 echo `date --date="2 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="2 day" | awk '{print $3}'`}\
${goto 200}${execi 3600 echo `date --date="3 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="3 day" | awk '{print $3}'`}\
${voffset -2}${font ConkyWeather:size=14}
${goto 70}${execi 90 sed -n '26p' $HOME/1_accuweather/first_days}\
${goto 136}${execi 90 sed -n '27p' $HOME/1_accuweather/first_days}\
${goto 200}${execi 90 sed -n '28p' $HOME/1_accuweather/first_days}${font Poiret One:weight=Light:size=8}
${goto 74}${execi 90 sed -n '9p' $HOME/1_accuweather/first_days}°/${execi 90 sed -n '8p' $HOME/1_accuweather/first_days}°\
${goto 136}${execi 90 sed -n '14p' $HOME/1_accuweather/first_days}°/${execi 90 sed -n '13p' $HOME/1_accuweather/first_days}°\
${goto 200}${execi 90 sed -n '19p' $HOME/1_accuweather/first_days}°/${execi 90 sed -n '18p' $HOME/1_accuweather/first_days}°\
${execpi 1 cat $HOME/.conky/cronograph/scripts/blinkingLED}
any idea who is the mistake
Last edited by Head_on_a_Stick (2018-01-03 19:29:38)
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline
^ Hi loutch,
can it be this one?
...
default_color white#dbc38f
...
Conky: unknown variable
..
Offline
@DrakarNoir,
I took the liberty of stealing your configuration. The main thing was the Conky-Version1.10, which is only displayed correctly in this distri.
Unfortunately I don't know anything about Lua-Scripts, so I don't know how to merge them. :8
on the desktop (without battery) and hddtemp is not yet working.
Thank you very much!
Offline