You are not logged in.

#1301 2020-02-21 18:48:33

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

Re: Show us your conky

unklar wrote:
Sector11 wrote:
unklar wrote:

On the subject:
where did you get the -f option ?

Check the code block right under your statement:

where it says:

therefore I wrote "Aha..."

Ahhhh that's why  my OOPS!  big_smile

I get that.
My mother's age today is such that I bow to her

dateutils.ddiff 1920-03-03 today -f '%y %m %d'
99 11 18

dateutils.ddiff 1920-03-03 today -f '%yy %mm %dd'
99y 11m 18d

That is very impressive.  I can not even imagine the stories she could entertain us with.
You are a lucky man indeed.

Yes I see all this and more in "info dateutils".


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

Offline

#1302 2020-02-22 08:13:03

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

Re: Show us your conky

wink

Offline

#1303 2020-02-25 22:46:48

manuel-909
Member
Registered: 2017-10-09
Posts: 93

Re: Show us your conky

An upate to my conky's...
Screenshot.png

Offline

#1304 2020-02-25 22:54:52

damo
....moderator....
Registered: 2015-08-20
Posts: 6,405

Re: Show us your conky

^ You conky guys - hiding the view of all that lovely granite climbing!  tongue


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#1305 2020-02-25 23:06:09

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

Re: Show us your conky

manuel-909 wrote:

¡Esos son bonitos!

@ damo - maybe only on 1 desktop ...


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

Offline

#1306 2020-02-25 23:33:24

manuel-909
Member
Registered: 2017-10-09
Posts: 93

Re: Show us your conky

Hey mi amigo bueno de verte mucho tiempo de no verte....PM

Last edited by manuel-909 (2020-02-25 23:35:05)

Offline

#1307 2020-02-26 16:10:07

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

Re: Show us your conky

It was my wife's wish to have OS updates displayed in the Conky. Since I can't deny her a wish  big_smile , I made this change...

Many thanks to the master of all Conky's, Sector11, for his brilliant hint instead of

< 0
> 0
==0

in the if_statement.   cool

Offline

#1308 2020-02-26 19:29:10

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

Re: Show us your conky

@unklar

'Twas but a simple tweak.  smile

Gotta love the name of the archive though, I got a great chuckle out of it.


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

Offline

#1309 2020-03-01 09:39:05

clusterF
Member
Registered: 2019-05-07
Posts: 539

Re: Show us your conky

Hi again,

I used to be able to get nmcli wifi device list BARS (see here https://people.freedesktop.org/~lkundra … mples.html )

▂▄▆█

to show up in conky with below command. But now all i get is asterisks *** , any idea maybe why ? The bars display in the xterminal.

version is conky 1.11

nmcli dev wifi | grep -E '^[*]' | awk '/*/ {print $9}'

Here is the conky:

conky.config = {
own_window = true,
own_window_type = 'override',--panel
own_window_transparent = false,
own_window_hints = 'undecorated,above,skip_taskbar,skip_pager,sticky',
own_window_colour = '181818',
double_buffer = true,
own_window_argb_visual = true,
own_window_argb_value = 255,
minimum_width = 1366, minimum_height = 0,--# width, height
maximum_width = 1366,--# width, usually a good idea to be '=' or '>' minimum width
gap_x = 0,-- left-right
gap_y = 0,-- up-down
alignment = 'bottom_left',
use_xft = true,
font = 'Monospace:size=9',
-- xftfont DejaVu Sans Mono:size=8.5
-- xftfont monofur:size=10
xftalpha = 0,
override_utf8_locale = true,
draw_shades = false,
default_shade_color = 'black',
draw_outline = false,-- amplifies text if yes
default_outline_color = 'black',
uppercase = false,

default_color = '#DCDCDC',
color0 = '#8FBC8F',
color1 = '#778899',
color2 = '#FF8C00',
color3 = '#7FFF00',
color4 = '#FFA07A',
color5 = '#FFDEAD',
color6 = '#00BFFF',
color7 = '#00FFFF',
color8 = '#FFFFFF',
color9 = '#FFFF00',
draw_borders = false,
stippled_borders = 0,
border_inner_margin = 0,
border_outer_margin = 0,
border_width = 0,
draw_graph_borders = false,--yes
default_graph_width = 15, default_graph_height = 40,
background = true,
use_spacer = 'none',
text_buffer_size = 256,
no_buffers = true,
short_units = true,
pad_percents = 2,
update_interval = 1,

};

conky.text = [[
[ ${color7}${desktop}${color8} ] \
${execi 3600 lsb_release -i | awk 'NR==1{print $3}'}:${color7}${kernel}${color8}  \
CPU:${color7}${cpu cpu0}%${color8}  \
Mem:${color7}${mem} / ${memmax}${color8}  \
Root:${color7}${fs_used /} / ${fs_size}${color8}  \
DL:${color7}${downspeedgraph wlp2s0 10,50 FFFF00 FF0000} ${totaldown wlp2s0}${color8}  \
UP:${color7}${upspeedgraph wlp2s0 10,50 FF0000 FFFF00} ${totalup wlp2s0}${color8}  \
Cpu°C 0:${color7}${hwmon 0 temp 1}${color8} \
1:${color7}${hwmon 0 temp 2}${color8} \
2:${color7}${hwmon 0 temp 3}${color8} \
3:${color7}${hwmon 0 temp 4}${color8}  \
Disc°C:${color7}${execi 600 /usr/sbin/hddtemp -n /dev/sda}${color8}  \
$alignr${color8}${font DejaVu Sans:size=9}${execi 60 nmcli dev wifi | grep -E '^[*]' | awk '/*/ {print $9}'}  \
]];

Last edited by clusterF (2020-03-01 12:32:28)

Offline

#1310 2020-03-01 12:52:38

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

Re: Show us your conky

Did you recently upgrade conky to v1.11?

Make "any" change in the conky itself?

where did you get nmcli ?


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

Offline

#1311 2020-03-01 13:15:32

clusterF
Member
Registered: 2019-05-07
Posts: 539

Re: Show us your conky

Sector11 wrote:

Did you recently upgrade conky to v1.11?

Make "any" change in the conky itself?

where did you get nmcli ?

Yes conky is v1.11 and i just reinstated an old command i had used in the past with nmcli.

Im on voidlinux, so their version of conky.

I will test this on the bunsenlabs computer when i am near it.

Offline

#1312 2020-03-01 14:29:33

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

Re: Show us your conky

clusterF wrote:
Sector11 wrote:

Did you recently upgrade conky to v1.11?

Make "any" change in the conky itself?

where did you get nmcli ?

Yes conky is v1.11 and i just reinstated an old command i had used in the past with nmcli.

Im on voidlinux, so their version of conky.

I will test this on the bunsenlabs computer when i am near it.

The reason I asked aboutnmcli  is I have "network-manager" installed and thought I had no nmcli

I can be a DUH! at times.

 
 01 Mar 20 @ 11:27:53 ~
   $ sho nmcli
alias = aptitude show filename
E: Unable to locate package nmcli 
 
 01 Mar 20 @ 11:28:06 ~
   $ ser nmcli
alias ser = aptitude search
                                      
 01 Mar 20 @ 11:28:13 ~
   $ nmcli --help
Usage: nmcli [OPTIONS] OBJECT { COMMAND | help }

OPTIONS
  -o[verview]                                    overview mode (hide default values)
  -t[erse]                                       terse output
  -p[retty]                                      pretty output
  -m[ode] tabular|multiline                      output mode
  -c[olors] auto|yes|no                          whether to use colors in output
  -f[ields] <field1,field2,...>|all|common       specify fields to output
  -g[et-values] <field1,field2,...>|all|common   shortcut for -m tabular -t -f
  -e[scape] yes|no                               escape columns separators in values
  -a[sk]                                         ask for missing parameters
  -s[how-secrets]                                allow displaying passwords
  -w[ait] <seconds>                              set timeout waiting for finishing operations
  -v[ersion]                                     show program version
  -h[elp]                                        print this help

OBJECT
  g[eneral]       NetworkManager's general status and operations
  n[etworking]    overall networking control
  r[adio]         NetworkManager radio switches
  c[onnection]    NetworkManager's connections
  d[evice]        devices managed by NetworkManager
  a[gent]         NetworkManager secret agent or polkit agent
  m[onitor]       monitor NetworkManager changes

 
 01 Mar 20 @ 11:28:25 ~
   $ 

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

Offline

#1313 2020-03-02 13:47:22

clusterF
Member
Registered: 2019-05-07
Posts: 539

Re: Show us your conky

^ not sure what the issue is if any, tried it in the bunsenlabs puter and still doing the same thing. Maybe im mistaken and it was only lemonbar i was using with xsetroot, in any case it doesnt even work with lemonbar and xsetroot so not a conky issue if there even was one.

Offline

#1314 2020-03-02 14:51:33

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

Re: Show us your conky

^^On my machines with NM:
conky shows me boxes today
at the terminal I receive

unklar@helium:~$ nmcli dev wifi | grep -E '^[*]' | awk '/*/ {print $9}'

WPA2
unklar@helium:~$ nmcli dev wifi | grep -E '^[*]' | awk '/*/ {print $8}'
SICHERHEIT
▂▄▆█

I think the command is incorrect.

Offline

#1315 2020-03-02 15:05:44

clusterF
Member
Registered: 2019-05-07
Posts: 539

Re: Show us your conky

^ thanks unklar, but just to be certain?

Does your conky show the bars as you see in the terminal as well?

Offline

#1316 2020-03-02 15:27:01

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

Re: Show us your conky

^not today, yesterday briefly

the behaviour is similar to this one

Edit:
2020-03-02-16-22-47_scrot.md.png

[Bingo] with DejaVu Sans
but I can't get the readout up to the line  monkey

Last edited by unklar (2020-03-02 15:35:28)

Offline

#1317 2020-03-24 19:22:05

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

Re: Show us your conky

@Sector11, Hello my friend, I'm just tinkering again big_smile and there I stumble in my annals on the HDD about this Lua clock by B.Krinkel, alias @Olgmen.
Do you know it?
2020-03-24-19-57-24_scrot.th.png 2020-03-24-19-58-20_scrot.png

conkyrc

# main conkyrc by Boris Krinkel <olgmen>
# olgmen2@gmail.com
# --- параметры окна ---
# эти строки необходимы для нормальной работы лучше не изменять
own_window	yes
# для вывода фона раскомментировать следующую строку, установить цвет, в данный момент красный и в строке own_window_transparent прописать no
#own_window_colour ff0000
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_argb_visual yes
#own_window_argb_value 150
# следующие параметры можно изменять
# минимальный размер
minimum_size 200 200 
# минимальная ширина
#maximum_width 230

alignment tr		# tl, tm, tr, bl, bm, br, ml, mr

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

# --- графика окна --- 
# если желаете выводить 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 c0c0c0
# цвет тени
default_shade_color black 
# цвет окантовки
default_outline_color ffffff
# дополнительные
color0 FFFF00
color1 white
color2 yellow 
color3 red 

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

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

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

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

# --- следующие данные необходимы для работы
# обновление в секундах не имеет смысла ставить больше 2
# при выводе времени в секундах необходимо значение 1 и менее
update_interval 1 
# время работы программы до её выключения
# установите 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 Load — #

lua_load ~/.conky/olgmen/conky_clock.lua
lua_draw_hook_pre conky_clock


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

Offline

#1318 2020-03-24 19:59:07

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

Re: Show us your conky

I have some scripts here that have his name in them:

 24 Mar 20 @ 16:48:20 ~
   $ cd /media/5/conky
 
 24 Mar 20 @ 16:48:42 /media/5/conky
   $ ftxt olgmen
mrpeachy/gauge/gauge.lua
3:based on the conky by olgmen @ forum.ubuntu.ru

mrpeachy/gauge/gauge
152:## based on the conky by olgmen @ forum.ubuntu.ru
 
 24 Mar 20 @ 16:49:00 /media/5/conky
   $ cd /media/5/Conky
 
 24 Mar 20 @ 16:49:37 /media/5/Conky
   $ ftxt olgmen
scripts/Scales/scale.lua
3:подогнал под свои конки olgmen 11.12.2011

rotate-clock.ru.conky
2:# main conkyrc by Boris Krinkel <olgmen>

LUA/rotate-clock.lua
2:Conky Widgets by olgmen (2010)

LUA/gauge.lua
3:based on the conky by olgmen @ forum.ubuntu.ru

LUA/gauge3.lua
3:based on the conky by olgmen @ forum.ubuntu.ru

LUA/calendar3.lua
9:He collected all this Boris Krinkel <olgmen> krinkel@rambler.ru

LUA/gauge2.lua
3:based on the conky by olgmen @ forum.ubuntu.ru

Looks like mrpeachy based some of his work off his scripts.
But that clock proper, no I do not have it and cannot say I have seen it.

Nice clean looking clock though.


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

Offline

#1319 2020-03-24 20:07:47

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

Re: Show us your conky

HOLD ONE!!!!  I think I do have it: rotate-clock.ru.conky

Nope, mine is just like it says a rotated clock.
2020-03-24-170534-S11.jpg


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

Offline

#1320 2020-03-24 21:29:36

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

Re: Show us your conky

^^You're a magician! Brilliant!
Yes, this is the watch from @olgmen, which I never got to "shake"...   devil   lol  lol

Offline

#1321 2020-03-24 21:54:18

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

Re: Show us your conky

You want it?
rotate-clock.ru.conky

## pkill -xf "conky -q -c /media/5/Conky/rotate-clock.ru.conky" &
# main conkyrc by Boris Krinkel <olgmen>
# krinkel@rambler.ru
# --- параметры окна ---
# эти строки необходимы для нормальной работы лучше не изменять
own_window		yes
own_window_class	Conky
own_window_transparent	yes
own_window_type		normal
own_window_hints	undecorated,below,skip_taskbar,skip_pager
own_window_argb_visual  yes
# own_window_argb_value 255
# следующие параметры можно изменять
# минимальный размер
minimum_size 500 0
# минимальная ширина
#maximum_width 400
# --- расположение окна
# левый верхний угол экрана
alignment top_left
# левый нижний угол экрана
#alignment bottom_left
# правый верхний угол экрана
#alignment top_right
# правый нижний угол экрана
#alignment bottom_right
# расстояние между кромкой экрана и окном
# по горизонтали
gap_x 100
# по вертикали
gap_y 100

# --- графика окна ---
# если желаете выводить conky на другом фоне напишите yes
background no
# окантовка окна, бордюр
draw_borders no

# если бордюр yes
# длина штрихов бордюра, если 0, то бордюр выводится сплошной линией
stippled_borders 1
# толщина линий бордюра
border_width 1
# поле бордюра
border_inner_margin 20
# бордюр вокруг выводимых графиков
draw_graph_borders no
# включить тень?
draw_shades no
# окантовка вокруг текста и выводимых объектов
draw_outline no
# Добавить пробел?  Только для встраиваемых объектов
use_spacer right
## ---------- Begin Borders Section
draw_borders yes
## Stippled borders?
stippled_borders 5
## border margins
border_inner_margin 5
border_outer_margin 0
## border width
border_width 2
## graph borders
draw_graph_borders yes ## no
## default_graph_size 15 40
## ---------- End Borders Secton
# --- цвет ---
# основной цвет по умолчанию
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 D3 Roadsterism Long Italic:size=9

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

# --- следующие данные необходимы для работы
# обновление в секундах не имеет смысла ставить больше 2
# при выводе времени в секундах необходимо значение 1 и менее
update_interval 1.0
# время работы программы до её выключения
# установите 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 /media/DATEN/francescoPC/Conky/Olgmen/Schief/rotate_clock.lua
lua_load /media/5/Conky/LUA/rotate-clock.lua
lua_draw_hook_pre widgets

TEXT
${voffset 450}

/media/5/Conky/LUA/rotate-clock.lua

--[[
Conky Widgets by olgmen (2010)

Скрипт позволяет выводить в окно CONKY часы
The script allows you to display the window CONKY hours


для запуска необходимо ввести до TEXT сдедующие строки
for a start it is necessary to enter TEXT sdeduet line

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

при условии, что скрипт rotate_clock.lua сохранен в папке ~/scripts
provided that rotate clock.lua script is stored in the folder ~ / scripts
]]

require 'cairo'

--[[ CLOCK WIDGET ]]

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

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

	function rgb_to_r_g_b(colour,alpha)
		return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
	end
		-- назначаем толщину выводимых линий
		-- Appoint a thickness of output lines
		local s_th = 2

		-- перехватываем данные часы, минуты, секунды
		-- intercept data hours, minutes, seconds
		local hours=os.date("%I")
		local mins=os.date("%M")
		local secs=os.date("%S")

		-- назначаем максимальные значения
		-- We assign a maximum value
		secs_arc=(2*math.pi/60)*secs
		mins_arc=(2*math.pi/60)*mins
		hours_arc=(2*math.pi/12)*hours+mins_arc/12

		-- рисуем циферблат
		-- draw a face
		local radius = s/2
		local m_x,m_y = x + s/2, y + s/2
		cairo_set_line_width(cr,6)

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

--		cairo_rotate (cr, 0*math.pi/180)
--		cairo_rotate (cr, 20*math.pi/180)
--		cairo_rotate (cr, 25*math.pi/180)
		cairo_rotate (cr, 30*math.pi/180) -- original
--		cairo_rotate (cr, 35*math.pi/180)
--		cairo_rotate (cr, 40*math.pi/180)
--		cairo_rotate (cr, 45*math.pi/180)
--		cairo_rotate (cr, 50*math.pi/180)
--		cairo_rotate (cr, 55*math.pi/180)
--		cairo_rotate (cr, 60*math.pi/180)


		-- элипс первая цифра - ширина, вторая - высота
		-- ellipse the first digit - the width of the second - height

		cairo_scale (cr, 0.6, 1)

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

		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)

		-- прозрачный "корпус часов"
		-- transparent "body clock"

		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)

		-- вывод часовых делений
		-- the output time division

		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

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

		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 часовые
		-- paint division 3, 6, 9 and 12 hours

		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)


		-- ОКНО ВЫВОДА ДАТЫ
		-- WINDOW OUTPUT DATE

		-- задаем размер окна
		-- Specify window size

		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
		-- рисуем окно
		-- draw a box
		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)
		-- закрашиваем в черный цвет
		-- paint in black
		cairo_set_source_rgba(cr, 0,0,0,0.1)
		cairo_fill(cr)
		-- выводим в окно дату
		-- the output of the window date
		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)
		-- задаем белый цвет цифрам даты
		-- ask the white figures date
		cairo_set_source_rgba(cr, 1, 1, 1, 1)
		cairo_show_text(cr, value)

		-- задаем размер окна
		-- Specify window size

		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
		-- рисуем окно
		-- draw a box
		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)
		-- закрашиваем в черный цвет
		-- paint in black
		cairo_set_source_rgba(cr, 0,0,0,0)
		cairo_fill(cr)

		-- выводим в окно дату
		-- the output of the window date
		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)
		-- задаем белый цвет цифрам даты
		-- ask the white figures date
		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

		-- вывод часовой стрелки
		-- conclusion clockwise

		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)

		-- вывод минутной стрелки
		-- the output of the minute hand

		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)

		-- вывод секундной стрелки
		-- the output of the second hand

		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)
		-- рисуем ось стрелок
		-- Draw arrows axis
		cairo_arc (cr, xc, yc, s*0.02, 0, 2*math.pi)
		cairo_fill (cr)

		-- глянец
		-- gloss

		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
--  options: x,  y,   s, bgc, bga, fgc, fga

--  "x" координаты по горизонтали центра часов
--  "x" coordinates of the horizontal center hours

--  "y" координаты по вертикали центра часов
--  "y" coordinates of the vertical center hours

--  "s" диаметр часов
--  "s" diameter hours

--  "bgc" цвет фона
--  "bgc" background color

--  "bga" яркость фона
--  "bga" background brightness

--  "fgc" цвет графики
--  "fgc" color graphics

--  "fga" яркость графики
--  "fga" charts brightness

	cairo_destroy(cr)

end

You owe me a beer, please drink it for me.  big_smile


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

Offline

#1322 2020-03-25 08:18:34

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

Re: Show us your conky

lol  lol  lol

OMG, I recognized her.  wink

Yes thanks, I enjoyed it (the beer). But the clock does not rotate with me.

Offline

#1323 2020-03-25 12:39:37

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

Re: Show us your conky

in the lua script:

--		cairo_rotate (cr, 0*math.pi/180)
--		cairo_rotate (cr, 20*math.pi/180)
--		cairo_rotate (cr, 25*math.pi/180)
		cairo_rotate (cr, 30*math.pi/180) -- original
--		cairo_rotate (cr, 35*math.pi/180)
--		cairo_rotate (cr, 40*math.pi/180)
--		cairo_rotate (cr, 45*math.pi/180)
--		cairo_rotate (cr, 50*math.pi/180)
--		cairo_rotate (cr, 55*math.pi/180)
--		cairo_rotate (cr, 60*math.pi/180)

Pick one, comment out the original


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

Offline

#1324 2020-03-25 15:21:15

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

Re: Show us your conky

^That's why it still doesn't rotate.
So, what's missing?   big_smile

Offline

#1325 2020-03-25 16:21:44

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

Re: Show us your conky

Conky v1.9  ???

Also I thing there is a bug in it.


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

Offline

Board footer

Powered by FluxBB