You are not logged in.

#661 2017-07-11 16:34:27

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

Re: Show us your conky

HERESY I TELL YOU THAT'S JUST PLAIN HERESY!!!*

* Does not matter.  It's like the old violin.

A slight misquote with the ending cutoff:

'Twas battered and scarred,
And the auctioneer thought it
hardly worth his while
To waste his time on the old violin,
but he held it up with a smile.

"What am I bid, good people", he cried,
"Who starts the bidding for me?"
"One dollar, one dollar, Do I hear two?"
"Two dollars, who makes it three?"
"Three dollars once, three dollars twice, going for three,"

But, No,
From the room far back a gray bearded man
Came forward and picked up the bow,
Then wiping the dust from the old violin
And tightening up the strings,
He played a melody, pure and sweet
As sweet as the angel sings.

The music ceased and the auctioneer
With a voice that was quiet and low,
Said "What now am I bid for this old violin?"
As he held it aloft with its' bow.

"One thousand, one thousand, Do I hear two?"
"Two thousand, Who makes it three?"
"Three thousand once, three thousand twice,
Going and gone", said he.

The audience cheered,
But some of them cried,
"We just don't understand."
"What changed its' worth?"
Swift came the reply.
"The Touch of damo's Hand."

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#662 2017-07-11 18:43:03

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

Re: Show us your conky

big_smile

I nearly didn't scroll down!


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

#663 2017-07-11 18:46:21

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

Re: Show us your conky

hahahahahaha and that would have been a "Gotchya!"

You do good stuff damo!


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#664 2017-07-11 22:49:42

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

Re: Show us your conky

Helium-dev, Beam theme, with a new conky based on this one by @Sun For Miles (ported to Conky v1.10, major tweaks). Conky_Seamod just keeps evolving wink

2017-07-11--1499812289_1920x1080_scrot.th.png

Aqua-rings-110.conkyrc

conky.config = {
--========================  Aqua-rings-110.conkyrc  ========================================
-- 
-- Heavily modified version of SunForMiles.conkyrc;
-- Ported to Conky v1.10;
-- Removed unecessary ${font} calls, tweaked positions, colours etc;
-- Added BL forum atomfeed;
-- Designed to complement BunsenLabs Beam desktop themeing
--
-- by damo, July2017  <damo@bunsenlabs.org>
--
--=======================  Modification of  ================================================
-- SunForMiles.conkyrc
-- Date    : 05 July 2017
-- Author  : Sun For Miles
-- Version : v0.41
-- License : Distributed under the terms of GNU GPL version 2 or later
-- 
-- This version is a modification of conkyrc_seamod, which is modification of conkyrc_lunatico,
-- which is modification of conkyrc_orange
-- 
-- conkyrc_orange:    http://gnome-look.org/content/show.php?content=137503&forumpage=0
-- conkyrc_lunatico:  http://gnome-look.org/content/show.php?content=142884
-- conkyrc_seamod:    http://custom-linux.deviantart.com/art/Conky-Seamod-v0-1-283461046
--=============================================================================================

	background = true,
	update_interval = 1,

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

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

	gap_x = 40,
	gap_y = 20,
	minimum_width = 150, minimum_height = 600,
	maximum_width = 300,
	own_window = true,
	own_window_transparent = true,
	own_window_argb_visual = true,
	own_window_type = 'desktop',
	own_window_hints = 'undecorated,sticky,skip_taskbar,skip_pager,below',
	border_inner_margin = 30,
	border_outer_margin = 0,
	alignment = 'top_right',


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

	override_utf8_locale = true,
	use_xft = true,
	--font = 'caviar dreams:size=10',
	--font = 'Raleway:size=14',
	font = 'Raleway:size=10',
	xftalpha = 0.5,
	uppercase = false,

-- Defining colors
	default_color = '#FFFFFF',
-- Shades of Gray
	color1 = 'DDDDDD',
	color2 = 'AAAAAA',
	color3 = '888888',
	color4 = '678b8b',
	color5 = '284f63',
	color6 = '617b78',
	color7 = '668989',
	color8 = 'dae1e3',
	color9 = '6B9083',
--	color7 = '4f727b',
-- Lilac
--	color6 = '#68364B',

-- Loading lua script for drawning rings
	lua_load = '~/.config/conky/LUA/Aqua-rings-110.lua',
	lua_draw_hook_post = 'main',


-- CPU
};

conky.text = [[
${voffset 45}${alignr}${color4}Helium  ${kernel}
${voffset 5}
${font Raleway:size=14:style=bold}${color4}${alignr}CPU
# Showing TOP 5 CPU-consumers
${goto 115}${font}${color1}${top name 1}${alignr}${top cpu 1}%
${goto 115}${font}${color1}${top name 2}${alignr}${top cpu 2}%
${goto 115}${font}${color2}${top name 3}${alignr}${top cpu 3}%
${goto 115}${font}${color3}${top name 4}${alignr}${top cpu 4}%
${goto 115}${font}${color3}${top name 5}${alignr}${top cpu 5}%

#Showing memory part with TOP 5
${voffset 40}
${font Raleway:size=14:style=bold}${color4}${alignr}MEM
${goto 115}${font}${color1}${top_mem name 1}${alignr}${top_mem mem_res 1}
${goto 115}${font}${color1}${top_mem name 2}${alignr}${top_mem mem_res 2}
${goto 115}${font}${color2}${top_mem name 3}${alignr}${top_mem mem_res 3}
${goto 115}${font}${color3}${top_mem name 4}${alignr}${top_mem mem_res 4}
${goto 115}${font}${color3}${top_mem name 4}${alignr}${top_mem mem_res 5}

# Showing disk partitions: root, home and Data
${voffset 0}
${offset 90}${font Raleway:size=14:style=bold}${color4}${alignr}${voffset 40}DISKS
${voffset 10}${alignr}${diskiograph 20,180 666666 68364B -t -l}
${voffset -10}
${offset 130}${font}${color3}Free: ${font}${fs_free /}${alignr}${font}Used: ${font}${fs_used /}
${offset 130}${font}${color3}Free: ${font}${fs_free /home}${alignr}${font}Used: ${font}${fs_used /mnt/data}
${offset 130}${font}${color3}Free: ${font}${fs_free /mnt/data}${alignr}${font}Used: ${font}${fs_used /mnt/backups}
# BL atomfeed
${voffset 20}${color4}${hr}
${voffset 10}${font Raleway:size=14:style=Light}B U N S E N L A B S${alignr}ATOMFEED
${color1}${font Raleway:style=Light:pixelsize=14}${voffset 2}${execi 300 $HOME/.config/conky/scripts/BL-atomfeed.sh}
${voffset 10}${color4}${hr}
# End
]];

Aqua-rings-110.lua - 8 cpu, so comment out as necessary

--==============================================================================
-- Aqua-rings-110.lua, based on sun_rings
--
-- I just tweaked the cpu rings, and disc paths ;)
--
-- by damo, July 2017 <damo@bunsenlabs.org>
--==============================================================================
--                            sun_rings.lua
--
--  Date    : 05 July 2017
--  Author  : Sun For Miles
--  Version : v0.41
--  License : Distributed under the terms of GNU GPL version 2 or later
--
--  This version is a modification of seamod_rings.lua which is modification of
--  lunatico_rings.lua which is modification of conky_orange.lua 
--
--  conky_orange.lua:    http://gnome-look.org/content/show.php?content=137503
--  lunatico_rings.lua:  http://gnome-look.org/content/show.php?content=142884
--  seamod_rings.lua:    http://custom-linux.deviantart.com/art/Conky-Seamod-v0-1-283461046
--==============================================================================

require 'cairo'


--------------------------------------------------------------------------------
--                                                                    gauge DATA
gauge = {
{
    name='cpu',                    arg='cpu0',                  max_value=100,
    x=100,                          y=130,
    graph_radius=54,
    graph_thickness=4,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
    hand_fg_colour=0x678b8b,      hand_fg_alpha=1.0,
    --hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
    txt_radius=64,
    txt_weight=0,                  txt_size=9.0,
    txt_fg_colour=0x678b8b,        txt_fg_alpha=0,
    --txt_fg_colour=0xEF5A29,        txt_fg_alpha=0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=9.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
{
    name='cpu',                    arg='cpu1',                  max_value=100,
    x=100,                          y=130,
    graph_radius=48,
    graph_thickness=4,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
    hand_fg_colour=0x678b8b,      hand_fg_alpha=1.0,
    txt_radius=40,
    txt_weight=0,                  txt_size=9.0,
    txt_fg_colour=0x678b8b,        txt_fg_alpha=0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=9.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
--  If you have quad core CPU uncomment lines below that relate to CPU
{
    name='cpu',                    arg='cpu2',                  max_value=100,
    x=100,                          y=130,
    graph_radius=42,
    graph_thickness=4,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
    hand_fg_colour=0x678b8b,      hand_fg_alpha=1.0,
    txt_radius=30,
    txt_weight=0,                  txt_size=9.0,
    txt_fg_colour=0x678b8b,        txt_fg_alpha=0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=9.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
{
    name='cpu',                    arg='cpu3',                  max_value=100,
    x=100,                          y=130,
    graph_radius=36,
    graph_thickness=4,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
    hand_fg_colour=0x678b8b,      hand_fg_alpha=1.0,
    txt_radius=4,
    txt_weight=0,                  txt_size=9.0,
    txt_fg_colour=0x678b8b,        txt_fg_alpha=0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=9.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
{
    name='cpu',                    arg='cpu4',                  max_value=100,
    x=100,                          y=130,
    graph_radius=30,
    graph_thickness=4,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
    hand_fg_colour=0x678b8b,      hand_fg_alpha=1.0,
    --hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
    txt_radius=64,
    txt_weight=0,                  txt_size=9.0,
    txt_fg_colour=0x678b8b,        txt_fg_alpha=0,
    --txt_fg_colour=0xEF5A29,        txt_fg_alpha=0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=9.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
{
    name='cpu',                    arg='cpu5',                  max_value=100,
    x=100,                          y=130,
    graph_radius=24,
    graph_thickness=4,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
    hand_fg_colour=0x678b8b,      hand_fg_alpha=1.0,
    txt_radius=40,
    txt_weight=0,                  txt_size=9.0,
    txt_fg_colour=0x678b8b,        txt_fg_alpha=0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=9.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
{
    name='cpu',                    arg='cpu6',                  max_value=100,
    x=100,                          y=130,
    graph_radius=18,
    graph_thickness=4,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
    hand_fg_colour=0x678b8b,      hand_fg_alpha=1.0,
    txt_radius=30,
    txt_weight=0,                  txt_size=9.0,
    txt_fg_colour=0x678b8b,        txt_fg_alpha=0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=9.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
{
    name='cpu',                    arg='cpu7',                  max_value=100,
    x=100,                          y=130,
    graph_radius=12,
    graph_thickness=4,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
    hand_fg_colour=0x678b8b,      hand_fg_alpha=1.0,
    txt_radius=4,
    txt_weight=0,                  txt_size=9.0,
    txt_fg_colour=0x678b8b,        txt_fg_alpha=0,
    graduation_radius=28,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=9.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
{
    name='memperc',                arg='',                      max_value=100,
    x=100,                          y=300,
    graph_radius=54,
    graph_thickness=10,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
    hand_fg_colour=0x678b8b,      hand_fg_alpha=1.0,
    txt_radius=42,
    txt_weight=0,                  txt_size=9.0,
    txt_fg_colour=0x678b8b,        txt_fg_alpha=0,
    graduation_radius=23,
    graduation_thickness=0,        graduation_mark_thickness=2,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.5,
    caption='',
    caption_weight=1,              caption_size=10.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
{
    name='fs_used_perc',           arg='/mnt/backups',                     max_value=100,
    x=100,                          y=470,
    graph_radius=54,
    graph_thickness=7,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
    hand_fg_colour=0x678b8b,      hand_fg_alpha=1.0,
    txt_radius=64,
    txt_weight=0,                  txt_size=9.0,
    txt_fg_colour=0x678b8b,        txt_fg_alpha=0,
    graduation_radius=23,
    graduation_thickness=0,        graduation_mark_thickness=2,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption='Backups',
    caption_weight=0.5,              caption_size=12.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
},
{
    name='fs_used_perc',           arg='/mnt/data/',                     max_value=100,
    x=100,                          y=470,
    graph_radius=42,
    graph_thickness=7,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
    hand_fg_colour=0x678b8b,      hand_fg_alpha=1.0,
    txt_radius=32,
    txt_weight=0,                  txt_size=9.0,
    txt_fg_colour=0x678b8b,        txt_fg_alpha=0,
    graduation_radius=23,
    graduation_thickness=0,        graduation_mark_thickness=2,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption='Data',
    caption_weight=0.5,              caption_size=12.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
},
{
    name='fs_used_perc',           arg='/',                     max_value=100,
    x=100,                          y=470,
    graph_radius=30,
    graph_thickness=7,
    graph_start_angle=180,
    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
    hand_fg_colour=0x678b8b,      hand_fg_alpha=1.0,
    txt_radius=22,
    txt_weight=0,                  txt_size=9.0,
    txt_fg_colour=0x678b8b,        txt_fg_alpha=0,
    graduation_radius=23,
    graduation_thickness=0,        graduation_mark_thickness=2,
    graduation_unit_angle=27,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption='Root',
    caption_weight=0.5,              caption_size=12.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
},
--{
--    name='downspeedf',           arg='wlan0',                     max_value=100,
--    x=70,                          y=660,
--    graph_radius=54,
--    graph_thickness=7,
--    graph_start_angle=180,
--    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
--    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
--    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
--    hand_fg_colour=0xEF5A29,       hand_fg_alpha=0,
--    txt_radius=64,
--    txt_weight=0,                  txt_size=9.0,
--    txt_fg_colour=0xEF5A29,        txt_fg_alpha=0,
--    graduation_radius=28,
--    graduation_thickness=0,        graduation_mark_thickness=1,
--    graduation_unit_angle=27,
--    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
--    caption='Down',
--    caption_weight=1,              caption_size=12.0,
--    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
--},
--{
--    name='upspeedf',           arg='wlan0',                     max_value=100,
--    x=70,                          y=660,
--    graph_radius=42,
--    graph_thickness=7,
--    graph_start_angle=180,
--    graph_unit_angle=2.7,          graph_unit_thickness=2.7,
--    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
--    graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
--    hand_fg_colour=0xEF5A29,       hand_fg_alpha=0,
--    txt_radius=30,
--    txt_weight=0,                  txt_size=9.0,
--    txt_fg_colour=0xEF5A29,        txt_fg_alpha=0,
--    graduation_radius=28,
--    graduation_thickness=0,        graduation_mark_thickness=1,
--    graduation_unit_angle=27,
--    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
--    caption='Up',
--    caption_weight=1,              caption_size=12.0,
--    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
--},
}

-------------------------------------------------------------------------------
--                                                                 rgb_to_r_g_b
-- converts color in hexa to decimal
--
function rgb_to_r_g_b(colour, alpha)
    return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

-------------------------------------------------------------------------------
--                                                            angle_to_position
-- convert degree to rad and rotate (0 degree is top/north)
--
function angle_to_position(start_angle, current_angle)
    local pos = current_angle + start_angle
    return ( ( pos * (2 * math.pi / 360) ) - (math.pi / 2) )
end


-------------------------------------------------------------------------------
--                                                              draw_gauge_ring
-- displays gauges
--
function draw_gauge_ring(display, data, value)
    local max_value = data['max_value']
    local x, y = data['x'], data['y']
    local graph_radius = data['graph_radius']
    local graph_thickness, graph_unit_thickness = data['graph_thickness'], data['graph_unit_thickness']
    local graph_start_angle = data['graph_start_angle']
    local graph_unit_angle = data['graph_unit_angle']
    local graph_bg_colour, graph_bg_alpha = data['graph_bg_colour'], data['graph_bg_alpha']
    local graph_fg_colour, graph_fg_alpha = data['graph_fg_colour'], data['graph_fg_alpha']
    local hand_fg_colour, hand_fg_alpha = data['hand_fg_colour'], data['hand_fg_alpha']
    local graph_end_angle = (max_value * graph_unit_angle) % 360

    -- background ring
    cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, 0), angle_to_position(graph_start_angle, graph_end_angle))
    cairo_set_source_rgba(display, rgb_to_r_g_b(graph_bg_colour, graph_bg_alpha))
    cairo_set_line_width(display, graph_thickness)
    cairo_stroke(display)

    -- arc of value
    local val = value % (max_value + 1)
    local start_arc = 0
    local stop_arc = 0
    local i = 1
    while i <= val do
        start_arc = (graph_unit_angle * i) - graph_unit_thickness
        stop_arc = (graph_unit_angle * i)
        cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
        cairo_set_source_rgba(display, rgb_to_r_g_b(graph_fg_colour, graph_fg_alpha))
        cairo_stroke(display)
        i = i + 1
    end
    local angle = start_arc

    -- hand
    start_arc = (graph_unit_angle * val) - (graph_unit_thickness * 2)
    stop_arc = (graph_unit_angle * val)
    cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
    cairo_set_source_rgba(display, rgb_to_r_g_b(hand_fg_colour, hand_fg_alpha))
    cairo_stroke(display)

    -- graduations marks
    local graduation_radius = data['graduation_radius']
    local graduation_thickness, graduation_mark_thickness = data['graduation_thickness'], data['graduation_mark_thickness']
    local graduation_unit_angle = data['graduation_unit_angle']
    local graduation_fg_colour, graduation_fg_alpha = data['graduation_fg_colour'], data['graduation_fg_alpha']
    if graduation_radius > 0 and graduation_thickness > 0 and graduation_unit_angle > 0 then
        local nb_graduation = graph_end_angle / graduation_unit_angle
        local i = 0
        while i < nb_graduation do
            cairo_set_line_width(display, graduation_thickness)
            start_arc = (graduation_unit_angle * i) - (graduation_mark_thickness / 2)
            stop_arc = (graduation_unit_angle * i) + (graduation_mark_thickness / 2)
            cairo_arc(display, x, y, graduation_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
            cairo_set_source_rgba(display,rgb_to_r_g_b(graduation_fg_colour,graduation_fg_alpha))
            cairo_stroke(display)
            cairo_set_line_width(display, graph_thickness)
            i = i + 1
        end
    end

    -- text
    local txt_radius = data['txt_radius']
    local txt_weight, txt_size = data['txt_weight'], data['txt_size']
    local txt_fg_colour, txt_fg_alpha = data['txt_fg_colour'], data['txt_fg_alpha']
    local movex = txt_radius * math.cos(angle_to_position(graph_start_angle, angle))
    local movey = txt_radius * math.sin(angle_to_position(graph_start_angle, angle))
    cairo_select_font_face (display, "ubuntu", CAIRO_FONT_SLANT_NORMAL, txt_weight)
    cairo_set_font_size (display, txt_size)
    cairo_set_source_rgba (display, rgb_to_r_g_b(txt_fg_colour, txt_fg_alpha))
    cairo_move_to (display, x + movex - (txt_size / 2), y + movey + 3)
    cairo_show_text (display, value)
    cairo_stroke (display)

    -- caption
    local caption = data['caption']
    local caption_weight, caption_size = data['caption_weight'], data['caption_size']
    local caption_fg_colour, caption_fg_alpha = data['caption_fg_colour'], data['caption_fg_alpha']
    local tox = graph_radius * (math.cos((graph_start_angle * 2 * math.pi / 360)-(math.pi/2)))
    local toy = graph_radius * (math.sin((graph_start_angle * 2 * math.pi / 360)-(math.pi/2)))
    cairo_select_font_face (display, "ubuntu", CAIRO_FONT_SLANT_NORMAL, caption_weight);
    cairo_set_font_size (display, caption_size)
    cairo_set_source_rgba (display, rgb_to_r_g_b(caption_fg_colour, caption_fg_alpha))
    cairo_move_to (display, x + tox + 1, y + toy + 5)
    -- bad hack but not enough time !
    if graph_start_angle < 105 then
        cairo_move_to (display, x + tox - 30, y + toy + 1)
    end
    cairo_show_text (display, caption)
    cairo_stroke (display)
end


-------------------------------------------------------------------------------
--                                                               go_gauge_rings
-- loads data and displays gauges
--
function go_gauge_rings(display)
    local function load_gauge_rings(display, data)
        local str, value = '', 0
        str = string.format('${%s %s}',data['name'], data['arg'])
        str = conky_parse(str)
        value = tonumber(str)
        draw_gauge_ring(display, data, value)
    end
    
    for i in pairs(gauge) do
        load_gauge_rings(display, gauge[i])
    end
end

-------------------------------------------------------------------------------
--                                                                         MAIN
function conky_main()
    if conky_window == nil then 
        return
    end

    local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
    local display = cairo_create(cs)
    
    local updates = conky_parse('${updates}')
    update_num = tonumber(updates)
    
    if update_num > 5 then
        go_gauge_rings(display)
    end

    cairo_surface_destroy(cs)
    cairo_destroy(display)

end

BL-atomfeed.sh

#!/bin/bash

URL="https://forums.bunsenlabs.org/extern.php?action=feed&type=atom"

# extract text between "CDATA[" and "]]" (Post title text)
# cut first line with tail
# keep first 6 lines from result of tail

while ! pidof nm-applet &>/dev/null;do 
    exit
done

curl -s  "$URL" | grep "<title" | grep -o -P '(?<=CDATA\[).*(?=\]\])'| tail -n +2 | head -n 6

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

#665 2017-07-16 18:55:05

devnull
Member
Registered: 2017-06-29
Posts: 69

Re: Show us your conky

Here is my conky. I have a netbook so it is a small desktop

KJ0jWFU.jpg

This are my configuration files.

I am just a noob and probably have done a mess with the confs, but there are couple of things I'm proud of:
* the TODO. It just reads from a todo.txt, and I've set up the alias with a nano todo.txt , so it's just a second to keep it updated

* the curl and jq to get the prices of the cryptocurrencies from kraken.


right conky

# conky configuration
##############################################
# Settings
##############################################
use_xft yes
xftfont Liberation Sans:size=9
xftalpha 0
update_interval 1.0
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_argb_visual yes
own_window_colour 000000
own_window_argb_value 100


## Colori
color1 ffffff #bianco
color2 29C336 #forestGreen

###  LUA Settings  ##############################

lua_load $HOME/.config/conky/LUA/draw-bg.lua
lua_draw_hook_pre draw_bg 15 0 0 0 0 0x000000 0.4
############################ End LUA Settings ###

############################ Window ###
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 300
maximum_width 200
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color ffffff
default_shade_color 000000
default_outline_color 828282
alignment top_right
gap_x 45
gap_y 20
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no


############################# End Window ###
#  Output
##############################################

TEXT
${font sans-serif:bold:size=10}${alignc}${color2} S Y S T E M
${color1}${hr}
${font sans-serif:bold:size=8}IP: $alignr ${font sans-serif:normal:size=8}${addr wlan0}

${font sans-serif:bold:size=8}UPTIME: ${font sans-serif:normal:size=8}$alignr$uptime_short

${font sans-serif:bold:size=10}${alignc}${color2}P R O C E S S O R S
${color1}${hr}
TEMP: $alignr ${execpi 5 sensors | grep "Core 0" | awk '{print $3}' | cut -c2-3}${iconv_start UTF-8 ISO_8859-1}° ${iconv_stop}C  ${font sans-serif:normal:size=8}
${font sans-serif:normal:size=8}${cpugraph cpu0}
CPU0: ${cpu cpu0}% ${cpubar cpu0}
CPU1: ${cpu cpu1}% ${cpubar cpu1}

${font sans-serif:bold:size=10}${alignc}${color2}M E M O R Y
${color1}${hr}
${font sans-serif:normal:size=8 color=ff5f5f}RAM $alignc $mem / $memmax $alignr $memperc%
$membar
SWAP $alignc ${swap} / ${swapmax} $alignr ${swapperc}%
${swapbar}

${font sans-serif:bold:size=10}${alignc}${color2}S T O R A G E
${color1}${hr}
${font sans-serif:normal:size=8}root ${fs_used /} / ${fs_size /}

${fs_bar /}
${font sans-serif:normal:size=8}home ${fs_used /home/} / ${fs_size /home}
${fs_bar /home/}

${font sans-serif:bold:size=10}${alignc}${color2}T O P   P R O C E S S E S
${color1}${hr}
${font sans-serif:normal:size=8}${top_mem name 1}${alignr}${top mem 1} %
${top_mem name 2}${alignr}${top mem 2} %
$font${top_mem name 3}${alignr}${top mem 3} %
$font${top_mem name 4}${alignr}${top mem 4} %
$font${top_mem name 5}${alignr}${top mem 5} %

Left conky

##################### Window settings #######
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager,sticky
own_window_colour 000000
own_window_argb_visual yes
own_window_class Conky
own_window_title Bunsen Labs Default Left Conky
background yes

### ARGB can be used for real transparency

 own_window_argb_visual yes # Options: yes or no
 own_window_argb_value 100

minimum_size 200 | 500  ### width | height
#maximum_width 200 500
#minimum_height 500

gap_x 45    ### left | right
gap_y 20    ### up | down

alignment tl
#######################  End Window Settings  ###


###  Font Settings  #############################
# Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont sans serif:size=10
#xftfont Liberation Mono:bold:size=9
#xftfont Liberation Sans:size=11



# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 0
# Force UTF8? requires XFT ###
override_utf8_locale yes

uppercase no
#########################  End Font Settings  ###
###  Color Settings  ############################
draw_shades no #yes
default_shade_color 000000

draw_outline no # amplifies text if yes
default_outline_color 000000

default_color ffffff # White
color0 B0E0E6 # PowderBlue
color1 ffffff # White
color2 D8BFD8 # Thistle
color3 9ACD32 # YellowGreen
color4 FFA07A # LightSalmon
color5 1FE530 # ForestGreen
color6 00BFFF # DeepSkyBlue
color7 5F9EA0 # CadetBlue
color8 BDB76B # DarkKhaki
color9 CD5C5C # IndianRed
########################  End Color Settings  ###

###  Borders Section  ###########################
draw_borders no
# 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 Section  ###

###  Miscellaneous Section  #####################
# Boolean value, if true, Conky will be forked to background when started.
background yes

# Options: right, left or none
use_spacer none

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
text_buffer_size 6144

# Subtract (file system) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

# Imlib2 image cache size, in bytes. Default 4MiB Increase this value if you use
# $image lots. Set to 0 to disable the image cache.
imlib_cache_size 0

# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes


 


#################  End Miscellaneous Section  ###
###  LUA Settings  ##############################

lua_load $HOME/.config/conky/LUA/draw-bg.lua
lua_draw_hook_pre draw_bg 15 0 0 0 0 0x000000 0.4

############################ End LUA Settings ###

update_interval 1

##############################################
#  Output
##############################################
TEXT
${font Monospace:bold:size=10}${alignc}${color5}${time %X}
${color1}${hr}
${goto 27}${color1}${execpi 7200 LAR=`date +%-d`; ncal -bh | sed 's/\<'$LAR'\>/${color5}&${color1}/' | sed ':a;N;$!ba;s/\n/\n${goto 27}/g'}${color}${font}
${color1}${hr}
${font Monospace:bold:size=10}${alignc}${color5}C R Y P T O
${color1}${hr}
${font Monospace:normal:size=8}${color1} ETH ${texeci 300 curl https://api.kraken.com/0/public/Ticker?pair=XETHZEUR | jq ".result.XETHZEUR.c[0]" | grep -oE "[0-9]*\....."}
${font Monospace:normal:size=8}${color1} BTC ${texeci 300 curl https://api.kraken.com/0/public/Ticker?pair=XXBTZEUR | jq ".result.XXBTZEUR.c[0]" | grep -oE "[0-9]*\....."}
${font Monospace:normal:size=8}${color1} LTC ${texeci 300 curl https://api.kraken.com/0/public/Ticker?pair=XLTCZEUR | jq ".result.XLTCZEUR.c[0]" | grep -oE "[0-9]*\....."}
${font Monospace:normal:size=8}${color1} EOS ${texeci 300 curl https://api.kraken.com/0/public/Ticker?pair=EOSEUR | jq ".result.EOSEUR.c[0]" | grep -oE "[0-9]*\....."}
${color1}${hr}
${font Monospace:bold:size=10}${alignc}${color5}T O D O	 
${color1}${hr}
${font sans-serif:normal:size=8}${tail /home/tombom/.cdf.txt 30 (2)}

Last edited by devnull (2017-07-16 19:20:06)

Offline

#666 2017-07-17 11:04:41

Steve
Member
Registered: 2017-01-03
Posts: 642

Re: Show us your conky

Can someone please help (calling sector11 wink) with this conky problem im having?

I have a conky i want as a bottom bar, just a simple one but i cant get the back ground image i created for it to work. Not sure what im doing wrong. No matter where i place the images position it does not show up. Im not sure if i am positioning it correctly or have the right size layout.

conkyrc:

background no
use_xft yes
xftfont Raleway:semibold:size=10
update_interval 0.5
own_window yes
own_window_type desktop
own_window_title no
own_window_transparent yes
own_window_colour 000000
own_window_hints undecorated,below,skip_taskbar,skip_pager, sticky
own_window_argb_visual yes
double_buffer yes
minimum_size 1246 1
maximum_width 1200
maximum_height 800
draw_shades no
draw_outline no
draw_borders no_buffers
draw_graph_borders no
default_color ffffff
default_shade_color 000000
default_outline_color ffffff
alignment top_left
no_buffers yes
uppercase no
override_utf10_locale no
use_spacer left
border_inner_margin 0
override_utf10_locale yes
pad_percents 2
temperature_unit celsius

gap_x 75
gap_y 740

color1 ffffff

TEXT
${image ~/.config/conky/images/darkbar.png -p 0,3 -s 75x1400}\
${font Dosis:bold:size=10}${goto 120}CPU$font>>  ${freq_g cpu0}% Ghz \
${goto 260} ${font Raleway:bold:size=10}RAM$font >> $mem \
${goto 380} ${font Raleway:bold:size=10}SWAP$font >> $swap \
${goto 500} ${font Raleway:bold:size=10}DOWNLOAD$font >> ${downspeed usb0}/s ${goto 650} (${totaldown usb0}) \
${goto 740} ${font Raleway:bold:size=10}UPLOAD$font >> ${upspeed usb0}/s ${goto 870} (${totalup usb0}) \
${color1}${font Raleway:bold:size=12}${goto 950}${time %a, %d/%m/%Y}$color$font

Screenshot, conky is on the bottom.
Screenshot-170717-205447.th.png

darkbar.png (has 65% transparency) image i am trying to have for the conkies background.
darkbar.md.png

Edit: my screen resolution is 1366 x 768 laptop.

Last edited by Steve (2017-07-17 11:07:59)

Offline

#667 2017-07-17 11:30:29

Steve
Member
Registered: 2017-01-03
Posts: 642

Re: Show us your conky

@ Devnull, great looking conkies.

Offline

#668 2017-07-17 17:52:42

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,645

Re: Show us your conky

Why does it have to be the darkbar.png?

It would be the same with Lua
A test (without system outputs)
steve1.th.jpg or steve2.th.jpg

mod.conkyrc

background no
use_xft yes
xftfont Raleway:semibold:size=10
update_interval 1
own_window yes
own_window_type normal
own_window_title steve
own_window_transparent yes
#own_window_colour 000000
own_window_hints undecorated,below,skip_taskbar,skip_pager, #sticky
own_window_argb_visual yes
double_buffer yes
minimum_size 1400 50
#maximum_width 1200
#maximum_height 800
draw_shades no
draw_outline no
draw_borders no_buffers
draw_graph_borders no
default_color ffffff
default_shade_color 000000
default_outline_color ffffff
alignment bottom_left
no_buffers yes
uppercase no
use_spacer left
border_inner_margin 0
override_utf8_locale yes
pad_percents 2
temperature_unit celsius

gap_x 50
gap_y 10

color1 ffffff
#---LUA---#
lua_load ~/LUA/draw-bg.lua

TEXT
${lua conky_draw_bg 10 0 0 0 0 0x000000 0.4}\
${font Dosis:bold:size=10}${goto 120}CPU$font>>  ${freq_g cpu0}% Ghz \
${goto 260} ${font Raleway:bold:size=10}RAM$font >> $mem \
${goto 380} ${font Raleway:bold:size=10}SWAP$font >> $swap \
${goto 500} ${font Raleway:bold:size=10}DOWNLOAD$font >> ${downspeed usb0}/s ${goto 650} (${totaldown usb0}) \
${goto 740} ${font Raleway:bold:size=10}UPLOAD$font >> ${upspeed usb0}/s ${goto 870} (${totalup usb0}) \
${color1}${font Raleway:bold:size=12}${goto 950}${time %a, %d/%m/%Y}$color$font 

draw-bg.lua

--[[Background originally by londonali1010 (2009)
    ability to set any size for background mrpeachy 2011
    ability to set variables for bg in conkyrc dk75

  the change is that if you set width and/or height to 0
  then it assumes the width and/or height of the conky window

so:

Above and After TEXT  (requires a composite manager or it blinks!)

 lua_load ~/wea_conky/draw_bg.lua
 TEXT
 ${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2}

OR Both above TEXT (no composite manager required - no blinking!)

 lua_load ~/wea_conky/draw_bg.lua
 lua_draw_hook_pre draw_bg 10 0 0 0 0 0x000000 0.2
 TEXT

Note
${lua conky_draw_bg 20 0 0 0 0 0x000000 0.2}
  See below:        1  2 3 4 5 6        7

${lua conky_draw_bg corner_radius x_position y_position width height color alpha}

covers the whole window and will change if you change the minimum_size setting

1 = 20             corner_radius
2 = 0             x_position l|r
3 = 0             y_position u|d
4 = 0             width
5 = 0             height
6 = 0x000000      color
7 = 0.4           alpha

######### calendar function ##################################################

then to use it, you activate the calendar function BELOW TEXT like this

${lua luacal {settings}}

#${lua luacal {x=,y=,tf="",tfs=,tc=,ta=,bf="",bfs=,bc=,ba=,hf="",hfs=,hc=,ha=,sp="",gh=,gt=,gv=,sd=}}
#    x=x position top left
#    y=y position top left
#    tf=title font, eg "mono" must be in quotes
#    tfs=title font size
#    tc=title color
#    ta=title alpha
#    bf=body font, eg "mono" must be in quotes
#    bfs=body font size
#    bc=body color
#    ba=body alpha
#    hf=highlight font, eg "mono" must be in quotes
#    hfs=highlight font size
#    hc=highlight color
#    ha=highlight alpha
#    sp=spacer, eg " " or sp="0"... 0,1 or 2 spaces can help with positioning of non-monospaced fonts

##### GAPS #####
#    gt=gap from title to body
#    gh=gap horizontal between columns
#    gv=gap vertical between rows
#    sd=start day, 0=Sun, 1=Mon

#    hstyle = heading style, 0=just days, 1=date insert
#    tdf=title date font, eg "mono" must be in quotes
#    tdfs=title date font size
#    tdc=title date color
#    tda=title date alpha

# test line
-- ${lua luacal {x=20,y=100,tf="Monofur",tfs=24,tc=0xFFDEAD,ta=1,bf="Monofur",bfs=24,bc=0xFFDEAD,ba=1,hf="Monofur",hfs=24,hc=0x00BFFF,ha=1,sp="0",gh=60,gt=26,gv=20,sd=0,hstyle=1,tdf="Monofur",tdfs=24,tdc=0x00BFFF,tda=1}}


]]

require 'cairo'
local    cs, cr = nil
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(r,x,y,w,h,color,alpha)
if conky_window == nil then return end
if cs == nil then cairo_surface_destroy(cs) end
if cr == nil then cairo_destroy(cr) end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
local cr = cairo_create(cs)
w=w
h=h
if w=="0" then w=tonumber(conky_window.width) end
if h=="0" then h=tonumber(conky_window.height) end
cairo_set_source_rgba (cr,rgb_to_r_g_b(color,alpha))
--top left mid circle
local xtl=x+r
local ytl=y+r
--top right mid circle
local xtr=(x+r)+((w)-(2*r))
local ytr=y+r
--bottom right mid circle
local xbr=(x+r)+((w)-(2*r))
local ybr=(y+r)+((h)-(2*r))
--bottom right mid circle
local xbl=(x+r)
local ybl=(y+r)+((h)-(2*r))
-----------------------------
cairo_move_to (cr,xtl,ytl-r)
cairo_line_to (cr,xtr,ytr-r)
cairo_arc(cr,xtr,ytr,r,((2*math.pi/4)*3),((2*math.pi/4)*4))
cairo_line_to (cr,xbr+r,ybr)
cairo_arc(cr,xbr,ybr,r,((2*math.pi/4)*4),((2*math.pi/4)*1))
cairo_line_to (cr,xbl,ybl+r)
cairo_arc(cr,xbl,ybl,r,((2*math.pi/4)*1),((2*math.pi/4)*2))
cairo_line_to (cr,xtl-r,ytl)
cairo_arc(cr,xtl,ytl,r,((2*math.pi/4)*2),((2*math.pi/4)*3))
cairo_close_path(cr)
cairo_fill (cr)
------------------------------------------------------------
cairo_surface_destroy(cs)
cairo_destroy(cr)
return ""
end
-- ###### calendar function ##################################################
function conky_luacal(caltab) -- {x=,y=,tf="",tfs=,tc=,ta=,bf="",bfs=,bc=,ba=,hf="",hfs=,hc=,ha=,sp="",gt=,gh=,gv=,sd=,hstyle=,tdf=,tdfs=,tdc=,tda=}
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)
local cr = cairo_create(cs)
--############################################################################
if caltab.x==nil then
caltab=loadstring("return" .. caltab)()
end
local cal_x=caltab.x
local cal_y=caltab.y
local tfont=caltab.tf		or "mono"
local tfontsize=caltab.tfs	or 12
local tc=caltab.tc			or 0xffffff
local ta=caltab.ta			or 1
local bfont=caltab.bf		or "mono"
local bfontsize=caltab.bfs	or 12
local bc=caltab.bc			or 0xffffff
local ba=caltab.ba			or 1
local hfont=caltab.hf		or "mono"
local hfontsize=caltab.hfs	or 12
local hc=caltab.hc			or 0xff0000
local ha=caltab.ha			or 1
local spacer=caltab.sp		or " "
local gaph=caltab.gh		or 20
local gapt=caltab.gt		or 15
local gapl=caltab.gv		or 15
local sday=caltab.sd		or 0
local hstyle=caltab.hstyle	or 0
--convert colors
--local font=string.gsub(font,"_"," ")
local tred,tgreen,tblue,talpha=rgb_to_r_g_b(tc,ta)
--main body text color
local bred,bgreen,bblue,balpha=rgb_to_r_g_b(bc,ba)
--highlight text color
local hred,hgreen,hblue,halpha=rgb_to_r_g_b(hc,ha)
--############################################################################
--calendar calcs
local year=os.date("%G")
local today=tonumber(os.date("%d"))
local t1 = os.time( {    year=year,month=03,day=01,hour=00,min=0,sec=0} );
local t2 = os.time( {    year=year,month=02,day=01,hour=00,min=0,sec=0} );
local feb=(os.difftime(t1,t2))/(24*60*60)
local monthdays={ 31, feb, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }
local day=tonumber(os.date("%w"))+1-sday
local day_num = today
local remainder=day_num % 7
local start_day=day-(day_num % 7)
if start_day<0 then start_day=7+start_day end
local month=os.date("%m")
local mdays=monthdays[tonumber(month)]
local x=mdays+start_day
local dnum={}
local dnumh={}
if mdays+start_day<36 then
dlen=35
plen=29
else
dlen=42
plen=36
end
for i=1,dlen do
    if i<=start_day then
    dnum[i]="  "
    else
    dn=i-start_day
        if dn=="nil" then dn=0 end
        if dn<=9 then dn=(spacer .. dn) end
        if i>x then dn="" end
        dnum[i]=dn
        dnumh[i]=dn
        if dn==(spacer .. today) or dn==today then
        dnum[i]=""
        end
        if dn==(spacer .. today) or dn==today then
        dnumh[i]=dn
        place=i
        else dnumh[i]="  "
        end
    end
end--for
cairo_select_font_face (cr, tfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, tfontsize);
cairo_set_source_rgba (cr,tred,tgreen,tblue,talpha)
local extents=cairo_text_extents_t:create()
tolua.takeownership(extents)
if hstyle==0 then
    if tonumber(sday)==0 then
    dys={"SU","MO","TU","WE","TH","FR","SA"}
    else
    dys={"MO","TU","WE","TH","FR","SA","SU"}
    end
    --draw calendar titles
elseif hstyle==1 then
    if tonumber(sday)==0 then
    dys={"SU","MO"," ","  ","  ","FR","SA"}
    cairo_text_extents(cr,"MO",extents)
    local s=extents.x_advance+gaph
    local f=gaph*5
    local tdfont=caltab.tdf        or "mono"
    local tdfontsize=caltab.tdfs    or 12
    local tdc=caltab.tdc        or 0xffffff
    local tda=caltab.tda        or 1
    cairo_select_font_face (cr, tdfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, tdfontsize);
    local tdred,tdgreen,tdblue,tdalpha=rgb_to_r_g_b(tdc,tda)
    cairo_set_source_rgba (cr,tdred,tdgreen,tdblue,tdalpha)
    local insert=os.date("%b %y")
    cairo_text_extents(cr,insert,extents)
    local w=extents.x_advance
    cairo_move_to (cr, cal_x+((s+f)/2)-(w/2), cal_y)
    cairo_show_text (cr,insert)
    cairo_stroke (cr)
    else
    dys={"MO","TU"," ","  ","  ","SA","SU"}
    cairo_text_extents(cr,"TU",extents)
    local s=extents.x_advance+gaph
    local f=gaph*5
    local tdfont=caltab.tdf        or "mono"
    local tdfontsize=caltab.tdfs    or 12
    local tdc=caltab.tdc        or 0xffffff
    local tda=caltab.tda        or 1
    cairo_select_font_face (cr, tdfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, tdfontsize);
    local tdred,tdgreen,tdblue,tdalpha=rgb_to_r_g_b(tdc,tda)
    cairo_set_source_rgba (cr,tdred,tdgreen,tdblue,tdalpha)
    local insert=os.date("%b %y")
    cairo_text_extents(cr,insert,extents)
    local w=extents.x_advance
    cairo_move_to (cr, cal_x+((s+f)/2)-(w/2), cal_y)
    cairo_show_text (cr,insert)
    cairo_stroke (cr)
    end
end
--draw calendar titles
for i=1,7 do
cairo_select_font_face (cr, tfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, tfontsize);
cairo_set_source_rgba (cr,tred,tgreen,tblue,talpha)
cairo_move_to (cr, cal_x+(gaph*(i-1)), cal_y)
cairo_show_text (cr, dys[i])
cairo_stroke (cr)
end
--draw calendar body
cairo_select_font_face (cr, bfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, bfontsize);
cairo_set_source_rgba (cr,bred,bgreen,bblue,balpha)
for i=1,plen,7 do
local fn=i
    for i=fn,fn+6 do
    cairo_move_to (cr, cal_x+(gaph*(i-fn)),cal_y+gapt+(gapl*((fn-1)/7)))
    cairo_show_text (cr, dnum[i])
    cairo_stroke (cr)
    end
end
--highlight
cairo_select_font_face (cr, hfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, hfontsize);
cairo_set_source_rgba (cr,hred,hgreen,hblue,halpha)
for i=1,plen,7 do
local fn=i
    for i=fn,fn+6 do
    cairo_move_to (cr, cal_x+(gaph*(i-fn)),cal_y+gapt+(gapl*((fn-1)/7)))
    cairo_show_text (cr, dnumh[i])
    cairo_stroke (cr)
    end
end
--############################################################################
caltab=nil
dlen=nil
plen=nil
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
return ""
end
-- end main function ######################################################### 

Last edited by unklar (2017-07-17 17:54:35)

Offline

#669 2017-07-17 20:06:37

devnull
Member
Registered: 2017-06-29
Posts: 69

Re: Show us your conky

Steve wrote:

@ Devnull, great looking conkies.

thanks, I'm happy you like it!

Offline

#670 2017-07-17 20:55:59

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

Re: Show us your conky

Been out just got back...

Steve wrote:

as a bottom bar

But:

alignment top_left

That's not the bottom?  Use:

alignment bottom_middle

Then you use:

gap_x 75
gap_y 740

May I suggest:

gap_x 0
gap_y 2 ##<<--- a small number here just to get it off the very edge

With alignment bottom_middle and those gap values you will have a conky centred on the bottom.

Now, you have this:

own_window yes
own_window_type desktop
own_window_title no
own_window_transparent yes
own_window_colour 000000
own_window_hints undecorated,below,skip_taskbar,skip_pager, sticky
own_window_argb_visual yes

You are telling conky to use a fake transparent window (own_window_transparent yes) and then saying to use ARGB for real transparency (own_window_argb_visual yes) but not giving it a value?

So try this:

own_window yes
own_window_type desktop
own_window_title Steve's Conky
own_window_transparent no #it's a fake transparency anyway
own_window_colour 000000
own_window_hints undecorated,below,skip_taskbar,skip_pager, sticky
own_window_argb_visual yes
own_window_argb_value 80

Now you'll have a semi-dark transparent background the same size as the conky window without the image.  Speaking of which, you have:

minimum_size 1246 1
maximum_width 1200
maximum_height 800 <<--- does not exist with this version of conky and is badly coded for conky v1.10

and you have a maximum width smaller then the minimum width
minimum_size = width height - I would not worry about the height so much your font size will fix that for you.  The "minimium width" should be just a little longer then the actual "maximum" output of the conky.

minimum_size 1250 0
maximum_width 1250

Next, you say no to shades and no to outlines then you define their colours:

draw_shades no
draw_outline no
draw_borders no_buffers
draw_graph_borders no
default_color ffffff
default_shade_color 000000
default_outline_color ffffff

you really should give it a shade - easier to see on light background (opinion)

draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000
draw_borders no_buffers
draw_graph_borders no
default_color ffffff

And then we have the fun one ...

override_utf10_locale no
use_spacer left
border_inner_margin 0
override_utf10_locale yes

You say no to: override_utf10_locale and two lines later you say: yes.
HOWEVER: override_utf10_locale is an illegal command in conky -> override_utf8_locale on the other hand is just fine.

NOTE:
If you have two commands contradicting each other the last one conky reads (from top to bottom) is the one conky will active, so use this:

# override_utf8_locale no <<--- or simply remove the line.
use_spacer left
border_inner_margin 0
override_utf8_locale yes

Hope that helps.

Also unklar's idea is a good one too - especially in your want rounded corners.

EDIT:

Test with this as well:

border_inner_margin 5

make sure your text says off the actual edge of the conky by 5 pixels.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#671 2017-07-18 08:27:28

Steve
Member
Registered: 2017-01-03
Posts: 642

Re: Show us your conky

@ unklar, thanks for the suggestion but i dont know enough about lua to do that and i would like to know what im doing before i do it instead of copy pasting. I will look into it though.

@ Sector11, i borrowed that conky from here: http://www.deviantart.com/art/MHoC-Mini … -414600149

Thanks for your instructions, its nice to know what is going on with those commands.

I think it is now fixed apart from a few values i added in and changed a bit of the layout and left some space for a few more read outs. I would like the darkbar to go all the way to the edges but i cant seem to figure that out.


Screenshot-180717-182426.th.png

background no
use_xft yes
xftfont Raleway:semibold:size=10
update_interval 0.5
own_window yes
own_window_type desktop
own_window_title steves conky
own_window_transparent no
own_window_colour 000000
own_window_hints undecorated,below,skip_taskbar,skip_pager, sticky
own_window_argb_visual yes
own_window_argb_value 80
double_buffer yes
minimum_size 1250 0
maximum_width 1450
draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000
draw_borders no_buffers
draw_graph_borders no
default_color ffffff
alignment bottom_middle
no_buffers yes
uppercase no
use_spacer left
border_inner_margin 5
pad_percents 2
temperature_unit celsius

gap_x 0
gap_y -10

color1 ffffff

TEXT
${image ~/.config/conky/images/darkbar.png -p 1,1 -s 50x1400}\
${font Raleway:bold:size=10}${goto 10}CPU$font: ${freq_g cpu0}% Ghz\
${goto 260} ${font Raleway:bold:size=10}${goto 150}RAM$font: $mem \
${goto 380} ${font Raleway:bold:size=10}${goto 275}SWAP$font:$swap \
${goto 500} ${font Raleway:bold:size=10}${goto 385}DOWNLOAD$font: ${goto 470} ${totaldown usb0} \
${goto 740} ${font Raleway:bold:size=10}${goto 565}UPLOAD$font: ${goto 625}${totalup usb0} \
${color1}${font Raleway:bold:size=12}${goto 1115}${time %a, %d/%m/%Y}$color$font

Last edited by Sector11 (2017-07-18 12:51:38)

Offline

#672 2017-07-18 09:28:21

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,645

Re: Show us your conky

Steve wrote:

@ unklar, thanks for the suggestion but i dont know enough about lua to do that and i would like to know what im doing before i do it instead of copy pasting. I will look into it though.

I understand you.  smile
Within the lua-script

--[[

]]

stands, what the commands do.  wink

Offline

#673 2017-07-18 14:01:19

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

Re: Show us your conky

Steve in another post wrote:

Edit: my screen resolution is 1366 x 768 laptop.

Change:

minimum_size 1250 0
maximum_width 1450

to

minimum_size 1366 0
maximum_width 1366

and the conky will be as wide as your screen.  Now you'll have to play with the goto values to space the elements better.

BTW, take the image out, your do not need it, these lines will give you your shading:

own_window_transparent no
own_window_argb_visual yes
own_window_argb_value 80

If you want it darker change 80 to 150 as an example.

Remember I mentioned if you have two commands that contradict each other conky will be using the second one (top to bottom)  - that was for above TEXT.  Well below TEXT conky reads the lines from top to bottom and well as left to right, so with this line:

${goto 260} ${font Raleway:bold:size=10}${goto 150}RAM$font: $mem \

it's the same thing, it's going to use ${goto 150} so change those to use the proper goto's

${goto 150}${font Raleway:bold:size=10}RAM$font: $mem \

I'm running 3 instances of your conky here:
top one: 1920 wide with ARGB value of 80
middle one: 1920 wide with ARGB value of 150
bottom one: 1366 wide with ARGB value of 80  <--- your screen width

2017-07-18_104849_Scrot11.th.jpg

Nice simple conky.  I like it.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#674 2017-07-19 08:07:49

Steve
Member
Registered: 2017-01-03
Posts: 642

Re: Show us your conky

Thanks again Sector11, i thought there was something not quite right with those goto tags. I did what you said corrected the size/width values and upped the argb value to 150 and like this darker shade better,got rid of the image, now working as i wanted it to.

Text now looks tidier than before too.

background no
use_xft yes
xftfont Raleway:semibold:size=10
update_interval 0.5
own_window yes
own_window_type desktop
own_window_title steves conky
own_window_transparent no
own_window_colour 000000
own_window_hints undecorated,below,skip_taskbar,skip_pager, sticky
own_window_argb_visual yes
own_window_argb_value 150
double_buffer yes
minimum_size 1366 0
maximum_width 1366
draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000
draw_borders no_buffers
draw_graph_borders no
default_color ffffff
alignment bottom_middle
no_buffers yes
uppercase no
use_spacer left
border_inner_margin 5
pad_percents 2
temperature_unit celsius

gap_x 0
gap_y -10

color1 ffffff

TEXT
${font Raleway:bold:size=10}${goto 15}CPU$font: ${freq_g cpu0}% Ghz      |\
${goto 150} ${font Raleway:bold:size=10}RAM$font: $mem       |\
${goto 275} ${font Raleway:bold:size=10}SWAP$font:$swap      |\
${goto 390} ${font Raleway:bold:size=10}DOWNLOAD$font:${totaldown usb0}       |\
${goto 555} ${font Raleway:bold:size=10}UPLOAD$font:${totalup usb0}       |\
${goto 705} ${font Raleway:bold:size=10}Root$font:${fs_used /} ~ ${fs_size /}       |\
${goto 885} ${font Raleway:bold:size=10}Home$font:${fs_used /home} ~ ${fs_size /home} \
${goto 1225}${color1}${font Raleway:bold:size=12}${time %a, %d/%m/%Y}$color$font

Here is a screenshot: Screenshot-190717-181250.th.png

Cheers

Last edited by Steve (2017-07-19 08:16:55)

Offline

#675 2017-07-19 13:16:48

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,645

Re: Show us your conky

^ conky and speedtest  smile


As you know, the speedtest can also be displayed in Conky.
Just like here:
2017-07-19-14-25-49_scrot.th.pngconkyspeedrc

background no
use_xft yes
#xftfont monospace:size=10
xftfont monofur:size=10
xftalpha 1
total_run_times 0
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager  #sticky,
own_window_class Conky
own_window_title Speedtest
own_window_argb_visual yes
#own_window_argb_value 80
double_buffer yes
draw_borders no
border_inner_margin 5  #margin between border and text
border_outer_margin 0  #margin between border and window edge
border_width 5  #border thickness
draw_outline no
draw_graph_borders yes
stippled_borders 0

default_color cyan
default_shade_color black
default_outline_color white
alignment top_left
gap_x 10
gap_y 90
cpu_avg_samples 10
override_utf8_locale yes

minimum_size 160 100
maximum_width 160
update_interval 21600 #86400

#--LUA--#
#lua_load ~/Lua/draw-bg.lua

TEXT
#${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2}
#leet chars: ┤┤└└┴┴┐┐││┘┘┌┌├├┬┬┼┼┴┴── ││ ▽▼△▲▵▴▾▿
┌───────────────┐
│ SPEEDTEST.NET │
└───────────────┘
${exec speedtest --simple --server 10963}
${exec notify-send -i network-transmit-receive "Speedtest Completed"} 

With the command

speedtest-cli --share

you get a link with a picture2017-07-19-14-27-38_scrot.th.png
speed.conkyrc

#pkill -xf "conky -c /pfad/zum/conky" &
# Hintergrund
background yes  #no

# Schrift
use_xft yes
xftfont terminus:size=8   
xftalpha 0.2

# Aktualisierung und Fenster von Conky
update_interval 3 #1         
total_run_times 0         
own_window yes            
own_window_type normal    
own_window_transparent yes  #no
own_window_hints undecorated,below,skip_taskbar,skip_pager  #sticky,
own_window_class conky    
own_window_argb_visual yes
#own_window_argb_value 250
#own_window_colour 000000  
own_window_title speed    

# Buffers
double_buffer yes        
no_buffers yes           

cpu_avg_samples 2
net_avg_samples 2

# Rahmen
draw_shades no           
draw_outline no
draw_borders no          
draw_graph_borders no    
border_inner_margin 0    
border_outer_margin 0    
stippled_borders 0         

# Farben
default_color white      
default_color black      
color0 ffffff            
color1 b22222


# Alignment              
#alignment top_left      #tl
#alignment top_right     #tr
#alignment top_middle    #tm
#alignment bottom_left   #bl
#alignment bottom_right  #br
#alignment bottom_middle #bm
#alignment middle_left   #ml
#alignment middle_right  #mr
#alignment middle_middle #mm
alignment br


uppercase no             
use_spacer none          
text_buffer_size 4096    
imlib_cache_size 0
override_utf8_locale yes 

# Fenstergrösse
minimum_size 300 135  #350 180     
#maximum_width 350       
gap_x 10                  
gap_y 350                

TEXT

#${texeci 3600 /home/unklar/speedtest-cli --simple}
#${texeci 3600 /home/unklar/speedtest-cli | awk '/load:/{a[i++]=$0} END {for(i in a) printf a[i]"     "}'}


${image /home/unklar/S11/speedtest/images/6467101080.png -p 0,0 -s 300x135}

I'm just wondering if it's possible this image is similar to the @loutch
and @ragamatrix with their scripts "nasa_day.sh" make it show in the conky.
Example:

#!/bin/bash
#ragamatrix'script modified#
IMG="/tmp/image_nasa.jpg"
IMGPNG="/tmp/image_nasa.png"

test=`curl -s http://www.nasa.gov/rss/dyn/image_of_the_day.rss | grep -m1 "<enclosure" | sed 's/^.*url="//' | sed 's/" len.*$//'` && wget -O $IMG $test
convert $IMG -resize 640x360 $IMGPNG

convert  $IMGPNG \
\( +clone  -alpha extract \
       -draw 'fill black polygon 0,0 0,15 15,0 fill white circle 15,15 15,0' \
        \( +clone -flip \) -compose Multiply -composite \
        \( +clone -flop \) -compose Multiply -composite \
     \) -alpha off -compose CopyOpacity -composite $IMGPNG
     
convert $IMGPNG  -background  black  \( +clone -shadow 60x4+2+2 \) +swap -background  none   -flatten $IMGPNG 

Does anyone have ideas?   cool

Offline

#676 2017-07-19 19:17:34

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

Re: Show us your conky

Steve wrote:

Thanks again Sector11

Looks good but you still have one error .... Your command for CPU is Ghz - it is NOT a % drop that %

If you want an 'average" CPU usage (for multi-core) use: ${cpu}% or ${cpu cpu0}%  big_smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#677 2017-07-19 19:21:43

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

Re: Show us your conky

unklar wrote:

Does anyone have ideas?   cool

Ideas at the moment now.  But a question.  What does a lady in almost nothing beside 'Artist and Song' have to do with a speed test image?

OH ... I see the arrow now ... it was a pleasant confusion.

Must test that conky  Thank you unklar.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#678 2017-07-19 19:44:07

Temetka
Member
From: Sol System, Western Spiral Arm
Registered: 2015-10-14
Posts: 549

Re: Show us your conky

I had no clue that speed test would work in / with conky. Thanks for sharing this.


The meaning of life is to just be alive. It is so plain and so obvious
    and so simple. And yet everybody rushes aroound in a great panic
             as if it were necessary to achieve something beyond themselves.
                                                                                                             - Alan Watts

Offline

#679 2017-07-20 07:55:42

Steve
Member
Registered: 2017-01-03
Posts: 642

Re: Show us your conky

Sector11 wrote:
Steve wrote:

Thanks again Sector11

Looks good but you still have one error .... Your command for CPU is Ghz - it is NOT a % drop that %

If you want an 'average" CPU usage (for multi-core) use: ${cpu}% or ${cpu cpu0}%  big_smile

ahh yes cpu usage vs actual total cpu capability. I had wanted to just show cpu capability so would be silly having that % there, but now i think about it showing usage would be better.  Cheers

Offline

#680 2017-07-20 11:35:36

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,645

Re: Show us your conky

Sector11 wrote:

What does a lady in almost nothing beside 'Artist and Song' have to do with a speed test image?

lol  lol  lol
This image (or others) is shown to me by miniatureGoogleImage, when the conky of radiotray is running. Radiotray itself is not active.

Must test that conky

thank you for your time   smile

Offline

Board footer

Powered by FluxBB