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
User avatar
male
Forum Regular
Forum Regular
Posts: 256
Joined: Thu Jan 23, 2014 8:38 am

Re: Conky Helps and Stuff

#31 Post by male » Fri May 18, 2018 5:54 am

asqwerth wrote:Where did you get the .lua file from?

I'm not sure, but I think this is from Lua-Guru @mrpeachy or @londonali ;)
Male is the capital of the Maldives and its wonderful people.

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

Re: Conky Helps and Stuff

#32 Post by KoO » Sat May 19, 2018 10:26 pm

@male oben_Jan12rc
I could not get your conky to work as it was, errors that did not understand. [Even converted to 1.10 still pork chopped] :confused:

So I integrated it into one of my conky's Works good now converted 1.10 too and added mdp to the end line.This was done on MX-17 {I will be changing my goto command like your too}
Image

Code: Select all

conky.config = {
	own_window = true,
	own_window_class = 'Conky',
	own_window_colour = 'black',
	own_window_transparent = true,
	own_window_argb_visual = true,
	own_window_argb_value = 140,
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
	own_window_type = 'dock',
	double_buffer = true,
	use_spacer = 'none',
	use_xft = true,
-- font snap 7,
	font = 'monofur:size=10',
-- xftfont DejaVu Sans Light:size=8',
	xftalpha = 1,
	text_buffer_size = 2048,
-- alignment is disabled when own_window_type is dock
-- alignment tm
	gap_x = 220,
	gap_y = 1410,-- Use this to move your bar up and down the screen
	default_bar_width = 20, default_bar_height = 8,
	short_units = true,

-- --- Colours, Sizes, Fonts & Margins --- #
	update_interval = 1.0,
	stippled_borders = 0,
	minimum_width = 2560, minimum_height = 6,-- Your screen width here
	maximum_width = 2560,-- and here
	border_width = 10,
	default_color = '#CCCCCC',
-- --- Text --- #
	draw_outline = false,
	draw_borders = false,
--font -*-profont-*-*-*-11-*-*-*-*-*-*-*
	uppercase = true,
	draw_shades = false,

	default_shade_color = 'grey',
	default_outline_color = 'black',

	default_color = '#DCDCDC',--220 220 220    Gainsboro
	color0 = '#8FBC8F',--143 188 143    DarkSeaGreen
	color1 = '#778899',--119 136 153    LightSlateGray 
	color2 = '#FF8C00',--255 140   0    DarkOrange
	color3 = '#7FFF00',--127 255   0    Chartreuse
	color4 = '#FFA07A',--255 160 122    LightSalmon
	color5 = '#FFDEAD',--255 222 173    NavajoWhite    
	color6 = '#00BFFF',--  0 191 255    DeepSkyBlue
	color7 = '#00FFFF',--  0 255 255    Cyan
	color8 = '#FFFFFF',--               Withe          
	color9 = '#FFFF00',--255 255   0    Yellow
--color10 B22222 #178  34  34    FireBrick
};

conky.text = [[
${goto 100}${color9}GPU:${color8} ${hwmon 2 temp 1}°\
 ${color7}${kernel}${color8}  CPU: ${color7}${if_match ${cpu cpu0} < 10}00${cpu cpu0}${color8}\
${else}${color7}${if_match ${cpu cpu0} < 100}0${cpu cpu0}${color8}\
${else}${color9}${cpu cpu0}${color8}\
${endif}${endif}\
 Mem: ${color7}${if_match ${memperc} < 10}00${memperc}${color8}\
${else}${color7}${if_match ${memperc} < 100}0${memperc}${color8}\
${else}${color9}${memperc}${color8}\
${endif}${endif}\
 root: ${color7}${if_match ${fs_used_perc /} < 10}00${fs_used_perc /}${color8}\
${else}${color7}${if_match ${fs_used_perc /} < 100}0${fs_used_perc /}${color8}\
${else}${color9}${fs_used_perc /}${color8}\
${endif}${endif}\
 Core0: ${color7}${hwmon 2 temp 1}°${color8}\
 Core1: ${color7}${hwmon 2 temp 2}°${color8}\
 Core2: ${color7}${hwmon 2 temp 3}°${color8}\
 Core3: ${color7}${hwmon 2 temp 4}°${color8}\
 sdb: ${color7}${execpi 600 hddtemp -n /dev/sdb}°${color8}\
 DL: ${downspeedgraph eth0 10,50 FFFF00 FF0000}\
  UP: ${upspeedgraph eth0 10,50 FF0000 FFFF00}${color8}\
  FAN: ${color7}${hwmon 3 fan 1}\
${color8}|${color7}${hwmon 3 fan 2}\
${color8}|${color7}${hwmon 3 fan 3}${color8}\
  UID: ${color7}${exec id | cut -c5-8}${color8}  MPD : ${color8}${if_mpd_playing}${color4}${mpd_smart 50}  ${color2}${mpd_elapsed} / ${mpd_length}${else}${mpd_status}${endif}
#keeps#########
]];
The line trouble thingy I think is related to ( Use MX Tweaks>Compositor to uncheck "shadows under dock windows" )? but I can't find a setting for this with Fluxbox and their are so many settings in Fluxbox it may not be that..

Image

Code: Select all

conky.config = {
	own_window = true,
	own_window_class = 'Conky',
	own_window_colour = 'black',
	own_window_transparent = false,
	own_window_argb_visual = true,
	own_window_argb_value = 140,
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
	own_window_type = 'panel',
	double_buffer = true,
	use_spacer = 'left',
	use_xft = true,
--font snap-7
	font = 'Noto Sans:size=8',
-- xftfont DejaVu Sans Light:size=8
	xftalpha = 1,
	text_buffer_size = 2048,
-- alignment is disabled when own_window_type is dock
--alignment top_left
	gap_x = 10,
	gap_y = 1420,-- Use this to move your bar up and down the screen
	default_bar_width = 2560, default_bar_height = 6,
	short_units = true,

-- --- Colours, Sizes, Fonts & Margins --- #
	update_interval = 1.0,
	stippled_borders = 0,
	minimum_width = 2560, minimum_height = 6,-- Your screen width here
	maximum_width = 2560,-- and here
	border_width = 6,
	default_color = '#CCCCCC',
-- --- Text --- #
	draw_outline = false,
	draw_borders = false,
--font -*-profont-*-*-*-11-*-*-*-*-*-*-*
	uppercase = true,
	draw_shades = false,

	color0 = '#a6e22e',-- Light green
	color1 = '#beed5f',-- Lime
	color2 = '#fd971f',-- Light Orange
	color3 = '#000000',-- Black
	color4 = '#9e6ffe',-- Purple
	color5 = '#00CBEE',-- Blue
	color6 = '#6EC6D4',-- Light grey
    color7 = '#FFFF00',-- Yellow
	color8 = '#FF0000',-- Red
	color9 = '#3333FF',-- Blue2
};

conky.text = [[

${color1}$nodename $kernel ${color2}Uptime: ${color} ${uptime_short} ${color} ${goto 320}* \
${color4}Cpu: ${color8}${cpu}%  ${exec sensors|grep 'Core 0'|awk '{print $3}'|sed 's/\xC2//g'|sed 's/\xb0//g'} ${goto 440}* \
${color5}Ram: ${color6}${mem}${color 00CBEE}/${color}${memmax} ${goto 560}*  \
${color6}Root: ${color6}${fs_used}/${color}${fs_size} ${color9}: ${color8}SDA: ${exec hddtemp /dev/sda -n --unit=C}° SDB: ${exec hddtemp /dev/sdb -n --unit=C}° SDC: ${exec hddtemp /dev/sdc -n --unit=C}° ${color} ${goto 860}* \
${color}Net : ▲${upspeedf eth0} ${color3}${upspeedgraph eth0 10,50  ffff00 00ff00}${color}${totalup eth0} ${goto 1050}* \
▼${downspeedf eth0} ${color3}${downspeedgraph eth0 10,50  ffff00 00ff00}${color}${totaldown eth0} ${goto 1200}* \
${color8}GTX970: ${color2}${exec nvidia-settings -q [gpu:0]/GPUCurrentClockFreqs -t} MHz ${exec nvidia-settings -q [thermalsensor:0]/ThermalSensorReading -t} °C ${color} ${goto 1390}* \
${color6}Fans: ${color7}${hwmon 3 fan 1} RPM  ${color6}: ${color7}${hwmon 3 fan 2} RPM  ${color6}: ${color7}${hwmon 3 fan 3} RPM ${color} ${goto 1630}* \
${color}${time %A}, ${time %d %B %Y    %l:%M %P} *   ${color7}MPD : ${color8}${if_mpd_playing}${color4}${mpd_smart 50}  ${color2}${mpd_elapsed} / ${mpd_length}${else}${mpd_status}${endif}
]];
Da Main Box .Antix 17.2 (4.18.7) i3 ,Windows8.1 , Intel Xeon E3-1241 v3 , 16gb HyperX , Samsung EVO 860 500 GB , Samsung EVO 860 500 GB , GTX 970
Lappy .Lenovo T430 AntiX17.2 (4.18.7) i3 ,Windows8.1 , i5 +4000 , 8gb , Samsung EVO 860 500 GB , 1TB HGST

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

Re: Conky Helps and Stuff

#33 Post by male » Sun May 20, 2018 6:18 am

which conky version runs in antiX?

Code: Select all

conky -v
Male is the capital of the Maldives and its wonderful people.

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

Re: Conky Helps and Stuff

#34 Post by KoO » Sun May 20, 2018 7:00 am

conky 1.10.6
Da Main Box .Antix 17.2 (4.18.7) i3 ,Windows8.1 , Intel Xeon E3-1241 v3 , 16gb HyperX , Samsung EVO 860 500 GB , Samsung EVO 860 500 GB , GTX 970
Lappy .Lenovo T430 AntiX17.2 (4.18.7) i3 ,Windows8.1 , i5 +4000 , 8gb , Samsung EVO 860 500 GB , 1TB HGST

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

Re: Conky Helps and Stuff

#35 Post by male » Sun May 20, 2018 8:35 am

Try

Code: Select all

conky.config = {
	own_window = true,        
--own_window_class = 'Conky',
--own_window_colour = 'black',
	own_window_transparent = true,
--own_window_argb_visual = true,
--own_window_argb_value = 140,
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
	own_window_type = 'normal',
...

In sid(duction) there is the version 1.10.8
Even with this, there are still great difficulties for the user who has not studied LUA to get his Conky configurations up and running.
I know Conky-Gurus who refuse support for Conky1.10. :exclamation:

There is no need to switch to Conky version 1.10 in antiX. I am glad that the developers stick to Conky version 1.9 with a trick and allow the user to adapt to his needs configurations yourself!

PS: you compare

Code: Select all

conky -v
conky 1.10.8 compiled Tue May 15 07:41:15 UTC 2018 for Linux 4.9.0-6-amd64 x86_64

Compiled in features:

System config file: /etc/conky/conky.conf
Package library path: /usr/lib/conky


 General:
  * math
  * hddtemp
  * portmon
  * IPv6
  * Curl
  * RSS
  * Weather (METAR)
  * Weather (XOAP)
  * wireless
  * support for IBM/Lenovo notebooks
  * nvidia
  * eve-online
  * builtin default configuration
  * old configuration syntax
  * Imlib2
  * apcupsd
  * iostats
  * ncurses
  * Internationalization support
  * PulseAudio

 Lua bindings:
  * Cairo
  * Imlib2
  * RSVG
 X11:
  * Xdamage extension
  * Xinerama extension (virtual display)
  * Xshape extension (click through)
  * XDBE (double buffer extension)
  * Xft
  * ARGB visual
  * Own window

 Music detection:
  * Audacious
  * MPD
  * MOC
  * XMMS2

 Default values:
  * Netdevice: eth0
  * Local configfile: $HOME/.conkyrc
  * Localedir: /usr/share/locale
  * Maximum netdevices: 64
  * Maximum text size: 16384
  * Size text buffer: 256 
Male is the capital of the Maldives and its wonderful people.

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

Re: Conky Helps and Stuff

#36 Post by KoO » Mon May 21, 2018 3:20 am

@male
Mate thanks for the info on 1.10. I don't blame people like Sector11 & TeoBigusGeekus so many others for not wanting to change, they don't make conky's they make Art.
O yes I now fixed the over lay problem I was having with my conky Bars. I still do not understand how completely just changing settings.

Have you seen Sector11 conky test script looks interesting. https://forums.bunsenlabs.org/viewtopic.php?id=3230 12# and 26#
Image Image

Many Thanks Again :number1:
Da Main Box .Antix 17.2 (4.18.7) i3 ,Windows8.1 , Intel Xeon E3-1241 v3 , 16gb HyperX , Samsung EVO 860 500 GB , Samsung EVO 860 500 GB , GTX 970
Lappy .Lenovo T430 AntiX17.2 (4.18.7) i3 ,Windows8.1 , i5 +4000 , 8gb , Samsung EVO 860 500 GB , 1TB HGST

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

Re: Conky Helps and Stuff

#37 Post by male » Mon May 21, 2018 5:31 am

KoO wrote: Have you seen Sector11 conky test script looks interesting.
Yeah, I know almost all about him :bagoverhead:

Fluxbox has a pseudo transparency, which can be done by right-clicking through the Fluxbox settings and right - left keystroke again.
If you want to have a real transparency, then the installation of the package compton is recommended.

Congratulations on solving your problem. :happy:
Male is the capital of the Maldives and its wonderful people.

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

Re: Conky Helps and Stuff

#38 Post by KoO » Thu May 24, 2018 7:59 pm

Thanks for the info male.
Have you ever seen a portable conky like which can run independently that would not interfere with the already running conky like conky manager have one folder with 1.9 and another with 1.10> would be great for testing conkys.
Da Main Box .Antix 17.2 (4.18.7) i3 ,Windows8.1 , Intel Xeon E3-1241 v3 , 16gb HyperX , Samsung EVO 860 500 GB , Samsung EVO 860 500 GB , GTX 970
Lappy .Lenovo T430 AntiX17.2 (4.18.7) i3 ,Windows8.1 , i5 +4000 , 8gb , Samsung EVO 860 500 GB , 1TB HGST

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

Re: Conky Helps and Stuff

#39 Post by male » Fri May 25, 2018 5:14 am

You speak in riddles

To my knowledge, you cannot use syntax 1.9 and 1.10 in a Distribution at the same time.
It's "either or" ;)
Male is the capital of the Maldives and its wonderful people.

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

Re: Conky Helps and Stuff

#40 Post by asqwerth » Fri May 25, 2018 7:33 am

male wrote:
Fri May 25, 2018 5:14 am
You speak in riddles

To my knowledge, you cannot use syntax 1.9 and 1.10 in a Distribution at the same time.
It's "either or" ;)
Yes, you can't RUN both conky 1.9 and 1.10 at the same time, but generally conky 1.10 can read old syntax (ver 1.9) conky scripts.

It is only that Conky Manager cannot recognise files containing new syntax conky scripts and thus does not list them out in its interface.

Maybe KoO is asking whether there is any GUI tool like CM that can recognise and run both old and 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

Post Reply

Return to “Software / Configuration”