Page 3 of 35

Re: Conky Helps and Stuff

Posted: Fri May 04, 2018 3:49 am
by linwinux
Excellent links, especially the second one with all of the instructions & explanations. :happy:

Re: Conky Helps and Stuff

Posted: Fri May 04, 2018 4:28 am
by asqwerth
If you are already using Conky Manager for all your other conkies, you could just make a subfolder in the $HOME/.conky folder for your added conkies ASSUMING THEY ARE OLD SYNTAX CONKIES.

If these added conkies use a specific set of fonts, images or scripts (like the weatherfont and accuweather script) not already included with CM, make separate subfolders in ~/.conky for them as well. You'll have to edit the added conkies so that the references to fonts, images and scripts point to the new subfolders.

Once you do that, open CM and reload. The new conkies will now be in the list.

Benefit? Easy to select more than 1 conky to run at a time just by clicking on the conkies displayed in the graphical interface and to change selection. Then you don't have change your autostart script whenever you want to change which conkies are to be autostarted.

Disadvantage? CM does not recognise new syntax conkies.

Re: Conky Helps and Stuff

Posted: Sun May 06, 2018 3:48 pm
by male
From here
Of course the cli_weather can also be displayed in a Conky ;)
antiXcli_weather2.jpg
the configurations:
conky1.9

Code: Select all

#pkill -xf "conky -q -c /home/male/.conky/cli_weather/conkyrc9" &
# Elegance-beam conky by damo, July 2017
# Conky v1.10

    alignment top_right
    background yes
    border_inner_margin 15
    border_width 5
    default_color ffffff
    double_buffer yes
    draw_borders no
    draw_graph_borders no
    draw_outline no
    draw_shades no
    gap_x 25
    gap_y 25
    maximum_width 320
    double_buffer yes
    override_utf8_locale yes
    own_window yes
#own_window_class Conky
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,below,skip_taskbar,skip_pager   #sticky
#own_window_argb_visual yes
#own_window_argb_value 150
    text_buffer_size 8000
    total_run_times 0
    update_interval 1
    uppercase no
    use_xft yes
    xftalpha 1
    short_units no
    xftfont AvantGarde LT ExtraLight:pixelsize=16
    color1 678b8b
    color2 284f63
    color3 b72e3f
    color4 668989
    color5 dae1e3
    color6 5d8185
    color7 4f727b


TEXT
${color}${font AvantGarde LT ExtraLight:pixelsize=150}${alignr}${time %H}
${voffset -65}${alignr}${color3}${time %M}
${voffset -90}${color}${font AvantGarde LT ExtraLight:pixelsize=20}${alignr}${time %A}  |  ${alignr}${time %d.%B %Y}
${voffset 20}${color}${font}ram ${alignr}${mem} / ${memmax}
cpu ${alignr}${cpu cpu0}%
cpu temp ${alignr}${color}${hwmon 1 temp 2} °C
GPU ${alignr}${hwmon 2 temp 1} °C
fs  ${alignr}${fs_used_perc /}% / ${fs_size /}
${voffset 30}${alignr}${kernel}
${hr}
${font Birdman:size=13}antiX 17.1  ${alignr} W E A T H E R
${goto 40}${font liberation mono:size=9}${execi 600 curl 'wttr.in/leipzig?q?0?T'}${font}
${hr}
#${font Birdman}Linux News DE  ${alignr}F E E D
#${font AvantGarde LT ExtraLight:pixelsize=14}${rss http://feeds.feedburner.com/linuxnewsde/ 15 item_titles 4 2}
#${hr}

conky1.10

Code: Select all

-- Elegance-beam conky by damo, July 2017
-- Conky v1.10

conky.config = {
    alignment = 'top_right',
    background = false,
    border_inner_margin = 15,
    border_width = 5,
    default_color = 'ffffff',  --ffffff # grey 5f5f5f 3F3F3F 183149 3B3B3B 26211F
    double_buffer = true,
    draw_borders = false,
    draw_graph_borders = false,
    draw_outline = false,
    draw_shades = false,
    gap_x = 25,
    gap_y = 25,
    maximum_width = 320,
    double_buffer = true,
    override_utf8_locale = true,
    own_window = true,
    own_window_class = 'Conky',
    own_window_type = 'normal',
    own_window_transparent = true,
    own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',   --sticky',
    own_window_argb_visual = true,
--    own_window_argb_value = 150,
    text_buffer_size = 8000,
    total_run_times = 0,
    update_interval = 1,
    uppercase = false,
    use_xft = true,
    xftalpha = 1,
    short_units = false,
    font = 'AvantGarde LT ExtraLight:pixelsize=16',
    color1 = '678b8b',
    color2 = '284f63',
    color3 = 'b72e3f',
    color4 = '668989',
    color5 = 'dae1e3',
    color6 = '5d8185',
    color7 = '4f727b',
};

conky.text = [[
${color}${font AvantGarde LT ExtraLight:pixelsize=150}${alignr}${time %H}
${voffset -65}${alignr}${color3}${time %M}
${voffset -90}${color}${font AvantGarde LT ExtraLight:pixelsize=20}${alignr}${time %A}  |  ${alignr}${time %d.%B %Y}
${voffset 20}${color}${font}ram ${alignr}${mem} / ${memmax}
cpu ${alignr}${cpu cpu0}%
cpu temp ${alignr}${color}${hwmon 1 temp 2} °C
GPU ${alignr}${hwmon 2 temp 1} °C
fs  ${alignr}${fs_used_perc /}% / ${fs_size /}
${voffset 30}${alignr}${kernel}
${hr}
${font Birdman}Siduction  ${alignr} W E A T H E R
${goto 40}${font liberation mono:size=9}${execi 600 curl 'wttr.in/leipzig?q?0?T'}${font}
${hr}
${font Birdman}Linux News DE  ${alignr}F E E D
${font AvantGarde LT ExtraLight:pixelsize=14}${rss http://feeds.feedburner.com/linuxnewsde/ 15 item_titles 4 2}
${hr}
]];
Who doesn't know the help yet: http://wttr.in/:help
Have fun!

Re: Conky Helps and Stuff

Posted: Sun May 06, 2018 5:48 pm
by KoO
Tricky :happy: Is their any way to make the command update the weather during the day. Thanks for the help file as well.
Some links I have found.
https://github.com/schachmat/wego
https://github.com/chubin/wttr.in

Re: Conky Helps and Stuff

Posted: Mon May 07, 2018 7:20 am
by male
@KoO
I'm sorry, I missed your praise on the previous page yesterday. Many thanks for that! ;)

I do not know when (at what interval) wttr.in
performs an update. In this case, it's up to Conky alone.

----------------------------------------------------------------------------------------
Another word of explanation for the configurations
--> hwmon
I use hwmon a lot because I'm lazy. :happy:
Seriously, in short, the fact that each computer/motherboard writes the data of the sensor chips into interface files at startup should be taken advantage of. However, this is not standardized and therefore different on each computer under sysfs-interfaces and can also change from start to start.

Therefore it can happen, I don't see any values for CPU and GPU tomorrow,
because 'hwmon 0 temp 2' would be true.
The methods of determination are well explained in Sector11-Wiki.

Re: Conky Helps and Stuff

Posted: Thu May 10, 2018 8:32 pm
by KoO
@male
Thanks for the wiki link I now understand a lot more about sensors monitors as I never know Sector11 had a wiki.

Re: Conky Helps and Stuff

Posted: Thu May 17, 2018 2:23 pm
by male
@asqwerth
neu3.jpg
I just notice that the original author created his account at derivantArt
has deleted.
https://zagortenay333.deviantart.com/ar ... -402533520
The.conkyrc alone is of little use to you, because pictures are also part of it. Can I attach.tar.gz archives here in the forum?
I'll try that out later. ;)

neu4.jpg
The Radiotray-Conky originally goes back to Sector11, @loutch enabled me to display the cover too
The files are located here

The script works according to the following principle:
Conky asks sourceforge for the artist and the title of the selected radio station in radiotray. These up to 80 characters are written to a .txt file.
the brilliant script by loutch reads these characters and lets Aunt Google search. The first hit / cover / image is placed in $HOME.
Since the image sizes are different, "instructs" the convert script to make it suitable for Conky, which brings the "end product" to the desktop.

you need image.lua and package imagemagick

Code: Select all

require 'cairo'
home = os.getenv ('HOME')

--Fonction d'affichage
function conky_fDrawImage(path,x,y,w,h,arc)

	path = string.gsub(path, "~", home)
	path = string.gsub(path, "$HOME", home)

	local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
	
	local function fDrawImage(path,x,y,w,h,arc)
		x=x+(w/2)
		y=y+(h/2)
		local img =  cairo_image_surface_create_from_png(path)
		local w_img, h_img = cairo_image_surface_get_width (img), cairo_image_surface_get_height (img)

		local cr = cairo_create (cs)
		cairo_translate (cr, x, y)

		if arc then
			cairo_rotate (cr, arc)
		end

		cairo_scale (cr, w/w_img, h/h_img)
		cairo_set_source_surface (cr, img, -w_img/2, -h_img/2)
		cairo_paint (cr)
		cairo_destroy(cr)
		cairo_surface_destroy (img)
	end
	fDrawImage(path,x,y,w,h,arc)
	cairo_surface_destroy(cs)
	return ""
end 

Re: Conky Helps and Stuff

Posted: Thu May 17, 2018 3:10 pm
by male
Conky-eOS.tar.gz
Part 2, @asqwerth ;)

The author has published the Conky with his script for the provider Yahoo-Wetter.

But because this configuration didn't work for me, I used Teo's
1_accuweather script implemented.

The archive contains only my configurations 1.9 and 1.10 and the background images of Conky.
As far as the parameters of the computer are concerned, the code is not cleaned up by me. For example, the same font does not need to be called again and again in Conky, because Conky retains it until a new font is called.

My resolution is 1680x1050 and the font is monofur
If you have another one, it may be difficult to reorder the "shifted" values.
The Conky is sensitive to other images and writing!

Study the paths! Have fun!
If something's... ;)

Re: Conky Helps and Stuff

Posted: Thu May 17, 2018 3:25 pm
by Jerry3904
That will be fun to look at, thanks.

Re: Conky Helps and Stuff

Posted: Fri May 18, 2018 1:24 am
by asqwerth
Thanks, @male.

I'll test it out hopefully this weekend.

I tried once adding loutch's radiotray script to a conky but it only worked partially. Couldn't seem to get album art to display, so let's see how I fare with your links.

Where did you get the .lua file from? I think that was what was missing previously when I tried loutch's script.