You are not logged in.

#1326 2020-03-25 16:57:42

unklar
Member
Registered: 2015-10-31
Posts: 1,263

Re: Show us your conky

^Both 1.9 and 1.10
But let's stay with 1.9  big_smile

With off and on commenting it changes its position, but it does not rotate
By the way, I found out that I still have a version of the lua script. It has only 7.9KiB content.

rotate_clock.lua

--[[
Conky Widgets by olgmen (2010)

Скрипт позволяет выводить в окно CONKY часы

для запуска необходимо ввести до TEXT сдедующие строки

#--- LUA ---
lua_load ~/scripts/rotate_clock.lua
lua_draw_hook_pre widgets

при условии, что скрипт rotate_clock.lua сохранен в папке ~/scripts
]]

require 'cairo'

--[[ CLOCK WIDGET ]]

function clock(cr, x, y, s, bgc, bga, fgc, fga)

-- функция перекодировки цвета

	function rgb_to_r_g_b(colour,alpha)
		return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
	end
		-- назначаем толщину выводимых линий

		local s_th = 2

		-- перехватываем данные часы, минуты, секунды

		local hours=os.date("%I")
		local mins=os.date("%M")
		local secs=os.date("%S")
	
		-- назначаем максимальные значения

		secs_arc=(2*math.pi/60)*secs
		mins_arc=(2*math.pi/60)*mins
		hours_arc=(2*math.pi/12)*hours+mins_arc/12

		-- рисуем циферблат

		local radius = s/2	
		local m_x,m_y = x + s/2, y + s/2
		cairo_set_line_width(cr,6)

		-- поворот циферблата

		cairo_rotate (cr, 30*math.pi/180)

		-- элипс первая цифра - ширина, вторая - высота

		cairo_scale (cr, 0.6, 1)

		-- рисуем циферблат

		cairo_arc(cr, m_x,m_y, radius, 0, math.rad(360))
		cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
		cairo_fill_preserve(cr)
		cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
		cairo_stroke(cr)

		-- прозрачный "корпус часов"
	
		cairo_arc(cr, m_x, m_y, radius*1.25, 0, 2*math.pi)
		cairo_set_source_rgba(cr, 0.5, 0.5, 0.5, 0.8)
		cairo_set_line_width(cr,1)
		cairo_stroke(cr)
	
		local border_pat=cairo_pattern_create_linear(m_x, m_y - radius*1.25, m_x, m_y + radius*1.25)
	
		cairo_pattern_add_color_stop_rgba(border_pat,0,0,0,0,0.7)
		cairo_pattern_add_color_stop_rgba(border_pat,0.3,1,1,1,0)
		cairo_pattern_add_color_stop_rgba(border_pat,0.5,1,1,1,0)
		cairo_pattern_add_color_stop_rgba(border_pat,0.7,1,1,1,0)
		cairo_pattern_add_color_stop_rgba(border_pat,1,0,0,0,0.7)
		cairo_set_source(cr,border_pat)
		cairo_arc(cr, m_x, m_y, radius*1.125, 0, 2*math.pi)
		cairo_close_path(cr)
		cairo_set_line_width(cr, radius*0.25)
		cairo_stroke(cr)

		-- вывод часовых делений

		local i = 0
		local winkel = math.rad(30)		
		
		for i=0,11,1 do
		cairo_set_line_width(cr,s_th*1.5)
		cairo_move_to(cr, m_x-math.sin(winkel*i)*(radius*1.5), m_y-math.cos(winkel*i)*(radius*1.5))
		cairo_line_to(cr, m_x-math.sin(winkel*i)*(radius*0.9), m_y-math.cos(winkel*i)*(radius*0.9))
		cairo_fill_preserve(cr)
		cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
		cairo_stroke(cr)
		end

		-- вывод минутных делений

		local i = 0
		local winkel = math.rad(6)

		for i=0,59,1 do
		cairo_set_line_width(cr,1)
		cairo_move_to(cr, m_x-math.sin(winkel*i)*radius, m_y-math.cos(winkel*i)*radius)
		cairo_line_to(cr, m_x-math.sin(winkel*i)*(radius*0.9), m_y-math.cos(winkel*i)*(radius*0.9))
		cairo_stroke(cr)
		end

		-- рисуем деления 3, 6, 9 и 12 часовые

		cairo_set_line_width(cr,s_th/2)			-- устанавливаем толщину линий
		cairo_move_to (cr, x + 0.15*s, y + 0.5*s)
		cairo_line_to (cr, x + 0.45*s, y + 0.5*s)
		cairo_move_to (cr, x + 0.55*s, y + 0.5*s)
		cairo_line_to (cr, x + 0.85*s, y + 0.5*s)
		cairo_move_to (cr, x + 0.5*s, y + 0.15*s)
		cairo_line_to (cr, x + 0.5*s, y + 0.45*s)
		cairo_move_to (cr, x + 0.5*s, y + 0.55*s)
		cairo_line_to (cr, x + 0.5*s, y + 0.85*s)
		cairo_stroke(cr)


		-- ОКНО ВЫВОДА ДАТЫ

		-- задаем размер окна

		local wo = s/5
		local ho = s/12
		local ro = (wo+ho)/2*0.04
		local xo = x+0.2*s
		local yo = y+0.45*s
		-- рисуем окно
		cairo_move_to(cr, xo + ro, yo)
		cairo_line_to(cr, xo + wo - ro, yo)
		cairo_arc(cr, xo + wo - ro, yo + ro, ro, -math.pi/2,0)
		cairo_line_to(cr, xo + wo, yo + ho - ro)
		cairo_arc(cr, xo + wo - ro, yo + ho - ro, ro, 0, math.pi/2)
		cairo_line_to(cr, xo + ro, yo + ho)
		cairo_arc(cr, xo + ro, yo + ho - ro, ro, math.pi/2, math.pi)
		cairo_line_to(cr, xo, yo + ro)
		cairo_arc(cr, xo + ro, yo + ro, ro, math.pi, math.pi*1.5)
		-- закрашиваем в черный цвет
		cairo_set_source_rgba(cr, 0,0,0,0.1)
		cairo_fill(cr)
		-- выводим в окно дату
		local value = conky_parse("${time %b}")
		cairo_set_font_size(cr, (ho - 2 * ro)*(15/11))
		cairo_move_to(cr, xo + ro, yo + ho - ro)
		-- задаем белый цвет цифрам даты
		cairo_set_source_rgba(cr, 1, 1, 1, 1)
		cairo_show_text(cr, value)

		-- задаем размер окна

		local wo = s/6
		local ho = s/12
		local ro = (wo+ho)/2*0.04
		local xo = x+0.62*s
		local yo = y+0.45*s
		-- рисуем окно
		cairo_move_to(cr, xo + ro, yo)
		cairo_line_to(cr, xo + wo - ro, yo)
		cairo_arc(cr, xo + wo - ro, yo + ro, ro, -math.pi/2,0)
		cairo_line_to(cr, xo + wo, yo + ho - ro)
		cairo_arc(cr, xo + wo - ro, yo + ho - ro, ro, 0, math.pi/2)
		cairo_line_to(cr, xo + ro, yo + ho)
		cairo_arc(cr, xo + ro, yo + ho - ro, ro, math.pi/2, math.pi)
		cairo_line_to(cr, xo, yo + ro)
		cairo_arc(cr, xo + ro, yo + ro, ro, math.pi, math.pi*1.5)
		-- закрашиваем в черный цвет
		cairo_set_source_rgba(cr, 0,0,0,0)
		cairo_fill(cr)

		-- выводим в окно дату
		local value = conky_parse("${time %d}")
		cairo_set_font_size(cr, (ho - 2 * ro)*(15/11))
		cairo_move_to(cr, xo + ro, yo + ho - ro)
		-- задаем белый цвет цифрам даты
		cairo_set_source_rgba(cr, 1, 1, 1, 1)
		cairo_show_text(cr, value)

		local clock_r = s/2
		local xc = x + s/2
		local yc = y + s/2
	
		-- вывод часовой стрелки

		xh=xc+0.55*clock_r*math.sin(hours_arc)
		yh=yc-0.55*clock_r*math.cos(hours_arc)
		cairo_move_to(cr,xc,yc)
		cairo_line_to(cr,xh,yh)
		cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
		cairo_set_line_width(cr,6)
		cairo_set_source_rgba(cr, 0, 0, 1, 1)
		cairo_stroke(cr)

		-- вывод минутной стрелки
	
		xm=xc+0.7*clock_r*math.sin(mins_arc)
		ym=yc-0.7*clock_r*math.cos(mins_arc)
		cairo_move_to(cr,xc,yc)
		cairo_line_to(cr,xm,ym)
		cairo_set_line_width(cr,4)
		cairo_stroke(cr)

		-- вывод секундной стрелки
	
		xs=xc+0.75*clock_r*math.sin(secs_arc)
		ys=yc-0.75*clock_r*math.cos(secs_arc)
		cairo_move_to(cr,xc,yc)
		cairo_line_to(cr,xs,ys)
		cairo_set_line_width(cr,2)
		cairo_set_source_rgba(cr, 1, 0, 0, 1)
		cairo_stroke(cr)
		-- рисуем ось стрелок
		cairo_arc (cr, xc, yc, s*0.02, 0, 2*math.pi)
		cairo_fill (cr)

		-- глянец

		local h1 = s/2.5
		cairo_move_to(cr, x + radius, y)
		cairo_line_to(cr, x + s - radius, y)
		cairo_arc(cr, x + s - radius, y + radius, radius, -math.pi/2, 0)
		cairo_line_to(cr, x + s, y + h1)
		cairo_curve_to(cr, x + 3 * s/4, y + 1.3 * h1, x + s/4, y + 1.3 * h1, x, y + h1)
		cairo_line_to(cr, x, y + radius)
		cairo_arc(cr, x + radius, y + radius, radius, math.pi, math.pi * 1.5)
		cairo_set_source_rgba(cr, 1, 1, 1, 0.2)
		cairo_fill(cr)

end
--[[ END CLOCK ]]

--------------------------------
function conky_widgets()
	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)

---------------------------------
	
--[[ CLOCK ]]

	cr = cairo_create(cs)
	clock(cr, 500, -50, 200, 0x151515, 0.2, 0x606070, 0.9)
 
--          опции: x,  y,   s, bgc, bga, fgc, fga
--		"x" координаты по горизонтали центра часов
--		"y" координаты по вертикали центра часов
--		"s" диаметр часов
--		"bgc" цвет фона
--		"bga" яркость фона
--		"fgc" цвет графики
--		"fga" яркость графики

	cairo_destroy(cr)

end 

Offline

#1327 2020-03-26 15:34:11

ceeslans
Member
Registered: 2015-09-30
Posts: 93

Re: Show us your conky

Sidebar conky of 130 px width.
I know such concept is not particularly new, but it's the first conky I built myself from scratch...

Hu6YFVzm.png

Offline

#1328 2020-03-26 19:29:13

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 1,285

Re: Show us your conky

ceeslans wrote:

Sidebar conky of 130 px width.
I know such concept is not particularly new, but it's the first conky I built myself from scratch...

https://i.imgur.com/Hu6YFVzm.png

Looks really good. What's the icon or font you're using for the images?

Please post the conkyrc.


You must unlearn what you have learned.
    -- yoda

Online

#1329 2020-03-26 20:00:28

ceeslans
Member
Registered: 2015-09-30
Posts: 93

Re: Show us your conky

packrat wrote:

Looks really good. What's the icon or font you're using for the images?
Please post the conkyrc.

the vector font is 'poky' - here is a link that @unklar provided lately Poky

SidebarDiagnostics-conky.conf

--------------------------
-- Sidebar Diagnostics ---
-- @ceeslans 2020-03-26 --
--------------------------

conky.config = {

	update_interval = 1,
	total_run_times = 0,
	cpu_avg_samples = 2,
	double_buffer = true,
	no_buffers = true,
	pad_percents = 2,
	short_units = false,
	top_name_width = 7,
	use_spacer = 'right',

	background = true,
	own_window = true,
	own_window_type = 'normal',
	own_window_colour = '000000',
		-- own_window_transparent = true,
	own_window_argb_visual = true,
	own_window_argb_value = 96,
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
	own_window_class = 'Conky',
	own_window_title = 'ConkySidebarDiagnostics',

	draw_outline = false,
	draw_shades = false,
	default_shade_color = '000000',
	stippled_borders = 0,
	draw_borders = false,
	border_width = 1,
	draw_graph_borders = false,
	border_inner_margin = 0,

	use_xft = true,
	xftalpha = 1,
	font = 'Dejavu Sans Condensed:size=8',
	override_utf8_locale = true,
	uppercase = false,

	minimum_width = 130,
		-- maximum_width = 200,
	minimum_height = 1080,
	gap_x = 0,
	gap_y = 0,
	alignment = 'top_left',

	default_color = '303030',

	color1 = 'FFFFFF',	-- #white
	color2 = 'AAAAAA',	-- #light grey
	color3 = '00FFFF',	-- #cyan
	color4 = 'FFFF00',	-- #yellow
	color5 = '00FF00',	-- #lime green
	color6 = 'F62817',	-- #fire engine red
	color7 = '3CCDFF',	-- #blue

};

conky.text = [[
### TIME/DATE
${color2}\
${voffset 45}${goto 15}${font Poky:size=24}d ${voffset -10}\
${alignr 15}${font Dejavu Sans Condensed:size=10:weight=bold}TIME${voffset 15}
${alignr 15}${font Dejavu Sans:size=9:weight=bold}${time %H:%M:%S}
${alignr 15}${font}${time %B %d %Y}
### CPU
${voffset 15}${goto 15}${font Poky:size=24}a ${voffset -10}\
${alignr 15}${font Dejavu Sans Condensed:size=9:weight=bold}CPU${font}${voffset 15}
${alignr 15}${font Dejavu Sans Condensed:size=9}${exec cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq | cut -c 19-27}
${voffset 5}${font}\
${goto 15}Clock ${alignr 15}${freq}MHz
${goto 15}Temp ${alignr 15}${hwmon 0 temp 1}°C
${goto 15}Load ${alignr 15}${cpu cpu0}%
${goto 15}Core0 ${alignr 15}${cpu cpu1}%
${goto 15}Core1 ${alignr 15}${cpu cpu2}%
${goto 15}Core2 ${alignr 15}${cpu cpu3}%
${goto 15}Core3 ${alignr 15}${cpu cpu4}%
### TOP CPU
${voffset 10}${font}\
${goto 25}${top name 1}${alignr 15}${top cpu 1} %
${goto 25}${top name 2}${alignr 15}${top cpu 2} %
${goto 25}${top name 3}${alignr 15}${top cpu 3} %
### MEM
${voffset 15}${goto 15}${font Poky:size=24}M ${voffset -10}\
${alignr 15}${font Dejavu Sans Condensed:size=10:weight=bold}RAM${font}${voffset 15}
${goto 15}Load ${alignr 15}${memperc} %
${goto 15}Used	${alignr 12}${mem}
${goto 15}Size ${alignr 15}${memmax}
${goto 15}Free ${alignr 15}${memfree}
### TOP  MEM
${voffset 10}${font}\
${goto 25}${top_mem name 1} ${alignr 15}${top_mem mem 1} %
${goto 25}${top_mem name 2} ${alignr 15}${top_mem mem 2} %
${goto 25}${top_mem name 3} ${alignr 15}${top_mem mem 3} %
### NET
${voffset 15}${goto 15}${font Poky:size=24}Y ${voffset -10}\
${alignr 15}${font Dejavu Sans Condensed:size=10:weight=bold}NET${font}${voffset 15}
${goto 15}IP ${alignr 15}${addr wlp2s0}
${goto 15}Signal ${alignr 15}${wireless_link_qual_perc wlp2s0}%
${goto 15}In ${alignr 12}${totaldown wlp2s0}
${goto 15}Out ${alignr 15}${totalup wlp2s0}
### DISK
${voffset 15}${goto 15}${font Poky:size=24}y ${voffset -10}\
${alignr 15}${font Dejavu Sans Condensed:size=10:weight=bold}DISK${font}${voffset 15}
${goto 15}Root ${alignr 15}${fs_bar 7,67 /}
${goto 50}Load ${alignr 15}${fs_used_perc /} %
${voffset 5}\
${goto 15}Home ${alignr 15}${fs_bar 7,67 /home}
${goto 50}Load ${alignr 15}${fs_used_perc /home} %
${voffset 5}\
${goto 15}Swap ${alignr 15}${swapbar 7,67 /}
${goto 50}Load ${alignr 15}${swapperc /} %
${if_mounted /mnt/DATA}${voffset 5}\
${goto 15}Data ${alignr 15}${fs_bar 7,67 /mnt/DATA}
${goto 50}Load ${alignr 15}${fs_used_perc /mnt/DATA}%${endif}
### SYSTEM
${voffset 15}${goto 15}${font Poky:size=24}x ${voffset -8}\
${alignr 15}${font Dejavu Sans Condensed:size=10:weight=bold}SYS${font}${voffset 18}
${font Dejavu Sans Condensed:size=8:weight=bold}\
#${alignr 12}${execi 86400 cat `ls -atr /etc/*-release | tail -1` | grep "PRETTY_NAME" | cut -d= -f2}
${alignr 15}${execi 86400 lsb_release -si} ${execi 86400 lsb_release -sc}
${alignr 15}${font}${kernel}
${alignr 15}${sysname} ${machine}
${voffset 10}\
${goto 15}Session ${alignr 15}${execi 86400 inxi -S|awk '{print $8,$9}'} ${voffset -13}
${goto 15}Uptime ${alignr 15}${uptime}
${goto 15}User ${alignr 15}${execi 86400 whoami} @ ${nodename}
### BATTERY
${voffset 15}${goto 15}${font Poky:size=24}R ${voffset -13}\
${alignr 15}${font Dejavu Sans Condensed:size=10:weight=bold}BAT${font}${voffset 10}
${goto 15}${battery_percent BAT0} %${alignr 15}${alignr 15}${battery_bar 7,67 BAT0}
${alignr 15}${battery BAT0}
${voffset 10}\
]];

Last edited by ceeslans (2020-03-27 05:22:02)

Offline

#1330 2020-03-26 21:08:55

rbh
Member
From: Sweden/Vasterbotten/Rusfors
Registered: 2016-08-11
Posts: 694

Re: Show us your conky

ceeslans wrote:

SidebarDiagnostics-conky.conf

Thanks a lot! A good projet for some rainy day...


// Regards rbh

Offline

#1331 2020-03-27 00:26:01

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,438

Re: Show us your conky

ceeslans wrote:

Sidebar conky of 130 px width.
I know such concept is not particularly new, but it's the first conky I built myself from scratch...

https://i.imgur.com/Hu6YFVzm.png

ARCHIVE that and keep it.  That's one nice first conky.

Mine was YUK!!!!
I must have an image here somepalce  big_smile
Dec 2007. Conky v1.4 I think.


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#1332 2020-03-27 13:29:21

unklar
Member
Registered: 2015-10-31
Posts: 1,263

Re: Show us your conky

@ceeslans,
wow, I'm impressed! A very good job! Congratulations!  cool
Welcome to the crazy people's club. big_smile

Offline

#1333 2020-03-27 13:32:03

unklar
Member
Registered: 2015-10-31
Posts: 1,263

Re: Show us your conky

@Sector11,
in the past two days I was of the opinion to find the mistake in the rotation of the clock. wink  Therefore I followed all known traces of @Olgmen in the net. Unfortunately without success. I can't even find his video, where he presents the clock. sad  What a pity, but we are not "lua_risten", but users.

Therefore I found this watch of him, which I didn't know before. It works similar to the "MechClock" from @easysid.

clock.png

Last edited by unklar (2020-03-27 13:36:01)

Offline

#1334 2020-03-27 13:57:39

unklar
Member
Registered: 2015-10-31
Posts: 1,263

Re: Show us your conky

conkyrc

# main conkyrc by Boris Krinkel <olgmen>
# krinkel@rambler.ru
# --- параметры окна ---
# эти строки необходимы для нормальной работы лучше не изменять
own_window		yes 
own_window_class	Conky 
own_window_transparent	yes 
own_window_type		normal #override 
own_window_hints	undecorated,below,skip_taskbar,skip_pager  #sticky,
#own_window_title with lua
# следующие параметры можно изменять
# минимальный размер
minimum_size 250 0 
# минимальная ширина
maximum_width 450 
# --- расположение окна
# левый верхний угол экрана 
#alignment top_left 
# левый нижний угол экрана
#alignment bottom_left 
# правый верхний угол экрана
alignment top_right 
# правый нижний угол экрана
#alignment bottom_right 
# расстояние между кромкой экрана и окном
# по горизонтали
gap_x 5 
# по вертикали
gap_y 30 

# --- графика окна --- 
# если желаете выводить conky на другом фоне напишите yes
background no 
# окантовка окна, бордюр
draw_borders no
# если бордюр yes
# длина штрихов бордюра, если 0, то бордюр выводится сплошной линией
stippled_borders 1
# толщина линий бордюра 
border_width 1
# бордюр вокруг выводимых графиков
draw_graph_borders no
# включить тень?
draw_shades no
# окантовка вокруг текста и выводимых объектов
draw_outline no 
# Добавить пробел?  Только для встраиваемых объектов 
use_spacer right 

# --- цвет ---
# основной цвет по умолчанию 
default_color DeepSkyBlue
# цвет тени
default_shade_color black 
# цвет окантовки
default_outline_color black
# дополнительные
color1 white
color2 yellow 
color3 red 

# --- шрифты ---
# используемые шрифты X когда Xft не используется, можно выбрать один из следующих 
#font 5x7 
#font 6x10 
#font 7x13 
#font 8x13 
#font 9x15 
#font *mintsmild.se* 
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-* 

# Используется ли Xft? 
use_xft yes 

# Шриф Xft когда Xft доступен, здесь можно ввести название и размер любого шрифта 
xftfont Archangelsk:size=9 

# яркость шрифта при испоьзовании шрифтов Xft 
xftalpha 1 
# выводить весь текст прописными буквами 
uppercase no 
# использовать кодировку UTF8? ПРИМЕЧАНИЕ: требуется Xft 
override_utf8_locale yes 

# --- следующие данные необходимы для работы
# обновление в секундах не имеет смысла ставить больше 2
# при выводе времени в секундах необходимо значение 1 и менее
update_interval 0.5 
# время работы программы до её выключения
# установите 0 для работы программы без остановки
total_run_times 0
# двойная буфферизация (требуется для flicker, может не работать) 
double_buffer yes 
# вычитать буферизацию файловой системы из используемой памяти? 
no_buffers yes 
# количество cpu
cpu_avg_samples 2
# number of net samples to average 
net_avg_samples 2 
imlib_cache_size 0 
short_units yes 
pad_percents 2 
text_buffer_size 2048 
imlib_cache_size 0 
#--- LUA ---#
lua_load ~/scripts/olgmen5.lua	#calendar3_1.lua
lua_draw_hook_pre widgets

TEXT
${voffset 300}

olgmen5.lua

--[[
Conky Widgets by olgmen (2010)

Скрипт позволяет выводить в окно CONKY часы с часовым механизмом

для запуска необходимо ввести до TEXT сдедующие строки

#--- LUA ---
lua_load ~/scripts/olgmen5.lua
lua_draw_hook_pre widgets

при условии, что скрипт olgmen5.lua сохранен в папке ~/scripts
]]

require 'cairo'

--[[ CLOCK WIDGET ]]

function clock(cr, x, y, s, bgc, bga, fgc, fga)

-- функция перекодировки цвета

	function rgb_to_r_g_b(colour,alpha)
		return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
	end
		-- назначаем толщину выводимых линий

		local s_th = 2

		-- перехватываем данные часы, минуты, секунды

		local hours=os.date("%I")
		local mins=os.date("%M")
		local secs=os.date("%S")
	
		-- назначаем максимальные значения

		secs_arc=(2*math.pi/60)*secs
		mins_arc=(2*math.pi/60)*mins
		hours_arc=(2*math.pi/12)*hours+mins_arc/12


		-- рисуем циферблат

		local radius = s/2	
		local m_x,m_y = x + s/2, y + s/2


-- рисуем черный фон основы часов

-- задаем границы внешней окружности
		cairo_arc(cr, m_x,m_y, radius, 0, math.rad(360))
-- задаем цвет
		cairo_set_source_rgba(cr, 0, 0, 0, 1)
-- окрашиваем
		cairo_fill_preserve(cr)
-- завершаем действие
		cairo_stroke(cr)
-- ----------------------------------------------------------------		
-- рисуем верхнюю шестерню

		local i = 0
-- зубцы шестерни располагаем через 15 градусов
		local winkel = math.rad(15)	
-- рисуем обод шестерни
		cairo_arc(cr, m_x,m_y-s*0.275, radius*0.26, 0, math.rad(360))
-- задаем ширину обода
		cairo_set_line_width(cr,s_th*4)
-- задаем цвет
		cairo_set_source_rgba(cr, 1, 0.75, 0, 1)
-- выводим рисунок
		cairo_stroke(cr)	
-- рисуем пустые места между зубцами шестерни, что бы показать сцепление зубцов
-- будем выводить 24 зубца		
		for i=0,23,1 do
-- задаем ширину
		cairo_set_line_width(cr,5)
-- задаем начальные точки
		cairo_move_to(cr, m_x-math.cos(secs+winkel*i)*(radius*0.25), m_y-s*0.275-math.sin(secs+winkel*i)*(radius*0.25))
-- задаем конечные точки
		cairo_line_to(cr, m_x-math.cos(secs+winkel*i)*(radius*0.3), m_y-s*0.275-math.sin(secs+winkel*i)*(radius*0.3))
-- задаем цвет
		cairo_set_source_rgba(cr, 0, 0, 0, 1)
-- выводим рисунок
		cairo_stroke(cr)
		end
-- рисуем спицы шестерни
		local i = 0
-- спицы располагаем через 60 градусов
		local winkel = math.rad(60)		
-- будем выводить 6 спиц
		for i=0,5,1 do
		cairo_set_line_width(cr,s_th*1.5)
		cairo_move_to(cr, m_x-math.cos(secs+winkel*i)*(radius*0.25), m_y-s*0.275-math.sin(secs+winkel*i)*(radius*0.25))
		cairo_line_to(cr, m_x-math.cos(secs+winkel*i), m_y-s*0.275-math.sin(secs+winkel*i))
		cairo_set_source_rgba(cr, 1, 0.75, 0, 1)
		cairo_stroke(cr)
		end
-- --------------------------------------------------
-- рисуем левую шестерню

		local i = 0
		local winkel = math.rad(15)	

		cairo_arc(cr, m_x-s*0.2,m_y+s*0.1, radius*0.3, 0, math.rad(360))
		cairo_set_line_width(cr,s_th*4)
		cairo_set_source_rgba(cr, 1, 0.75, 0, 1)
		cairo_stroke(cr)	
		
		for i=0,23,1 do
		cairo_set_line_width(cr,5)
		cairo_move_to(cr, m_x-s*0.2-math.cos(secs+winkel*i)*(radius*0.29), m_y+s*0.1-math.sin(secs+winkel*i)*(radius*0.29))
		cairo_line_to(cr, m_x-s*0.2-math.cos(secs+winkel*i)*(radius*0.34), m_y+s*0.1-math.sin(secs+winkel*i)*(radius*0.34))

		cairo_set_source_rgba(cr, 0, 0, 0, 1)
		cairo_stroke(cr)
		end
		
		local i = 0
		local winkel = math.rad(60)		
		
		for i=0,5,1 do
		cairo_set_line_width(cr,s_th*1.5)
		cairo_move_to(cr, m_x-s*0.2-math.cos(secs+winkel*i)*(radius*0.29), m_y+s*0.1-math.sin(secs+winkel*i)*(radius*0.29))
		cairo_line_to(cr, m_x-s*0.2-math.cos(secs+winkel*i), m_y+s*0.1-math.sin(secs+winkel*i))
		cairo_set_source_rgba(cr, 1, 0.75, 0, 1)
		cairo_stroke(cr)
		end
-- -----------------------------------------------------
-- рисуем центральную шестерню

		local i = 0
		local winkel = math.rad(15)
-- рисуем обод
		cairo_arc(cr, m_x,m_y, radius*0.24, 0, math.rad(360))
		cairo_set_line_width(cr,s_th*2)
		cairo_set_source_rgba(cr, 1, 0.75, 0, 1)
		cairo_stroke(cr)		
		
		for i=0,23,1 do
		cairo_set_line_width(cr,s_th)
		cairo_move_to(cr, m_x-math.sin(secs+winkel*i)*(radius*0.25), m_y-math.cos(secs+winkel*i)*(radius*0.25))
		cairo_line_to(cr, m_x-math.sin(secs+winkel*i)*(radius*0.3), m_y-math.cos(secs+winkel*i)*(radius*0.3))

		cairo_set_source_rgba(cr, 1, 0.75, 0, 1)
		cairo_stroke(cr)
		end

		local i = 0
		local winkel = math.rad(60)		
		
		for i=0,5,1 do
		cairo_set_line_width(cr,s_th*1.5)
		cairo_move_to(cr, m_x-math.sin(secs+winkel*i)*(radius*0.25), m_y-math.cos(secs+winkel*i)*(radius*0.25))
-- рисуем спицы
cairo_line_to(cr, m_x-math.sin(secs+winkel*i), m_y-math.cos(secs+winkel*i))
		cairo_set_source_rgba(cr, 1, 0.75, 0, 1)
		cairo_stroke(cr)
		end

-- ---------------------------------------

		-- рисуем циферблат
-- задаем границы внешней окружности
		cairo_arc(cr, m_x,m_y, radius, 0, math.rad(360))
-- начинаем новое задание
		cairo_new_sub_path(cr)
-- задаем границы внутренней окружности
		cairo_arc(cr, m_x,m_y, radius*0.5, 0, math.rad(360))
-- даем задание окрасить пространство между окружностями
		cairo_set_fill_rule(cr, CAIRO_FILL_RULE_EVEN_ODD)
-- задаем цвет
		cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
-- окрашиваем
		cairo_fill_preserve(cr)
-- завершаем действие
		cairo_stroke(cr)

-- рисуем внешнюю окружность
		cairo_arc(cr, m_x,m_y, radius, 0, math.rad(360))
-- задаем толщину линии
		cairo_set_line_width(cr,6)
-- задаем цвет линии
		cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
-- рисуем
		cairo_stroke(cr)

		-- прозрачный "корпус часов"
	
		cairo_arc(cr, m_x, m_y, radius*1.15, 0, 2*math.pi)
		cairo_set_source_rgba(cr, 0.5, 0.5, 0.5, 0.8)
		cairo_set_line_width(cr,1)
		cairo_stroke(cr)
	
		local border_pat=cairo_pattern_create_linear(m_x, m_y - radius*1.15, m_x, m_y + radius*1.25)
	
		cairo_pattern_add_color_stop_rgba(border_pat,0,0,0,0,0.7)
		cairo_pattern_add_color_stop_rgba(border_pat,0.3,1,1,1,0)
		cairo_pattern_add_color_stop_rgba(border_pat,0.5,1,1,1,0)
		cairo_pattern_add_color_stop_rgba(border_pat,0.7,1,1,1,0)
		cairo_pattern_add_color_stop_rgba(border_pat,1,0,0,0,0.7)
		cairo_set_source(cr,border_pat)
		cairo_arc(cr, m_x, m_y, radius*1.1, 0, 2*math.pi)
		cairo_close_path(cr)
		cairo_set_line_width(cr, radius*0.15)
		cairo_stroke(cr)

		-- вывод часовых делений

		local i = 0
		local winkel = math.rad(30)		
		
		for i=0,11,1 do
		cairo_set_line_width(cr,s_th*1.5)
		cairo_move_to(cr, m_x-math.sin(winkel*i)*radius, m_y-math.cos(winkel*i)*radius)
		cairo_line_to(cr, m_x-math.sin(winkel*i)*(radius*0.9), m_y-math.cos(winkel*i)*(radius*0.9))
		cairo_fill_preserve(cr)
		cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
		cairo_stroke(cr)
		end

		-- вывод минутных делений

		local i = 0
		local winkel = math.rad(6)

		for i=0,59,1 do
		cairo_set_line_width(cr,1)
		cairo_move_to(cr, m_x-math.sin(winkel*i)*radius, m_y-math.cos(winkel*i)*radius)
		cairo_line_to(cr, m_x-math.sin(winkel*i)*(radius*0.9), m_y-math.cos(winkel*i)*(radius*0.9))
		cairo_stroke(cr)
		end

-- часовые стрелки с тенью, взято из Shadowed clock by wlourf (10 jan. 2010)

		function draw_hand(a_trame,arc,arc0,arc1,lg,r,border,rgb)
		xx = xc + clock_r*math.sin(arc)*lg
		yy = yc - clock_r*math.cos(arc)*lg
		x0 = xc + r*math.sin(arc0)
		y0 = yc - r*math.cos(arc0)
		x1 = xc + r*math.sin(arc1)
		y1 = yc - r*math.cos(arc1)

		if border ~= nil then
		cairo_set_line_width(cr,1)
		cairo_set_source_rgba(cr,border[1],border[2],border[3],0.5)
		cairo_move_to (cr, x0, y0)
		cairo_curve_to (cr, x0, y0, xx, yy, x1, y1)
		cairo_arc(cr,xc,yc,r,arc1-math.pi/2,arc0-math.pi/2)
		cairo_stroke(cr)
		end

-- рисуем тень

		cairo_move_to (cr, x0, y0)
		cairo_curve_to (cr, x0, y0, xx+shadow_xoffset, yy+shadow_yoffset, x1, y1)
		cairo_arc(cr,xc,yc,r,arc1-math.pi/2,arc0-math.pi/2)
		pat = cairo_pattern_create_radial (xc, yc, 0, xc, yc, clock_r)
		cairo_pattern_add_color_stop_rgba (pat, 0, 0, 0, 0, shadow_opacity)
		cairo_pattern_add_color_stop_rgba (pat, 1, 0, 0, 0, 0)
		cairo_set_source (cr, pat)
		cairo_fill (cr)

-- рисуем стрелки

		cairo_move_to (cr, x0, y0)
		cairo_curve_to (cr, x0, y0, xx, yy, x1, y1)
		cairo_arc(cr,xc,yc,r,arc1-math.pi/2,arc0-math.pi/2)
		pat = cairo_pattern_create_radial (xc, yc, clock_r/10, xc, yc, clock_r*lg)
		cairo_pattern_add_color_stop_rgba (pat,0, rgb[1], rgb[2], rgb[3], 1)
		cairo_pattern_add_color_stop_rgba (pat, 1, 0, 0, 0, 1)
		cairo_set_source (cr, pat)
		cairo_fill (cr)
		cairo_pattern_destroy (pat)
		end

-- Здесь вводятся основные данные

-- радиус часов в пикселях, задаем половину диаметра часов

		clock_r=s/2

-- координаты центра часов

		xc = x+s/2
		yc = y+s/2

-- координаты источника света относительно центра часов, 0 - источник света над центром
-- может быть положительным, источник света выше центра, или отрицательным

		shadow_xoffset=70
		shadow_yoffset=70

-- прозрачность тени, значения от 0 до 1

		shadow_opacity=0.5

-- Выводить секундную стрелку, Да - true, Нет - false.
-- При выводе секундной стрелки update_interval в .conkyrc должен быть менее 1 сек.

		show_seconds=false

-- Выводить ось стрелок в центре часов, Да - true, Нет - false.

		show_dot = true

-- размеры стрелок, первая цифра ширина, вторая - длина

		rh,lgh=3,1.2	-- часовая стрелка
		rm,lgm=2,1.75	-- минутная стрелка
		rs,lgs=1,1.9	-- секундная стрелка

-- забираем данные из ОС

--		local hours=os.date("%I")
--		local mins=os.date("%M")
--		local secs=os.date("%S")

-- расчет угла движения стрелок

		gamma = math.pi/2-math.atan(rs/(clock_r*lgs))
		secs_arc=(2*math.pi/60)*secs
		secs_arc0=secs_arc-gamma
		secs_arc1=secs_arc+gamma

		gamma = math.pi/2-math.atan(rm/(clock_r*lgm))
		mins_arc=(2*math.pi/60)*mins + secs_arc/60
		mins_arc0=mins_arc-gamma
		mins_arc1=mins_arc+gamma

		gamma = math.pi/2-math.atan(rh/(clock_r*lgh))
		hours_arc=(2*math.pi/12)*hours+mins_arc/12
		hours_arc0=hours_arc-gamma
		hours_arc1=hours_arc+gamma

-- вывод стрелок

		draw_hand(alpha_trame,hours_arc,hours_arc0,hours_arc1,lgh,rh,{0,0,0},{1,1,1})
		draw_hand(alpha_trame,mins_arc,mins_arc0,mins_arc1,lgm,rm,{0,0,0},{.9,.9,.9})
		if show_seconds then
		draw_hand(alpha_trame,secs_arc,secs_arc0,secs_arc1,lgs,rs,{0,0,0},{.8,.8,.8})
		end

-- рисуем ось стрелок

		if show_dot then

		lg_shadow_center=3
		radius=math.min(rh,rm,rs)*0.75
		if radius<1 then radius=1 end
		ang = math.atan(shadow_yoffset/shadow_xoffset)

-- тень от оси		cairo_pattern_add_color_stop_rgba(border_pat,0,0,0,0,0.7)
		cairo_pattern_add_color_stop_rgba(border_pat,0.3,0.5,1,1,0)
		cairo_pattern_add_color_stop_rgba(border_pat,0.5,0.5,1,1,0)
		cairo_pattern_add_color_stop_rgba(border_pat,0.7,0.5,1,1,0)
		cairo_pattern_add_color_stop_rgba(border_pat,1,0,0,0,0.7)
		cairo_set_source(cr,border_pat)
		cairo_arc(cr, m_x, m_y, radius*1.125, 0, 2*math.pi)
		cairo_close_path(cr)
		cairo_set_line_width(cr, radius*0.25)
		cairo_stroke(cr)

		gamma = -math.atan(1/lg_shadow_center)
		ang0=ang-gamma
		ang1=ang+gamma

		end

end
--[[ END CLOCK ]]
--------------------------------
function conky_widgets()
	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)

---------------------------------
	
--[[ CLOCK ]]

	cr = cairo_create(cs)
	clock(cr, 25, 50, 200, 0xffffff, 0.9, 0x000000, 1)
 
--          опции: x,  y,   s, bgc, bga, fgc, fga
--		"x" координаты по горизонтали центра часов
--		"y" координаты по вертикали центра часов
--		"s" диаметр часов
--		"bgc" цвет фона
--		"bga" яркость фона
--		"fgc" цвет графики
--		"fga" яркость графики

	cairo_destroy(cr)

end

for BL with monofur
monofurBold9.th.png

with Fira Mono it looks clearer  big_smile
2020-03-27-12-40-07_scrot.th.png FiraMonoBold8.th.png

conky

-- pkill -xf "conky -c /home/unklar/.conky/rumit/rumit_conky10" &
-- @unklar 2020-04-01
conky.config = {

	background = true,
	update_interval = 1,

	cpu_avg_samples = 2,
	net_avg_samples = 2,
	temperature_unit = 'celsius',

	double_buffer = true,
	no_buffers = true,
	text_buffer_size = 2048,

	gap_x = 10,
	gap_y = 100,
	minimum_width = 240, minimum_height = 650,
	maximum_width = 240,
	own_window = true,
	own_window_type = 'normal',
	own_window_transparent = true,
	own_window_hints = 'undecorated,skip_taskbar,skip_pager,below',--sticky,
	border_inner_margin = 0,
	border_outer_margin = 0,
	alignment = 'bottom_right',--tl

	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,

	override_utf8_locale = true,
	use_xft = true,
	font = 'CaviarDreams:size=8',
	xftalpha = 0.5,
	uppercase = false,

	default_color = '#ffffff',

--- LUA ---
--	lua_load = '~/.conky/rumit/scripts/clock_rings.lua',
--	lua_draw_hook_pre = 'clock_rings',
--	lua_load = '~/.conky/rumit/scripts/lua/conky_white_big.lua',
--	lua_draw_hook_post = 'main',
	lua_load = '~/.conky/rumit/scripts/draw_bg.lua',
	lua_draw_hook_pre = 'draw_bg 15 0 0 0 0 0x000000 0.55',


};

conky.text = [[
${texeci 500 bash $HOME/Accuweather_conky_script/accuweather -f}\

${voffset -15}${goto 20}${color6}${font conkyweather:size=40}${texeci 600  sed -n '22p' $HOME/Accuweather_conky_script/curr_cond}${font monofur:size=25}${goto 150}${texeci 600 sed -n '2p' $HOME/Accuweather_conky_script/curr_cond}°
${voffset -13}${goto 16}${color5}${font monofur:size=9}CURRENTLY: ${color6}${alignc}${texeci 600  sed -n '4p' $HOME/Accuweather_conky_script/curr_cond} 
${goto 16}${color5}WIND: ${color6}${alignc}${texeci 600 sed -n '5p' $HOME/Accuweather_conky_script/curr_cond}  ${texeci 600 sed -n '6p' $HOME/Accuweather_conky_script/curr_cond}${goto 170}${voffset -10}${font ConkyWindNESW:size=30}${texeci 600 sed -n '27p' $HOME/Accuweather_conky_script/curr_cond}
${voffset -33}${goto 16}${color5}${font monofur:size=9}PRESSURE: ${color6}${alignc}${texeci 600 sed -n '8p' $HOME/Accuweather_conky_script/curr_cond}
${voffset 7}${goto 25}${texeci 600 sed -n '11p' $HOME/Accuweather_conky_script/daily_forecast}${goto 100}${texeci 600  sed -n '18p' $HOME/Accuweather_conky_script/daily_forecast}${goto 170}${texeci 600  sed -n '25p' $HOME/Accuweather_conky_script/daily_forecast}
${goto 30}${font conkyweather:size=20}${texeci 600  sed -n '107p' $HOME/Accuweather_conky_script/daily_forecast}${goto 100}${texeci 600  sed -n '108p' $HOME/Accuweather_conky_script/daily_forecast}${goto 170}${texeci 600  sed -n '109p' $HOME/Accuweather_conky_script/daily_forecast}
${voffset -15}${goto 45}${font monofur:size=9}${texeci 600  sed -n '12p' $HOME/Accuweather_conky_script/daily_forecast}${goto 120}${texeci 600  sed -n '19p' $HOME/Accuweather_conky_script/daily_forecast}${goto 190}${texeci 600  sed -n '26p' $HOME/Accuweather_conky_script/daily_forecast}
${goto 20}${color5}${font monofur:size=10}${texeci 600 sed -n '8p' $HOME/Accuweather_conky_script/daily_forecast|tr a-z A-Z|cut -c1-3}${goto 100}${color6}${texeci 600 sed -n '15p' $HOME/Accuweather_conky_script/daily_forecast|tr a-z A-Z|cut -c1-3}${goto 180}${texeci 600 sed -n '22p' $HOME/Accuweather_conky_script/daily_forecast|tr a-z A-Z|cut -c1-3}
  ${swapbar 0,210}
${font Fira Mono:bold:size=8}
${goto 16}Users logon:  ${alignr 15}${user_names}
${goto 16}Boot:  ${alignr 15}${execi 86400 who -b | cut -c23-}
${goto 16}Ram:  ${alignr 15}${mem} | ${memmax}
${goto 16}System:  ${alignr 15}${cpu cpu1} | ${cpu cpu2} | ${cpu cpu3} | ${cpu cpu4}
${goto 16}Radeon:  ${alignr 15}${hwmon 2 temp 1}° | HDD ${execi 600 /usr/sbin/hddtemp -n /dev/sdb}°
${goto 16}Load:  ${alignr 15}${loadavg}
${voffset -8}
${alignc} ${execi 86400 cat `ls -atr /etc/*-release | tail -1` | grep "PRETTY_NAME" | cut -d= -f2}
${alignc} ${kernel} ${machine}
${alignc} dist-update  ${texeci 600 aptitude search "~U" | wc -l | tail}
${voffset -8}
${alignc}speed  ↓  ${downspeedf enp2s0}
${alignc}speed  ↑  ${upspeedf enp2s0}${font monofur:size=9}${color}
${voffset -8}
${goto 10} Exchange rate:   ${alignr 15}£ ${execi 1200 curl gbp.rate.sx/1eur?TFq -s | cut -c1-7}  € ${execi 1200 curl eur.rate.sx/1gbp?TFq -s | cut -c1-7}

${alignc}${font monofur:size=10}S H O R T C U T    K E Y S
  ${swapbar 0,210}
${goto 16}Alt + F2${alignr 15}Run Dialog
${goto 16}Alt + F3${alignr 15}Alt Menu
${goto 16}Super${alignr 15}Main Menu
${goto 16}Super + Tab${alignr 15}Client Menu
${goto 16}Super + t${alignr 15}Terminal
${goto 16}Super + w${alignr 15}Web Browser
${goto 16}Super + f${alignr 15}File Manager
${goto 16}Super + e${alignr 15}Editor
${goto 16}Super + m${alignr 15}Media Player
${goto 16}Super + v${alignr 15}Volume Control
${goto 16}Super + h${alignr 15}Task Manager
${goto 16}Super + l${alignr 15}Lock Screen
${goto 16}Super + x${alignr 15}Logout
${goto 16}PrtSc${alignr 15}Screenshot${font}
]];

Offline

#1335 2020-03-27 20:15:16

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,438

Re: Show us your conky

unklar wrote:

@ceeslans,
wow, I'm impressed! A very good job! Congratulations!  cool
Welcome to the crazy people's club. big_smile

WHAT!!!!  "the crazy people's club" - I resemble that remark.

unklar wrote:

@Sector11,
in the past two days I was of the opinion to find the mistake in the rotation of the clock. wink  Therefore I followed all known traces of @Olgmen in the net. Unfortunately without success. I can't even find his video, where he presents the clock. sad  What a pity, but we are not "lua_risten", but users.

Therefore I found this watch of him, which I didn't know before. It works similar to the "MechClock" from @easysid.

https://scrot.cloud/images/2020/03/27/clock.png

I love what you did with it, I will grab both, but I will put my tweaked "MechClock" clock where you have his in a nice conky with weather.    And I will tweak it too.  big_smile

monofur is a great font but "fira mono" has something special  big_smile

Last edited by Sector11 (2020-03-27 20:16:14)


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#1336 2020-03-28 09:07:04

unklar
Member
Registered: 2015-10-31
Posts: 1,263

Re: Show us your conky

Sector11 wrote:

And I will tweak it too.  big_smile

I am curious...   smile

Offline

#1337 2020-03-28 16:54:28

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,438

Re: Show us your conky

unklar wrote:
Sector11 wrote:

And I will tweak it too.  big_smile

I am curious...   smile

it is coming still ... need more time.


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#1338 2020-03-28 17:05:50

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,438

Re: Show us your conky

@ unklar - et al

Do this:

Originally posted by Crinos512 a long long time ago in a conky thread far far away:

sudo chmod u+s /usr/sbin/hddtemp

^^^^ probably not necessary today I do not recall doing that for years.

↓↓↓↓↓ But this ↓↓↓↓↓
To reconfigure hddtemp

sudo dpkg-reconfigure hddtemp

Answers: No, 0, Yes, OK, OK

Now use the conky hddtemp: without -n or without execi

${hddtemp /dev/sda}°

In the conky above you have:

HDD ${execi 600 /usr/sbin/hddtemp -n /dev/sdb}°

could be:

HDD ${hddtemp /dev/sdb}°

Too easy.


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#1339 2020-03-28 17:16:28

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,438

Re: Show us your conky

OOPS!!!!  Did not look close enough, I thought the "clock" was a part of the conky.

more tweaking required.


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#1340 2020-03-28 17:58:32

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,438

Re: Show us your conky

Still minor tweaks coming - all one conky!
Like centre the clock ....
2020-03-28-145359-S11.jpg 2020-03-28-145517-S11.jpg
AND make the font bigger so I can read it  big_smile

That fancy outer ring with design rotates counter-clockwise on the second.

Time to wash floors.


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#1341 2020-03-28 18:27:32

unklar
Member
Registered: 2015-10-31
Posts: 1,263

Re: Show us your conky

Sector11 wrote:

@ unklar - et al

Do this:
...
...
...
Too easy.

smile  I know, my dear fellow.
I've just been lazy here because I wanted it to be quick.   lol

Besides, archlinux has been keeping me "on my toes" lately with hddtemp.
There is already /usr/sbin just a link to /usr/bin
with the intention of eliminating /usr/sbin altogether. I think Debian still intends to...

Your screenshots already look excellent. Although I like the integrated clock with the font monofur better.
On occasion I need the "thick frame" from you.   wink

But, otherwise it is with 1.9 "no art".  tongue
With 1.10 the call of two lua scripts from the conkyrc doesn't work anymore. Here a "detour" is necessary.
I was too lazy for that...(see above)   lol  lol

Offline

#1342 2020-03-28 19:02:56

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,438

Re: Show us your conky

↑↑↑↑↑↑  OH!  OK!  No harm no foul.

The outer ring image:

You should have that.  It will be in the directory where you have all the images for the easysid MechClock.

/media/5/Conky/easysid/MechClock/images/gear-9.png

If not I will send.

it is commented out in the LUA script:

--  run_gear({x=140, y=140, scale=1.00, file='gear-9.png', max=400, dir=-1}) --Outer Silver medallion

The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#1343 2020-03-28 19:11:34

unklar
Member
Registered: 2015-10-31
Posts: 1,263

Re: Show us your conky

Ah, yes. I found the "frame".
Thanks for your memory.   big_smile

Offline

#1344 2020-04-23 20:42:04

ceeslans
Member
Registered: 2015-09-30
Posts: 93

Re: Show us your conky

updated my Diagnostics Sidebar conky.
Apart from various bug- and layout tweaks, it now showing a 'temp' section too.
Also scripted the battery icon to follow its (dis)charging status.

O7q6rq4m.png

conky.conf (1.10 syntax):

--------------------------
---- Diagnostics Bar -----
-- @ceeslans 2020-03-26 --
-- mod extra 2020-04-24 -- 
--------------------------

conky.config = {

	update_interval = 1,
	total_run_times = 0,
	cpu_avg_samples = 2,
	double_buffer = true,
	no_buffers = true,
	pad_percents = 2,
	short_units = false,
	top_name_width = 9,
	use_spacer = 'right',

	background = true,
	own_window = true,
	own_window_type = 'normal',
	own_window_colour = '000000',
		-- own_window_transparent = true,
	own_window_argb_visual = true,
	own_window_argb_value = 48,  -- ## set to 192 for dark bar color
	
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
	own_window_class = 'Conky',
	own_window_title = 'ConkyDiagnosticsBarExt',

	draw_outline = false,
	draw_shades = false,
		--draw_outline = true,
		--default_outline_color = '000000',
	default_shade_color = '000000',
	stippled_borders = 0,
	draw_borders = true,
	default_color = '303030',	
	border_width = 1,
	draw_graph_borders = false,
	border_inner_margin = 0,
	border_outer_margin = 1,

	use_xft = true,
	xftalpha = 1,
	font = 'Dejavu Sans Condensed:size=8',
	override_utf8_locale = true,
	uppercase = false,

	minimum_width = 135,
	maximum_width = 135,
	minimum_height = 1078,
	gap_x = 0,
	gap_y = 0,
	alignment = 'top_right',

	--#### text color
	--color1 = 'FFFFFF',	-- #white
	color1 = 'CCCCCC',	-- #very light grey  --#default
	--color1 = 'AAAAAA',	-- #light grey
	--color1 = '808080',	-- #grey
	--color1 = '404040',	-- #dark grey
	--color1 = '151515',	-- #blackish
	--color1 = '000000',	-- #black		
	--color1 = '00FFFF',	-- #cyan
	--color1 = 'FFFF00',	-- #yellow
	--color1 = 'C0DBB3',	-- #grey-mintgreen
	--color1 = 'F62817',	-- #fire engine red
	--color1 = '3CCDFF',	-- #blue
	
	--#### fs_bar color
	color2 = '808080', 		--#lightgrey	--#default  
	--color2 = '404040',	--#darkgrey


};

conky.text = [[
### TIME/DATE
${voffset 35}${goto 15}${color1}${font Poky:size=20}d ${voffset -9}\
${alignr 12}${font Dejavu Sans Condensed:size=10:weight=bold}TIME${voffset 15}
${alignr 12}${font Dejavu Sans Condensed:size=11:weight=bold}${time %H:%M:%S}
${alignr 12}${font}${time %d %B %Y}
\
### CPU
${voffset 20}${goto 15}${font Poky:size=20}a ${voffset -9}\
${alignr 12}${font Dejavu Sans Condensed:size=10:weight=bold}CPU${font}${voffset 15}
${alignr 12}${font Dejavu Sans Condensed:size=8:weight=bold}\
${exec cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq | cut -c 19-27}
${voffset 5}${font}\
${goto 15}clock ${alignr 12}${freq} MHz
${goto 15}load ${alignr 12}${cpu cpu0}%
${goto 15}core1 ${alignr 12}${cpu cpu1}%
${goto 15}core2 ${alignr 12}${cpu cpu2}%
${voffset 5}${font}\
${goto 15}${top name 1}${alignr 12}${top cpu 1} %
${goto 15}${top name 2}${alignr 12}${top cpu 2} %
${goto 15}${top name 3}${alignr 12}${top cpu 3} %
\
### MEM
${voffset 20}${goto 15}${font Poky:size=20}M ${voffset -9}\
${alignr 12}${font Dejavu Sans Condensed:size=10:weight=bold}RAM${font}${voffset 15}
${goto 15}in use ${alignr 9}${mem}
${goto 15}load ${alignr 12}${memperc} %
${goto 15}free ${alignr 12}${memfree}
${voffset 5}${font}\
${goto 15}${top_mem name 1} ${alignr 12}${top_mem mem 1} %
${goto 15}${top_mem name 2} ${alignr 12}${top_mem mem 2} %
${goto 15}${top_mem name 3} ${alignr 12}${top_mem mem 3} %
\
### TEMP
${voffset 20}${goto 15}${font Poky:size=20}i ${voffset -8}\
${alignr 12}${font Dejavu Sans Condensed:size=10:weight=bold}TEMP${font}${voffset 15}
${goto 15}ACPI temp ${alignr 12}${acpitemp}°C
${goto 15}CPU temp ${alignr 12}${hwmon 0 temp 1}°C
${goto 15}GPU temp ${alignr 12}${hwmon 2 temp 1}°C
${goto 15}HDD temp ${alignr 12}${hddtemp /dev/sda}°C
\
### NET
${voffset 20}${goto 15}${font Poky:size=20}Y ${voffset -9}\
${alignr 12}${font Dejavu Sans Condensed:size=10:weight=bold}NET${font}${voffset 15}
${goto 15}IP ${alignr 12}${addr wlp2s0}
${goto 15}signal ${alignr 12}${wireless_link_qual_perc wlp2s0}%
${goto 15}in ${alignr 12}${totaldown wlp2s0}
${goto 15}out ${alignr 9}${totalup wlp2s0}
\
### DISK
${voffset 20}${goto 15}${font Poky:size=20}y ${voffset -9}\
${alignr 12}${font Dejavu Sans Condensed:size=10:weight=bold}DISK${font}${voffset 15}
${goto 15}root ${alignr 12}${voffset 1}${color2}${fs_bar 6,75 /}${color1}
${goto 50}load ${alignr 12}${fs_used_perc /}%
${voffset 5}\
${goto 15}home ${alignr 12}${voffset 1}${color2}${fs_bar 6,75 /home}${color1}
${goto 50}load ${alignr 12}${fs_used_perc /home}%
${voffset 5}\
${goto 15}swap ${alignr 12}${voffset 1}${color2}${swapbar 6,75 /}${color1}
${goto 50}load ${alignr 12}${swapperc /}%
${if_mounted /mnt/DATA}${voffset 5}\
${goto 15}data ${alignr 12}${voffset 1}${color2}${fs_bar 6,75 /mnt/DATA}${color1}
${goto 50}load ${alignr 12}${fs_used_perc /mnt/DATA} %${endif}
\
### SYS
${voffset 20}${goto 15}${font Poky:size=20}x ${voffset -9}\
${alignr 12}${font Dejavu Sans Condensed:size=10:weight=bold}SYS${font}${voffset 15}
${font Dejavu Sans Condensed:size=8:weight=bold}\
#${alignr 12}${execi 86400 cat `ls -atr /etc/*-release | tail -1` | grep "PRETTY_NAME" | cut -d= -f2}
${alignr 12}${execi 86400 lsb_release -si} ${execi 86400 lsb_release -sc}${font}
${alignr 12}${kernel}
${alignr 12}${execi 86400 inxi -S|awk '{print $8,$9}'}
${voffset -3}${font}\
${goto 15}user ${alignr 12}${execi 86400 whoami} @ ${nodename}
${goto 15}uptime ${alignr 12}${uptime}
\
### BATTERY ICON
${if_match ${battery_percent BAT0} <= 10}\
${voffset 20}${goto 15}${font Poky:size=20}Q ${voffset -9}\
${alignr 12}${font Dejavu Sans Condensed:size=10:weight=bold}BAT${font}${voffset 10}\
${else}${if_match ${battery_percent BAT0} <= 35}\
${voffset 20}${goto 15}${font Poky:size=20}W ${voffset -9}\
${alignr 12}${font Dejavu Sans Condensed:size=10:weight=bold}BAT${font}${voffset 10}\
${else}${if_match ${battery_percent BAT0} <= 65}\
${voffset 20}${goto 15}${font Poky:size=20}E ${voffset -9}\
${alignr 12}${font Dejavu Sans Condensed:size=10:weight=bold}BAT${font}${voffset 10}\
${else}${if_match ${battery_percent BAT0} <= 90}\
${voffset 20}${goto 15}${font Poky:size=20}R ${voffset -9}\
${alignr 12}${font Dejavu Sans Condensed:size=10:weight=bold}BAT${font}${voffset 10}\
${else}${if_match ${battery_percent BAT0} <= 100}\
${voffset 20}${goto 15}${font Poky:size=20}T ${voffset -9}\
${alignr 12}${font Dejavu Sans Condensed:size=10:weight=bold}BAT${font}${voffset 10}\
${endif}${endif}${endif}${endif}${endif}
### BATTERY STATUS
${if_existing /sys/class/power_supply/BAT0/status Full}\
${goto 15}${battery_percent} % ${alignr 12}fully charged\
${else}${if_existing /sys/class/power_supply/BAT0/status Charging}\
${goto 15}${battery_percent} % ${alignr 12}charging\
${else}${if_existing /sys/class/power_supply/BAT0/status Discharging}\
${goto 15}${battery_percent} % ${alignr 12}discharging\
${endif}${endif}${endif}
${voffset 10}\
\
]];

Any suggestions / improvements would be welcome...

Offline

#1345 2020-04-29 09:33:55

unklar
Member
Registered: 2015-10-31
Posts: 1,263

Re: Show us your conky

There are other, not pleasant, messages:  sad

Yesterday (2020-04-28), the dist-upgrade in sid removed the radiotray-ng package.
I installed this package in October 2019 without problems with apt. Also the latest version 0.2.7 cannot be reinstalled.

So the radio tool is finally dead for me, after the script of @loutch and @Teo didn't show any pictures for a long time.

Offline

#1346 2020-04-30 17:49:25

unklar
Member
Registered: 2015-10-31
Posts: 1,263

Re: Show us your conky

https://forums.bunsenlabs.org/viewtopic … 01#p100701

the clock
conkyrc

conky.config = {
-- main conkyrc by Boris Krinkel <olgmen>
-- olgmen2@gmail.com
-- --- параметры окна ---
-- эти строки необходимы для нормальной работы лучше не изменять
	own_window = true,
-- для вывода фона раскомментировать следующую строку, установить цвет, в данный момент красный и в строке own_window_transparent прописать no
--own_window_colour ff0000
	own_window_class = 'Conky',
	own_window_transparent = true,
	own_window_type = 'normal',--override 
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',--sticky,
	own_window_argb_visual = true,
--own_window_argb_value 150
-- следующие параметры можно изменять
-- минимальный размер
	minimum_width = 200, minimum_height = 200,
-- минимальная ширина
--maximum_width 230

	alignment = 'top_right',-- tl, tm, tr, bl, bm, br, ml, mr

-- расстояние между кромкой экрана и окном
-- по горизонтали
	gap_x = 30,
-- по вертикали
	gap_y = 80,

-- --- графика окна --- 
-- если желаете выводить conky на другом фоне напишите yes
--background no
-- окантовка окна, бордюр
	draw_borders = false,
-- если бордюр yes
-- длина штрихов бордюра, если 0, то бордюр выводится сплошной линией
	stippled_borders = 1,
-- толщина линий бордюра 
	border_width = 1,
-- бордюр вокруг выводимых графиков
	draw_graph_borders = false,
-- включить тень?
	draw_shades = false,
-- окантовка вокруг текста и выводимых объектов
	draw_outline = false,
-- Добавить пробел?  Только для встраиваемых объектов 
	use_spacer = 'right',

-- --- цвет ---
-- основной цвет по умолчанию 
	default_color = '#c0c0c0',
-- цвет тени
	default_shade_color = 'black',
-- цвет окантовки
	default_outline_color = '#ffffff',
-- дополнительные
	color0 = '#FFFF00',
	color1 = 'white',
	color2 = 'yellow',
	color3 = 'red',

-- --- шрифты ---

-- Используется ли Xft? 
	use_xft = true,

-- Шриф Xft когда Xft доступен, здесь можно ввести название и размер любого шрифта 
	font = 'Ubuntu:size=9',

-- яркость шрифта при использовании шрифтов Xft 
	xftalpha = 1,
-- выводить весь текст прописными буквами 
	uppercase = false,
-- использовать кодировку UTF8? ПРИМЕЧАНИЕ: требуется Xft 
	override_utf8_locale = true,

-- --- следующие данные необходимы для работы
-- обновление в секундах не имеет смысла ставить больше 2
-- при выводе времени в секундах необходимо значение 1 и менее
	update_interval = 1,
-- время работы программы до её выключения
-- установите 0 для работы программы без остановки
	total_run_times = 0,
-- двойная буфферизация (требуется для flicker, может не работать) 
	double_buffer = true,
-- вычитать буферизацию файловой системы из используемой памяти? 
	no_buffers = true,
-- количество cpu
	cpu_avg_samples = 2,
-- number of net samples to average 
	net_avg_samples = 2,
	imlib_cache_size = 0,
	short_units = true,
	pad_percents = 2,
	text_buffer_size = 2048,
	imlib_cache_size = 0,

-- — Lua Load — #

	lua_load = '~/.conky/olgmen/conky_clock.lua',
	lua_draw_hook_pre = 'conky_clock',


};

conky.text = '';

conky_clock.lua

-- Пример написания скрипта часов
-- Так как при выводе часов используются команды на языке cairo
-- необходимо указать программе об этом

require 'cairo'

-- создаем функцию для вывода изображения часов

function conky_clock ()

-- необходимые данные для вывода часов

	clock_settings = {

	{
--	x = 150,		-- координаты часов по горизонтали
--	y = 150,		-- координаты часов по вертикали
	radius = 100,		-- радиус часов
	color = 0x708090,	-- цвет ffffff
	alpha = 1,		-- насыщенность цвета
font_size = 16,
bold = true,
	}
	}

-- проверяем, существует окно конки или нет, если нет, выходим из программы

	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)

-- вызываем функцию вывода часов на экран

	for i, v in pairs(clock_settings) do
		cr = cairo_create (cs)
		display_clock (v)
		cairo_destroy (cr)
	end
end

-- функция перекодировки цвета

function rgb_to_r_g_b(colour,alpha)
	return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

-- функция рисования часов

function display_clock (t)

-- производим проверку вводимых данных и задаем значения по умолчанию

	if t.x			== nil then t.x = conky_window.width/2 end
	if t.y			== nil then t.y = conky_window.height/2 end
	if t.radius		== nil then t.radius = 75 end
	if t.color		== nil then t.color = 0xffffff end
	if t.alpha		== nil then t.alpha = 1 end
	if t.color_sec		== nil then t.color_sec = 0xff0000 end
	if t.alpha_sec		== nil then t.alpha_sec = 1 end
	if t.font_name		== nil then t.font_name = "Ubuntu" end
	if t.font_size		== nil then t.font_size = 12 end
	if t.italic		== nil then t.italic = false end
	if t.oblique		== nil then t.oblique = false end
	if t.bold		== nil then t.bold = false end

-- шрифт
	local slant = CAIRO_FONT_SLANT_NORMAL
	local weight =CAIRO_FONT_WEIGHT_NORMAL

	if t.italic then slant = CAIRO_FONT_SLANT_ITALIC end
	if t.bold then weight = CAIRO_FONT_WEIGHT_BOLD end

	cairo_select_font_face(cr, t.font_name, slant, weight)

	cairo_set_font_size(cr, t.font_size)

	te=cairo_text_extents_t:create()
	cairo_text_extents (cr,t.text,te)

-- начнем с вывода циферблата
-- сначала зададим цвет
	cairo_set_source_rgba(cr, rgb_to_r_g_b(t.color, t.alpha))
-- и толщину линии
	cairo_set_line_width(cr, 2)
-- рисуем окружность
	cairo_arc (cr, t.x, t.y, t.radius, 0, 2*math.pi)
-- ----------------------------------------------------------------------------------------
-- добавляем часовые деления
-- сбрасываем счетчик делений на 0
	local i = 0
-- задаем расстояние между делениями
	local winkel = math.rad(30)
-- выводим 12 делений
	for i= 0, 11, 1 do
		cairo_move_to(cr, t.x - math.sin(winkel*i)*t.radius, t.y - math.cos(winkel*i)*t.radius)
-- длину делений берем равной 0.1 от длины радиуса
		cairo_line_to(cr, t.x - math.sin(winkel*i)*(t.radius*0.85), t.y - math.cos(winkel*i)*(t.radius*0.85))

-- выводим изображение
	cairo_stroke (cr)
	end
-- -------------------------------------------------------------------------------------------
-- добавляем цифры
-- запоминаем данные
	cairo_save (cr)
-- переносим значения координат
	cairo_translate(cr, t.x, t.y)
-- сбрасываем координаты цифр
	mx, my = 0, 0
-- сбрасываем счетчик делений на 0
	local i = 0
-- задаем расстояние между цифрами
	local winkel = math.rad(30)
-- необходимо вывести цифра начиная с 1 и заканчивая 12
	for i = 1, 12, 1 do
-- расчитываем координаты цифр
	mov_x = math.sin(winkel*i)*(t.radius*0.73)
	mov_y = math.cos(winkel*i)*(t.radius*0.73)
-- расчитываем ширину и высоту цифр
	te=cairo_text_extents_t:create()
	cairo_text_extents (cr,i,te)
-- вносим поправку на половину ширины и половину высоты цифр
	mx = -te.width/2
	my = -te.height/2-te.y_bearing
-- задаем координаты цифр
	cairo_move_to(cr, mx + mov_x, my - mov_y)
-- выводим цифры
	cairo_show_text(cr, i)

	end
-- восстанавливаем данные
	cairo_restore (cr)
-- ------------------------------------------------------------------------------------------
-- добавляем минутные деления
-- сбрасываем счетчик делений на 0
	local i = 0
-- задаем расстояние между делениями
	local winkel = math.rad(6)
-- выводим 12 делений
	for i=0, 59, 1 do
		cairo_move_to(cr, t.x - math.sin(winkel * i) * t.radius, t.y - math.cos(winkel * i) * t.radius)
-- длину делений берем равной 0.1 от длины радиуса
		cairo_line_to(cr, t.x - math.sin(winkel * i) * (t.radius * 0.9), t.y - math.cos(winkel * i) * (t.radius*0.9))
	end
-- выводим изображение
	cairo_stroke (cr)

-- ----------------------------------------------------------------------------------
-- для вывода стрелок необходимо забрать данные о времени из ОС
	local hours = os.date("%I")
	local mins = os.date("%M")
	local secs = os.date("%S")
-- назначаем максимальные значения
	secs_arc = (2*math.pi/60)*secs
	mins_arc = (2*math.pi/60)*mins
	hours_arc = (2*math.pi/12)*hours + mins_arc/12
-- рисуем часовую стрелку
	xh = t.x + 0.65*t.radius*math.sin(hours_arc)
	yh = t.y - 0.65*t.radius*math.cos(hours_arc)
	cairo_move_to(cr, t.x, t.y)
	cairo_line_to(cr, xh, yh)
	cairo_stroke(cr)
-- рисуем минутную стрелку
	xm = t.x + 0.8*t.radius*math.sin(mins_arc)
	ym = t.y - 0.8*t.radius*math.cos(mins_arc)
	cairo_move_to(cr, t.x, t.y)
	cairo_line_to(cr, xm, ym)
	cairo_stroke(cr)
-- рисуем секундную стрелку
-- зададём цвет секундной стрелки
	cairo_set_source_rgba(cr, rgb_to_r_g_b(t.color_sec, t.alpha_sec))
	xs = t.x + 0.9*t.radius*math.sin(secs_arc)
	ys = t.y - 0.9*t.radius*math.cos(secs_arc)
	cairo_move_to(cr, t.x, t.y)
	cairo_line_to(cr,xs,ys)	
	cairo_stroke (cr)
end

the conky with the accuweather
conkyrc

-- pkill -xf "conky -c /home/unklar/.conky/rumit/rumit_conky10" &
-- @unklar 2020-04-01
conky.config = {

	background = true,
	update_interval = 1,

	cpu_avg_samples = 2,
	net_avg_samples = 2,
	temperature_unit = 'celsius',

	double_buffer = true,
	no_buffers = true,
	text_buffer_size = 2048,

	gap_x = 10,
	gap_y = 100,
	minimum_width = 240, minimum_height = 650,
	maximum_width = 240,
	own_window = true,
	own_window_type = 'normal',
	own_window_transparent = true,
	own_window_hints = 'undecorated,skip_taskbar,skip_pager,below',--sticky,
	border_inner_margin = 0,
	border_outer_margin = 0,
	alignment = 'bottom_right',--tl

	draw_shades = false,
--	default_shade_color = '000000',
	draw_outline = false,
--	default_outline_color = '000000',
	draw_borders = false,
	draw_graph_borders = true, --false,

	override_utf8_locale = true,
	use_xft = true,
	font = 'CaviarDreams:size=8',
	xftalpha = 0.5,
	uppercase = false,

	default_color = 'ffffff',
	color1 = 'ed2323',

--- LUA ---
--	lua_load = '~/.conky/rumit/scripts/clock_rings.lua',
--	lua_draw_hook_pre = 'clock_rings',
--	lua_load = '~/.conky/rumit/scripts/lua/conky_white_big.lua',
--	lua_draw_hook_post = 'main',
	lua_load = '~/.conky/rumit/scripts/draw_bg.lua',
	lua_draw_hook_pre = 'draw_bg 15 0 0 0 0 0x000000 0.55',

--${alignc}updates  ${if_match ${execi 600 aptitude search "~U" | wc -l | tail}==0}${execi 600 aptitude search "~U" | wc -l | tail}${color}${else}${color red}${blink ${execi 600 aptitude search "~U" | wc -l | tail}${color} updates}${color}${endif}
};

conky.text = [[
${texeci 500 bash $HOME/Accuweather_conky_script/accuweather -f}

${voffset -15}${goto 20}${color6}${font conkyweather:size=40}${texeci 600  sed -n '22p' $HOME/Accuweather_conky_script/curr_cond}${font monofur:size=25}${goto 150}${texeci 600 sed -n '2p' $HOME/Accuweather_conky_script/curr_cond}°
${voffset -13}${goto 16}${color5}${font monofur:size=9}CURRENTLY: ${color6}${alignc}${texeci 600  sed -n '4p' $HOME/Accuweather_conky_script/curr_cond} 
${goto 16}${color5}WIND: ${color6}${alignc}${texeci 600 sed -n '5p' $HOME/Accuweather_conky_script/curr_cond}  ${texeci 600 sed -n '6p' $HOME/Accuweather_conky_script/curr_cond}${goto 170}${voffset -10}${font ConkyWindNESW:size=30}${texeci 600 sed -n '27p' $HOME/Accuweather_conky_script/curr_cond}
${voffset -33}${goto 16}${color5}${font monofur:size=9}PRESSURE: ${color6}${alignc}${texeci 600 sed -n '8p' $HOME/Accuweather_conky_script/curr_cond}
${voffset 7}${goto 25}${texeci 600 sed -n '11p' $HOME/Accuweather_conky_script/daily_forecast}${goto 100}${texeci 600  sed -n '18p' $HOME/Accuweather_conky_script/daily_forecast}${goto 170}${texeci 600  sed -n '25p' $HOME/Accuweather_conky_script/daily_forecast}
${goto 30}${font conkyweather:size=20}${texeci 600  sed -n '107p' $HOME/Accuweather_conky_script/daily_forecast}${goto 100}${texeci 600  sed -n '108p' $HOME/Accuweather_conky_script/daily_forecast}${goto 170}${texeci 600  sed -n '109p' $HOME/Accuweather_conky_script/daily_forecast}
${voffset -15}${goto 45}${font monofur:size=9}${texeci 600  sed -n '12p' $HOME/Accuweather_conky_script/daily_forecast}${goto 120}${texeci 600  sed -n '19p' $HOME/Accuweather_conky_script/daily_forecast}${goto 190}${texeci 600  sed -n '26p' $HOME/Accuweather_conky_script/daily_forecast}
${goto 20}${color5}${font monofur:size=10}${texeci 600 sed -n '8p' $HOME/Accuweather_conky_script/daily_forecast|tr a-z A-Z|cut -c1-3}${goto 100}${color6}${texeci 600 sed -n '15p' $HOME/Accuweather_conky_script/daily_forecast|tr a-z A-Z|cut -c1-3}${goto 180}${texeci 600 sed -n '22p' $HOME/Accuweather_conky_script/daily_forecast|tr a-z A-Z|cut -c1-3}
  ${color1}${swapbar 0,210}${color}
${font Fira Mono:bold:size=8}
${goto 16}Users logon:  ${alignr 15}${user_names}
${goto 16}Boot:  ${alignr 15}${execi 86400 who -b | cut -c23-}
${goto 16}Ram:  ${alignr 15}${mem} | ${memmax}
${goto 16}System:  ${alignr 15}${cpu cpu1} | ${cpu cpu2} | ${cpu cpu3} | ${cpu cpu4}
${goto 16}Radeon:  ${alignr 15}${hwmon 2 temp 1}° | HDD ${execi 600 /usr/sbin/hddtemp -n /dev/sdb}°
${goto 16}Load:  ${alignr 15}${loadavg}
${voffset -8}
${alignc} ${execi 86400 cat `ls -atr /etc/*-release | tail -1` | grep "PRETTY_NAME" | cut -d= -f2}
${alignc} ${kernel} ${machine}
${voffset -8}
${alignc}speed  ↓  ${downspeedf enp2s0}
${alignc}speed  ↑  ${upspeedf enp2s0}${font monofur:size=9}${color}
${voffset -8}
${goto 10} Exchange rate:   ${alignr 15}£ ${execi 1200 curl gbp.rate.sx/1eur?TFq -s | cut -c1-7}  € ${execi 1200 curl eur.rate.sx/1gbp?TFq -s | cut -c1-7}

${alignc}${font monofur:size=10}S H O R T C U T    K E Y S
  ${color1}${swapbar 0,210}${color}
${goto 16}Alt + F2${alignr 15}Run Dialog
${goto 16}Alt + F3${alignr 15}Alt Menu
${goto 16}Super${alignr 15}Main Menu
${goto 16}Super + Tab${alignr 15}Client Menu
${goto 16}Super + t${alignr 15}Terminal
${goto 16}Super + w${alignr 15}Web Browser
${goto 16}Super + f${alignr 15}File Manager
${goto 16}Super + e${alignr 15}Editor
${goto 16}Super + m${alignr 15}Media Player
${goto 16}Super + v${alignr 15}Volume Control
${goto 16}Super + h${alignr 15}Task Manager
${goto 16}Super + l${alignr 15}Lock Screen
${goto 16}Super + x${alignr 15}Logout
${goto 16}PrtSc${alignr 15}Screenshot${font}
]];

draw_bg.lua

--[[
Background by londonali1010 (2009)

This script draws a background to the Conky window. It covers the whole of the Conky window, but you can specify rounded corners, if you wish.

To call this script in Conky, use (assuming you have saved this script to ~/scripts/):
	lua_load ~/scripts/draw_bg.lua
	lua_draw_hook_pre draw_bg

Changelog:
+ v1.0 -- Original release (07.10.2009)
]]

-- Change these settings to affect your background.
-- "corner_r" is the radius, in pixels, of the rounded corners. If you don't want rounded corners, use 0.

corner_r=15

-- Set the colour and transparency (alpha) of your background.

bg_colour=0x000000
bg_alpha=0.15

require 'cairo'
function rgb_to_r_g_b(colour,alpha)
	return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

function conky_draw_bg()
	if conky_window==nil then return end
	local w=conky_window.width
	local h=conky_window.height
	local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
	cr=cairo_create(cs)
	
	cairo_move_to(cr,corner_r,0)
	cairo_line_to(cr,w-corner_r,0)
	cairo_curve_to(cr,w,0,w,0,w,corner_r)
	cairo_line_to(cr,w,h-corner_r)
	cairo_curve_to(cr,w,h,w,h,w-corner_r,h)
	cairo_line_to(cr,corner_r,h)
	cairo_curve_to(cr,0,h,0,h,0,h-corner_r)
	cairo_line_to(cr,0,corner_r)
	cairo_curve_to(cr,0,0,0,0,corner_r,0)
	cairo_close_path(cr)
	
	cairo_set_source_rgba(cr,rgb_to_r_g_b(bg_colour,bg_alpha))
	cairo_fill(cr)
end

Offline

#1347 2020-05-16 22:34:43

ivo-a22
New Member
Registered: 2020-05-16
Posts: 1

Re: Show us your conky

Hello everyone , I am new here , this is my conky work :

conky

https://ibb.co/H7PRQ9r

Last edited by ivo-a22 (2020-05-16 22:35:12)

Offline

#1348 2020-05-17 08:02:55

ceeslans
Member
Registered: 2015-09-30
Posts: 93

Re: Show us your conky

ivo-a22 wrote:

Hello everyone , I am new here , this is my conky work :

https://ibb.co/H7PRQ9r

Very nice!
could you share the conky config and script files please?

Offline

#1349 2020-05-20 20:55:30

bry2k200
New Member
Registered: 2020-01-18
Posts: 4

Re: Show us your conky

ceeslans wrote:
unklar wrote:

Conky adapted to Lithium
2020-01-06-14-09-11_scrot.th.png

Happily used the conky,conf code that unklar provided ^
Changed it to my liking into a semi-transparent greyscale version.
https://thumbs2.imgbox.com/2b/54/ks6vUHhK_t.png

Would you happen to still have this?  Particularly, the conky script at the botton on the left, looks dope mate.

Offline

#1350 2020-05-21 05:52:14

ceeslans
Member
Registered: 2015-09-30
Posts: 93

Re: Show us your conky

bry2k200 wrote:

Would you happen to still have this?  Particularly, the conky script at the botton on the left, looks dope mate.

Here's the config for 'GiantTime' conky:

----------------
-- Giant-time --
----------------

conky.config = {

	update_interval = 1,
	total_run_times = 0,
	net_avg_samples = 1,
	cpu_avg_samples = 1,
	imlib_cache_size = 0,
	double_buffer = true,
	no_buffers = true,
	    
	own_window = true,
	own_window_type = 'desktop',
	own_window_argb_visual = true,
	own_window_argb_value = 0,
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
	own_window_class = 'Conky',
	own_window_title = 'ConkyGiantTime',
	
	border_inner_margin = 5,
	border_width = 10,

	use_xft = true,
	font = 'candara:size=12',
	override_utf8_locale = true,
	text_buffer_size = 2048,
	uppercase = false,
	xftalpha = 0.9,
	draw_shades = false,

	short_units = true,	
	text_buffer_size = 800,
	-- use_spacer = 'right',

	alignment = 'bottom_left',
	gap_x = 120,
	gap_y = 80,
	minimum_width = 300,
	minimum_height = 0,
	-- maximum_width = 360,

	-- color1 = 'FFFFFF', 	-- white
	color1 = 'BDB5A1', 	-- very lightgrey
	-- color1 = '808080',	-- lightgrey
	-- color1 = '606060',	-- grey
	-- color1 = '404040',	-- darkgrey	
	-- color1 = '202020',	-- darkest grey
	-- color1 = '101010',	-- blackish
	-- color1 = '000000', 	-- black
	-- color1 = 'CDB17E',	-- pale yellow	
	
	-- color2 = 'FFFFFF', 	-- white
	-- color2 = 'BDB5A1', 	-- very lightgrey
	-- color2 = '808080',	-- lightgrey
	-- color2 = '606060',	-- grey
	color2 = '404040',	-- darkgrey
	-- color2 = '202020', 	-- darkest grey
	-- color2 = '101010', 	-- blackish
	-- color2 = '000000', 	-- black
	-- color2 = 'B13900', 	-- orange
	-- color2 = 'AC1E1A', 	-- darkreddish
	-- color2 = '2B3446', 	-- '045C60',	-- '5A8A8A',	-- darkblue
	-- color2 = '6CA590', 	-- lightblue
	-- color2 = 'F3A600', 	-- yellow
	-- color2 = '3F2147',	-- purple
	-- color2 = '5294E2',	-- '1F6F8A',	-- blue

	-- color3 = 'FFFFFF', 	-- white
	-- color3 = 'BDB5A1', 	-- very lightgrey
	-- color3 = '808080',	-- lightgrey
	-- color3 = '606060',	-- grey
	-- color3 = '404040',	-- darkgrey
	color3 = '202020', 	-- darkest grey
	-- color3 = '101010', 	-- blackish
	-- color3 = '000000', 	-- black
	-- color3 = 'B13900', 	-- orange
	-- color3 = 'AC1E1A', 	-- darkreddish
	-- color3 = '2B3446', 	-- '045C60',	-- '5A8A8A',	-- darkblue
	-- color3 = '6CA590', 	-- lightblue
	-- color3 = 'F3A600', 	-- yellow
	-- color3 = '3F2147',	-- purple
	-- color3 = '1F6F8A',	-- blue

};

conky.text = [[
### Hour
${voffset -30}${font candara:size=194}${color1}${time %H}
### Minute
${voffset -150}\
${alignc}${offset 24}${color2}${time %M}
### Day & Date
${voffset -250}\
${font candara:size=20}${voffset -4}${color1}${time %A}
${time %d %B %G}${font}
### Audacious  (if running)
${voffset 20}\
${if_running audacious}${color3}Now ${exec audtool --playback-status}: \
${alignr}${color1}${exec audtool --current-song-output-length} / ${exec audtool --current-song-length}
${voffset 4}"${exec audtool --current-song-tuple-data title}" \
${alignr}[${exec audtool --current-song-tuple-data artist}]${endif}${voffset -100}
]];

Offline

Board footer

Powered by FluxBB