Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Conky Helps and Stuff

Message
Author
linwinux

Re: Conky Helps and Stuff

#21 Post by linwinux » Fri May 04, 2018 3:49 am

Excellent links, especially the second one with all of the instructions & explanations. :happy:

User avatar
asqwerth
Forum Veteran
Forum Veteran
Posts: 3017
Joined: Sun May 27, 2007 5:37 am

Re: Conky Helps and Stuff

#22 Post by asqwerth » Fri May 04, 2018 4:28 am

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.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

User avatar
male
Forum Regular
Forum Regular
Posts: 176
Joined: Thu Jan 23, 2014 8:38 am

Re: Conky Helps and Stuff

#23 Post by male » Sun May 06, 2018 3:48 pm

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
# gezwickt Februar 2018 unklar

    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
-- gezwickt Februar 2018 unklar

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!
You do not have the required permissions to view the files attached to this post.
Male is the capital of the Maldives and its wonderful people.

User avatar
KoO
Forum Regular
Forum Regular
Posts: 220
Joined: Fri Feb 10, 2017 1:21 am

Re: Conky Helps and Stuff

#24 Post by KoO » Sun May 06, 2018 5:48 pm

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
Da Main Box
MX17.1 Intel Xeon E3-1241 v3 , 16gb HyperX , Samsung EVO M2 250 GB , Samsung EVO SSD 500 GB , GTX 970 , Tascam US 2x2 , XD5 Cerwin-Vega Speakers , M50X Headphones.

User avatar
male
Forum Regular
Forum Regular
Posts: 176
Joined: Thu Jan 23, 2014 8:38 am

Re: Conky Helps and Stuff

#25 Post by male » Mon May 07, 2018 7:20 am

@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.
Male is the capital of the Maldives and its wonderful people.

User avatar
KoO
Forum Regular
Forum Regular
Posts: 220
Joined: Fri Feb 10, 2017 1:21 am

Re: Conky Helps and Stuff

#26 Post by KoO » Thu May 10, 2018 8:32 pm

@male
Thanks for the wiki link I now understand a lot more about sensors monitors as I never know Sector11 had a wiki.
Da Main Box
MX17.1 Intel Xeon E3-1241 v3 , 16gb HyperX , Samsung EVO M2 250 GB , Samsung EVO SSD 500 GB , GTX 970 , Tascam US 2x2 , XD5 Cerwin-Vega Speakers , M50X Headphones.

User avatar
male
Forum Regular
Forum Regular
Posts: 176
Joined: Thu Jan 23, 2014 8:38 am

Re: Conky Helps and Stuff

#27 Post by male » Thu May 17, 2018 2:23 pm

@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 
You do not have the required permissions to view the files attached to this post.
Last edited by male on Fri May 18, 2018 5:57 am, edited 1 time in total.
Male is the capital of the Maldives and its wonderful people.

User avatar
male
Forum Regular
Forum Regular
Posts: 176
Joined: Thu Jan 23, 2014 8:38 am

Re: Conky Helps and Stuff

#28 Post by male » Thu May 17, 2018 3:10 pm

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... ;)
You do not have the required permissions to view the files attached to this post.
Male is the capital of the Maldives and its wonderful people.

User avatar
Jerry3904
Forum Veteran
Forum Veteran
Posts: 21917
Joined: Wed Jul 19, 2006 6:13 am

Re: Conky Helps and Stuff

#29 Post by Jerry3904 » Thu May 17, 2018 3:25 pm

That will be fun to look at, thanks.
Production: 4.15.0-1-amd64, MX-17.1, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 8 GB, Kingston SSD 120 GB and WesternDigital 1TB
Testing: AAO 722: 4.15.0-1-386. MX-17.1, AMD C-60 APU, 4 GB

User avatar
asqwerth
Forum Veteran
Forum Veteran
Posts: 3017
Joined: Sun May 27, 2007 5:37 am

Re: Conky Helps and Stuff

#30 Post by asqwerth » Fri May 18, 2018 1:24 am

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.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

Post Reply

Return to “Software / Configuration”