Welcome!
Forum users

Current releases
--MX-23 release info here
--Migration information to MX-23 here
--antiX-23.1 (Arditi del Popolo) release info here

Important information
--If in starting your system it boots to an unwanted Desktop, right click desktop, then select leave and logout. At the
login screen there is a session chooser at the top of the screen.

News
-- MX Linux on social media: here
-- New Forum Features, Marking Solved and Referencing a User: here

Conky Helps and Stuff

Message
Author
linwinux

Re: Conky Helps and Stuff

#21 Post by linwinux »

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

User avatar
asqwerth
Developer
Posts: 7180
Joined: Sun May 27, 2007 5:37 am

Re: Conky Helps and Stuff

#22 Post 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.
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

male

Re: Conky Helps and Stuff

#23 Post 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!
You do not have the required permissions to view the files attached to this post.
Last edited by male on Sun Mar 17, 2019 4:07 pm, edited 1 time in total.

User avatar
KoO
Posts: 491
Joined: Fri Feb 10, 2017 1:21 am

Re: Conky Helps and Stuff

#24 Post 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
Main : MX 19.1-AHS (i3) 5.4.13-1~mx19+1, Asus B450-i AMD 5 3600 , 32gb Hyper-X 3200 , GTX970 . :linuxlove:
Lenovo T430 : Debian10 antiX17 (i3) , 4.20.12 , i5 , 12gb .
Lenovo X220 : Test Machine (ATM)

male

Re: Conky Helps and Stuff

#25 Post 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.

User avatar
KoO
Posts: 491
Joined: Fri Feb 10, 2017 1:21 am

Re: Conky Helps and Stuff

#26 Post 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.
Main : MX 19.1-AHS (i3) 5.4.13-1~mx19+1, Asus B450-i AMD 5 3600 , 32gb Hyper-X 3200 , GTX970 . :linuxlove:
Lenovo T430 : Debian10 antiX17 (i3) , 4.20.12 , i5 , 12gb .
Lenovo X220 : Test Machine (ATM)

male

Re: Conky Helps and Stuff

#27 Post 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 
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

Re: Conky Helps and Stuff

#28 Post 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... ;)
You do not have the required permissions to view the files attached to this post.

User avatar
Jerry3904
Administrator
Posts: 21859
Joined: Wed Jul 19, 2006 6:13 am

Re: Conky Helps and Stuff

#29 Post by Jerry3904 »

That will be fun to look at, thanks.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
asqwerth
Developer
Posts: 7180
Joined: Sun May 27, 2007 5:37 am

Re: Conky Helps and Stuff

#30 Post 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.
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”