You are not logged in.

#1476 2021-03-20 22:27:45

eight.bit.al
Member
From: Prison
Registered: 2015-10-01
Posts: 890

Re: Show us your conky

Colonel Panic wrote:

Yes, but I'm puzzled as to where the "based on MX Linux" bit at the top would have come from. That doesn't seem to be anywhere in the configuration file.



From the Interstate spin:

...

# stuff after 'TEXT' will be formatted on screen

own_window_argb_value 255
own_window_argb_visual yes
own_window_colour 000000
TEXT
${color3}${alignc}Swift Linux
${color3}${alignc}(based on MX Linux)

...

8bit

Last edited by eight.bit.al (2021-03-20 22:28:45)


If art is how we decorate space, music is how we decorate time.

Online

#1477 2021-03-20 22:31:34

jeffreyC
Member
Registered: 2019-09-07
Posts: 26

Re: Show us your conky

Pretty sure the original can be found here:

https://github.com/MX-Linux/mx-conky-data

Offline

#1478 2021-03-20 23:02:39

eight.bit.al
Member
From: Prison
Registered: 2015-10-01
Posts: 890

Re: Show us your conky


If art is how we decorate space, music is how we decorate time.

Online

#1479 2021-03-21 20:29:20

jeffreyC
Member
Registered: 2019-09-07
Posts: 26

Re: Show us your conky

I thought it was the antiX conky, but it has been a while since I looked at it.

I use this one myself:

https://github.com/MX-Linux/mx-conky-da … MX-MyConky

Sorry Sector11, I have gone over to the Dark Side and use a new conky. But yeah, they are a whole different thing to edit or create, I still don't have a handle on that.

Offline

#1480 2021-03-21 21:02:04

Colonel Panic
Member
Registered: 2018-11-13
Posts: 224

Re: Show us your conky

Eight.bit and Jeffrey, thanks for the info.

Here's the config file I use in Siduction, which I'm posting from now. It's adapted from Andreas Gohr's configuration, which is probably still online somewhere, but edited to remove things like the hard drive and CPU temperature for which the sensors aren't available on my machine (the temperature of my CPU showed as 0^C before I edited the file, which is clearly ridiculous).

A bit basic but it works;

#   Andreas Gohr's Conky Configuration (simplified somewhat)
    conky.config = {
    use_xft = true,
    xftalpha = 0.8,
    update_interval = 1.0,
    total_run_times = 0,
    own_window = true,
    own_window_transparent = true,
    own_window_argb_visual = true,
    own_window_type = 'normal',
    own_window_class = 'conky-semi',
    own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
    background = false,
    double_buffer = true,
    imlib_cache_size = 0,
    no_buffers = true,
    uppercase = false,
    cpu_avg_samples = 2,
    override_utf8_locale = true,
 
    -- placement
    alignment = 'top_right',
    gap_x = 140,
    gap_y = 25,
 
    -- default drawing
    draw_shades = false,
    draw_outline = false,
    draw_borders = false,
    draw_graph_borders = true,
    default_bar_width = 150, default_bar_height = 5,
    default_graph_width = 150, default_graph_height = 12,
    default_gauge_width = 20, default_gauge_height = 20,
 
    -- colors
    font = 'Liberation Mono:size=10',
    default_color = 'EEEEEE',
    color1 = 'AABBFF',
    color2 = 'FF993D',
    color3 = 'AAAAAA',
 
    -- layouting
    template0 = [[${font Liberation Sans:bold:size=11}${color2}\1 ${color3}${hr 2}${font}]],
    template1 = [[${color1}\1]],
    template2 = [[${goto 100}${color}]],
    template3 = [[${goto 180}${color}${alignr}]],
};
 
conky.text = [[
${template0 Info}
${template1 Date}                                                           ${template3}${color3}${time %a,}${color}${time %e %B %G}
${template1 Time}                                                           ${template3}${time %T}
 
${template0 System}
${template1 Hostname}                                                       ${template3}${nodename}
${template1 ${sysname}}                                                     ${template3}${kernel}-${machine}
${template1 Uptime}                                                         ${template3}${uptime_short}
${template1 CPU}                                                            ${template3}${freq_g}GHz
 
${template0 Processors}
${template1 Load}               ${template2}${loadavg 1}                    ${template3}${loadgraph}
${template1 Core\ 1}            ${template2}${cpu cpu1}%                    ${template3}${cpubar cpu1}
${template1 Core\ 2}            ${template2}${cpu cpu2}%                    ${template3}${cpubar cpu2}
${template1 Core\ 3}            ${template2}${cpu cpu3}%                    ${template3}${cpubar cpu3}
${template1 Core\ 4}            ${template2}${cpu cpu4}%                    ${template3}${cpubar cpu4}
${template1 Top}                ${template2}${top name 1}                   ${template3}${top cpu 1}
 
${template0 Memory}
${template1 Memory}             ${template2}${memperc}% used                ${template3}${mem} / ${memmax}
                                                                            ${template3}${membar}
${template1 Top}                ${template2}${top_mem name 1}               ${template3}${top_mem mem_vsize 1}

${template0 Swap}
${template1 Swap}               ${template2}${swapperc}% used               ${template3}${swap} / ${swapmax}
                                                                            ${template3}${swapbar}

${template0 Filesystem}
${template1 /}                  ${template2}${fs_free /} free               ${template3}${fs_used /} / ${fs_size /}
                                                                            ${template3}${fs_bar /}
${template1 IO\ Read}           ${template2}${diskio_read}                  ${template3}${diskiograph_read}
${template1 IO\ Write}          ${template2}$diskio_write                   ${template3}$diskiograph_write
${template1 Top}                ${template2}${top_io name 1}                ${template3}${top_io io_perc 1}%
 
]];

Last edited by Colonel Panic (2021-03-23 06:48:48)

Offline

#1481 2021-03-22 13:36:59

unklar
Member
From: #! BL
Registered: 2015-10-31
Posts: 1,437

Re: Show us your conky

Colonel Panic wrote:

Here's the config file I use in Siduction, which I'm posting from now, and other Debian-based distros like Pardus and Sparky. It's adapted from Andreas Gohr's configuration, which is probably still online somewhere, but edited to remove things like the hard drive and CPU temperature for which the sensors aren't available on my machine (the temperature of my CPU showed as 0^C before I edited the file, which is clearly ridiculous).

^How should Andreas Gohrs know the specification of your calculator?   lol
Maybe it's about this code (conky-semi, found via Ecosia on the net)

${template1 CPU\ Temperature}                                               ${template3}${acpitemp}°C
${template1 HDD\ Temperature}                                               ${template3}${hddtemp /dev/sda}°C
 

What says

sensors

or

sensors -u

Whereby the hddtemp will soon be out of the question anyway:

apt-listchanges: Neuigkeiten wrote:

hddtemp (0.3-beta15-54) unstable; urgency=medium

  hddtemp has been dead upstream for many years and is therefore in a minimal
  maintenance mode. It will be shipped in the Debian Bullseye release, but
  will not be present in the Debian Bookworm release.

  Nowadays the 'drivetemp' kernel module is a better alternative. It uses the
  Linux Hardware Monitoring kernel API (hwmon), so the temperature is returned
  the same way and using the same tools as other sensors.

  Loading this module is as easy as creating a file in the /etc/modules-load.d
  directory:

    echo drivetemp > /etc/modules-load.d/drivetemp.conf

-- Aurelien Jarno <aurel32@debian.org>  Tue, 02 Feb 2021 20:27:44 +0100

1.So, which paths are these with you?
2.What does the terminal return:

$ for m in /sys/class/hwmon/* ; do echo -n "$m = " ; cat $m/name ; done

Offline

#1482 2021-03-23 06:50:48

Colonel Panic
Member
Registered: 2018-11-13
Posts: 224

Re: Show us your conky

Thanks for the info, I'll give that a try sometime soon.

Offline

#1483 2021-03-29 09:09:25

unklar
Member
From: #! BL
Registered: 2015-10-31
Posts: 1,437

Re: Show us your conky

Sector11 wrote:
unklar wrote:

@bronto-distri-lxde-openbox  big_smile

https://i.imgur.com/nurPF81t.png

Love the conky  Care to share?
Conky thread of course.  big_smile

Here you go, my friend  smile

vertical

-- pkill -xf "conky -c /home/unklar/S11/cmus_conkyrc" &
-- @unklar 2020-01-02; 2021-03-16
conky.config = {

	use_xft = true,
--xftfont Input Mono:size=8
--xftfont monofur:size=9
--xftfont monospace:size=8
--xftfont DejaVu Sans Mono:size=8.5
	font = 'Hack-Regular:size=8',
	xftalpha = 0.8,
	text_buffer_size = 2048,

	update_interval = 1,

	total_run_times = 0,

	own_window = true,
	own_window_transparent = true,
	own_window_type = 'normal',
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',--sticky,
--own_window_argb_visual yes
--own_window_argb_value 150

--default_bar_size 0 5
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	stippled_borders = 0,
--border_inner margin 5
	border_width = 1,

	default_color = '#ffffff',
--default_shade_color 000000
--default_outline_color ffffff
--own_window_colour 333333
	color1 = '#778899', --#66FFFF',
	color9 = '#C0C0C0',

--alignment top_left
--alignment top_right
--alignment bottom_left
--alignment bottom_right
	alignment = 'middle_right',
	minimum_width = 220, minimum_height = 650,
	maximum_width = 220,
	gap_x = 20,
	gap_y = 100,

	double_buffer = true,
	no_buffers = true,
	uppercase = false,
	cpu_avg_samples = 2,
	net_avg_samples = 2,
	override_utf8_locale = true,
	use_spacer = 'none',
	imlib_cache_size = 0,

----LUA----	
	lua_load = '~/LUA/draw-bg.lua',
	
--%C+%t+%w+%P+%h

};

conky.text = [[
${goto 40}${font LED_mono:size=30}${color1}88:88:88${goto 40}${color9}${time %T}${color}${font}

${lua conky_draw_bg 10 0 0 0 0 0x000000 0.4}
Kernel
===
 |
 |   ${nodename}
 |   ${kernel}
 |
Weather
 |
 |
   +  ${goto 5}${texeci 1200 curl 'wttr.in/lichtenstein_sachsen?q?0T?Q'}
 |  
 |
Mail
 |
 |   Unread:
 |
System
 |
 |   System: ${goto 100}${cpu cpu0} | ${cpu cpu1} | ${cpu cpu2} | ${cpu cpu3} 
 |   Entropy:${goto 100}${entropy_avail} / ${entropy_poolsize} - ${entropy_perc}%
 |   CPU Temp:${goto 100}${hwmon 2 temp 2}°  GPU Temp: ${hwmon 0 temp 1}°
 |   root:${goto 100}${fs_free /root} / ${fs_size /root}
 |   RAM:${goto 100}${exec free -h --si | awk 'NR==2{printf $3}'}${goto 148} / ${memmax}
 |   Boot: ${goto 100}${execi 86400 who -b | cut -c23-}
 |   load:${goto 100}${loadavg}
 |
Net
 |
 |   Up:${goto 100}${upspeedf enp2s0}${goto 170}${totalup enp2s0} 
 |   DL:${goto 100}${downspeedf enp2s0}${goto 170}${totaldown enp2s0}
 |
Processes
 |
 |   NAME ${goto 160}PID ${goto 200}TOP   
 |   ${top name 1} ${alignr} ${top pid 1} ${top cpu 1}
 |   ${top name 2} ${alignr} ${top pid 2} ${top cpu 2}
 |   ${top name 3} ${alignr} ${top pid 3} ${top cpu 3}
 |   ${top name 4} ${alignr} ${top pid 4} ${top cpu 4}
 |   ${top name 5} ${alignr} ${top pid 5} ${top cpu 5}
 |
===
${font monofur:size=9}${alignc}Conky v${conky_version}${font}
]];

horizontal 1920x1080 (and, tell me if you get correct values at downspeed and upspeed  lol  )

conky.config = {
-- pkill -xf "conky -c /home/unklar/S11/cmus_conkyrc9" &
-- @unklar 2020-01-17; v10 2020-08-18

	use_xft = true,
--xftfont Input Mono:size=8
--xftfont monofur:size=9
--xftfont monospace:size=8
--xftfont DejaVu Sans Mono:size=8.5
	font = 'Hack-Regular:size=8',
	xftalpha = 0.8,
	text_buffer_size = 2048,

	update_interval = 1,

	total_run_times = 0,

	own_window = true,
	own_window_transparent = true,
	own_window_type = 'normal',
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
--own_window_argb_visual yes
--own_window_argb_value 150

--default_bar_size 0 5
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	stippled_borders = 0,
--border_inner margin 5
	border_width = 1,

	default_color = 'ffffff',
--default_shade_color 000000
--default_outline_color ffffff
--own_window_colour 333333
	color1 = '66FFFF',

--alignment top_left
--alignment top_right
	alignment = 'bottom_left',
--alignment bottom_right
--alignment middle_right
	minimum_width = 1900, minimum_height = 10,
	maximum_width = 1900,
	gap_x = 10,
	gap_y = 10,

	double_buffer = true,
	no_buffers = true,
	uppercase = false,
	cpu_avg_samples = 2,
	net_avg_samples = 2,
	override_utf8_locale = true,
	use_spacer = 'none',
	imlib_cache_size = 0,
	
-----LUA-----
	lua_load = '~/LUA/draw-bg.lua',


};

conky.text = [[
${lua conky_draw_bg 10 0 0 0 0 0x000000 0.4}\
${goto 5}${nodename} | ${kernel} \
${goto 265}|| Weather: ${font DejaVu Sans:size=8}${execpi 1200 curl -s 'wttr.in/lichtenstein_sachsen?format=+%c+%t+%w+%P+%h+%m'}${font} \
${goto 560}|| £ ${execpi 1200 curl gbp.rate.sx/1eur?TFq -s | cut -c1-5}  € ${execpi 1200 curl eur.rate.sx/1gbp?TFq -s | cut -c1-5} \
${goto 680}|| System: ${cpu cpu1} | ${cpu cpu2} | ${cpu cpu3} | ${cpu cpu4} \
${goto 860}| Entropy: ${entropy_avail} / ${entropy_poolsize} - ${entropy_perc} %\
${goto 1050}| GPU Temp: ${hwmon 0 temp 1}°\
${goto 1140}| root: ${fs_free /root} / ${fs_size /root}\
${goto 1310}| RAM: ${exec free -h --si | awk 'NR==2{printf $3}'} \
${goto 1400}| load: ${loadavg} \
${goto 1560}|| Net  Up: ${upspeedf enp2s0} \
${goto 1670} DL: ${downspeedf enp2s0} \
${goto 1750}|| Boot: ${execi 86400 who -b | cut -c23-} 
]];

Offline

#1484 2021-03-29 13:00:46

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,591

Re: Show us your conky

Thank you unklar.

I wanted to check out the weather portion of the conky.
It does not match my little "bash" version off wttr weather

Bash aliases:

alias caba='curl wttr.in/buenos+aires?format="+Buenos+Aires,+Argentina\n+%C\n+T:+%t+ST:+%f+Hum:+%h\n+Wind:+%w+BAR:+%P+Rain:+%p\n+Dawn:+%D+SunRise:+%S\n+Zenith:+%z\n+Sunset:+%s+Dusk:+%d\n"'

alias caba2='curl wttr.in/Buenos_Aires_Argentina?q?0T?Q'

conky:

Weather
 |
 |
   +  ${goto 5}${texeci 1200 curl 'wttr.in/buenos+aires+argentina?q?0T?Q'}
 |
 |
${texeci 1200 curl 'wttr.in/buenos+aires?format=+Buenos+Aires,+Argentina\n+%C\n+T:+%t+ST:+%f+Hum:+%h\n+Wind:+%w+BAR:+%P+Rain:+%p\n+Dawn:+%D+SunRise:+%S\n+Zenith:+%z\n+Sunset:+%s+Dusk:+%d\n'}
 |
Net
 |
 |   Up:${goto 100}${upspeedf enp6s0}${goto 170}${totalup enp6s0}
 |   DL:${goto 100}${downspeedf enp6s0}${goto 170}${totaldown enp6s0}
 |
===
${alignc}Conky v${conky_version}

The net function
Have no idea is conky is correct or not but have always used it.  See my vnstat conky.
2021-03-29-095557-S11.jpg


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#1485 2021-03-29 19:53:49

unklar
Member
From: #! BL
Registered: 2015-10-31
Posts: 1,437

Re: Show us your conky

^^"The ways of the Lord are unsearchable."  big_smile

Works for me

curl 'wttr.in/buenos_aires_argentina?q?0T?Q'
      \   /     Sunny
       .-.      21 °C          
    ― (   ) ―   ↖ 3 km/h       
       `-’      10 km          
      /   \     0.0 mm         

XvjHxsxt.png

Offline

#1486 2021-03-29 20:18:01

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,591

Re: Show us your conky

I'm going going crazy .. now it works for me to without editing my aliases.

? ? ? ? ? ?

 29 Mar 21 @ 17:04:06 ~
   $ curl 'wttr.in/buenos_aires_argentina?q?0T?Q'
      \   /     Sunny
       .-.      21 °C          
    ― (   ) ―   ↖ 3 km/h       
       `-’      10 km          
      /   \     0.0 mm         
 
 29 Mar 21 @ 17:04:10 ~
   $ caba2
      \   /     Sunny
       .-.      21 °C          
    ― (   ) ―   ↖ 3 km/h       
       `-’      10 km          
      /   \     0.0 mm         
 
 29 Mar 21 @ 17:05:50 ~
   $ caba
 Buenos Aires, Argentina
 Partly cloudy
 T: +22°C ST: +25°C Hum: 65%
 Wind: ↑11km/h BAR: 1016hPa Rain: 0.0mm
 Dawn: 06:38:45 SunRise: 07:04:23
 Zenith: 12:58:34
 Sunset: 18:51:49 Dusk: 19:17:24
 
 29 Mar 21 @ 17:06:00 ~
   $ 
alias caba='curl wttr.in/buenos+aires?format="+Buenos+Aires,+Argentina\n+%C\n+T:+%t+ST:+%f+Hum:+%h\n+Wind:+%w+BAR:+%P+Rain:+%p\n+Dawn:+%D+SunRise:+%S\n+Zenith:+%z\n+Sunset:+%s+Dusk:+%d\n"'

alias caba2='curl wttr.in/Buenos+Aires+Argentina?q?0T?Q'

{shaking head as I walk off into the sunset}


NO Wait. there are differences!


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#1487 2021-03-29 20:21:00

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,591

Re: Show us your conky

 29 Mar 21 @ 17:17:05 ~
   $ caba
 Buenos Aires, Argentina
 Partly cloudy
 T: +22°C ST: +25°C Hum: 65%
 Wind: ↑11km/h BAR: 1016hPa Rain: 0.0mm
 Dawn: 06:38:45 SunRise: 07:04:23
 Zenith: 12:58:34
 Sunset: 18:51:49 Dusk: 19:17:24
 
 29 Mar 21 @ 17:17:13 ~
   $ caba2
      \   /     Sunny
       .-.      21 °C          
    ― (   ) ―   ↖ 3 km/h       
       `-’      10 km          
      /   \     0.0 mm         
 
 29 Mar 21 @ 17:17:17 ~
   $ caba3
buenos_aires_argentina
 Partly cloudy
 T: +22°C ST: +25°C Hum: 65%
 Wind: ↑11km/h BAR: 1016hPa Rain: 0.0mm
 Dawn: 06:38:45 SunRise: 07:04:23
 Zenith: 12:58:34
 Sunset: 18:51:49 Dusk: 19:17:24
 
 29 Mar 21 @ 17:17:21 ~
   $ caba4
      \   /     Sunny
       .-.      21 °C          
    ― (   ) ―   ↖ 3 km/h       
       `-’      10 km          
      /   \     0.0 mm         
 
 29 Mar 21 @ 17:17:26 ~
   $ 
##### WTTR #####
##### https://github.com/chubin/wttr.in/blob/master/README.md

##alias caba='curl -s 'wttr.in/buenos_aires_argentina?format=+%C+%t+%w+%P+%h+%m''        # Waether
alias caba='curl wttr.in/buenos+aires?format="+Buenos+Aires,+Argentina\n+%C\n+T:+%t+ST:+%f+Hum:+%h\n+Wind:+%w+BAR:+%P+Rain:+%p\n+Dawn:+%D+SunRise:+%S\n+Zenith:+%z\n+Sunset:+%s+Dusk:+%d\n"'
alias caba2='curl wttr.in/Buenos+Aires+Argentina?q?0T?Q'
alias caba3='curl wttr.in/buenos+aires?format="buenos_aires_argentina\n+%C\n+T:+%t+ST:+%f+Hum:+%h\n+Wind:+%w+BAR:+%P+Rain:+%p\n+Dawn:+%D+SunRise:+%S\n+Zenith:+%z\n+Sunset:+%s+Dusk:+%d\n"'
alias caba4='curl wttr.in/buenos_aires_argentina?q?0T?Q'

Time to hit that link. sane sww why the difference!


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#1488 2021-04-01 17:05:47

ohnonot
...again
Registered: 2015-09-29
Posts: 5,383
Website

Re: Show us your conky

I recently stumbled on a conky lua tutorial which made me realise just how flexible the new config format is - because it's just a lua script! Very powerful.

I wrote an article about it with more detail. You can see how I inject variables into the conky.config section.
There's also a lot to be said for conky templates - I should've started using them years ago... but it's the combination of lua + conky that really opens doors to new dimensions.


Please use CODE tags for code.
Search youtube without a browser: repo | thread
BL quote proposals to this thread please.
my repos / my repos

Offline

#1489 2021-04-03 07:36:04

unklar
Member
From: #! BL
Registered: 2015-10-31
Posts: 1,437

Re: Show us your conky

^mrpeachy would have his true joy with it.  lol
I didn't understand the LUA programming language even then.

In the end, Conky will then only be a Klicki-Bunti tool.  cry

Do you know that too ?

Offline

#1490 2021-04-03 12:33:37

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,591

Re: Show us your conky

Well done ohnonot.  KUDOS!

Yea, you're right unklar, mrpeachy, falldown and a few others would have really enjoyed that for sure.

Unfortunately I cannot wrap my head around coding so I'll stick with v1.9 as long as it works for me.

After that I guess I will bite the bullet and "copy someone else's work" and tweak it to fit.


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#1491 2021-04-06 19:58:09

ohnonot
...again
Registered: 2015-09-29
Posts: 5,383
Website

Re: Show us your conky

^ Thanks. It really isn't that different from shell scripting, except files and external commands require more handling (after all, a shell is mostly about these things).

unklar wrote:

mrpeachy would have his true joy with it.  lol

Thanks for the link.

unklar wrote:

In the end, Conky will then only be a Klicki-Bunti tool.  cry
Do you know that too ?

I understand neither the comment (isn't scripting the opposite of "colorful clicking"?) nor the question.


Please use CODE tags for code.
Search youtube without a browser: repo | thread
BL quote proposals to this thread please.
my repos / my repos

Offline

#1492 2021-04-06 21:00:12

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,591

Re: Show us your conky

ohnonot wrote:

^ Thanks. It really isn't that different from shell scripting, except files and external commands require more handling (after all, a shell is mostly about these things).

And that is another place I have to ask a million questions and/or "tweak it til it breaks"  smile

Shell scripting {shudders}


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#1493 2021-04-07 09:03:05

unklar
Member
From: #! BL
Registered: 2015-10-31
Posts: 1,437

Re: Show us your conky

ohnonot wrote:
unklar wrote:

In the end, Conky will then only be a Klicki-Bunti tool.  cry
Do you know that too ?

I understand neither the comment (isn't scripting the opposite of "colorful clicking"?) nor the question.


^Sorry, Both have nothing to do with each other - forget it. wink [deutsche Sprache, schwere Sprache]

The correct wording should be: "Do you know this too?"

Last edited by unklar (2021-04-07 09:31:02)

Offline

#1494 2021-04-08 13:05:01

sleekmason
zoom
From: Ozarks
Registered: 2018-05-22
Posts: 570
Website

Re: Show us your conky

ohnonot wrote:

I recently stumbled on a conky lua tutorial which made me realise just how flexible the new config format is - because it's just a lua script! Very powerful.

I wrote an article about it with more detail. You can see how I inject variables into the conky.config section.
There's also a lot to be said for conky templates - I should've started using them years ago... but it's the combination of lua + conky that really opens doors to new dimensions.

---

Thank you for your article!

Trying to get this to work.  Won't grab the colors.lua? ...

Opening conky in terminal shows no errors. (calling with both conky.conf, or renaming to "conky.lua" and calling with "conky -c conky.lua"

Here is what I have:

-- get current GTK theme
cmd = io.popen('grep "^[[:space:]]*gtk-theme-name" "$XDG_CONFIG_$HOME/.config/gtk-3.0/settings.ini" | cut -d\\= -f2')
theme = cmd:read('*a')
io.close(cmd)

-- try to find colors.lua in $HOME's GTK theme folder...
theme_file = os.getenv("HOME") .. '/.local/share/themes/' .. string.gsub(theme, '[\n]+', '') .. '/conky/colors.lua'
-- ...test if file exists and is readable
f = io.open(theme_file,"r")
if f~=nil then
    io.close(f)
    -- "source" it
    dofile(theme_file)
else
    -- fallback to default colors
    foreground = "CB0D09"
    -- ...
    white0     = "CB0D09"
    -- ...
    white1     = "CB0D09"
    -- etc. ...
end

-- more variables to be used inside conky.config
largefont = 'Cascadia Mono:style=ExtraLight:size=20'

conky.config = {

--  Window Settings
   own_window = true,
   own_window_type = 'desktop',
   own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky',
   own_window_colour = '#182423',
   own_window_class = 'Conky',
   own_window_transparent = true,
--   own_window_argb_visual = true,
--   own_window_argb_value = 1000,




    minimum_width = 180, minimum_height = 0, 
    maximum_width = 180,

    gap_x = 2,-- left | right
    gap_y = 28,-- up | down

    alignment = 'top_right',
    use_xft = true,

--font = 'DejaVu Sans regular:size=10',

    xftalpha = 1,

-- Force UTF8
    override_utf8_locale = true,

    uppercase = false,

    draw_shades = false,
    default_shade_color = '000000',

    draw_outline = false,
    default_outline_color = '000000',

 
 --default_color = '#617B80',
    draw_borders = false,
    stippled_borders = 0,
    border_inner_margin = 5,
    border_outer_margin = 0,
    border_width = 1,
    draw_graph_borders = true,
--default_graph_height = 15,
--default_graph_width = 40,
 
    background = true,
    use_spacer = 'none',

--text_buffer_size = 3114,
    no_buffers = true,
    short_units = true,

    imlib_cache_size = 0,
    double_buffer = true,

--max_user_text = 16384,

--temperature_unit = 'Fahrenheit',

-- Update interval in seconds
    update_interval = 1,

--  End Miscellaneous Section
};


conky.text = [[
${font Dejavu Sans:Book:size=12}${execi 999999 lsb_release -is} $alignr${time %T}
${hr}
${font Dejavu Sans:Book:size=10}Kernel${alignr}${kernel}
Governor: ${alignr}${execpi 120 $HOME/.config/conky/scripts/gov}
IO Sched: ${alignr}${ioscheduler /dev/sda}

Uptime:${alignr}${uptime}
Total Installed: ${alignr}${execpi 360 $HOME/.config/conky/scripts/apps}
Processes:${alignr}${processes}
CPU:${alignr}${cpu cpu0}%
${cpubar 4 ,60}

${color}Ram:${alignr}$mem  / $memmax
${membar 4} 
${color}Swap:${alignr}$swap  / $swapmax
${swapbar 4}

Root: $alignr ${fs_used /} / ${fs_size /}
${fs_bar 4 /}
Home: $alignr ${fs_used /home} / ${fs_size /home}
${fs_bar 4 /home}

Up: $alignr${upspeed wlp2s0}
$alignr${upspeedgraph wlp2s0 8,180}
Down: $alignr${downspeed wlp2s0}
$alignr${downspeedgraph wlp2s0 8,180}

Battery:$alignr${battery_percent BAT0}%
$alignr${battery_bar 4,180 BAT0}

${execi 3114 fortune -s | fold -s -w24}

${execpi 20 $HOME/.config/conky/scripts/drive}

${execpi 600 $HOME/.config/conky/scripts/bunsenweather.sh}
]];

And then made a folder:

/home/sleekmason/.local/share/themes/Lilidog-Clay/conky/colors.lua

Used the nordic colors you provided as a template, then changed the foreground/background to test.
Made everything executable.

Anyhow, I changed all colors to red to check both the colors.lua, and the fallback colors, but conky comes out "white" every time.

What am I missing?

Offline

#1495 2021-04-08 13:51:01

unklar
Member
From: #! BL
Registered: 2015-10-31
Posts: 1,437

Re: Show us your conky

^hm, as I understand it, you left out the [template].

But these are necessary for the red to show up for you.

Offline

#1496 2021-04-08 14:45:39

sleekmason
zoom
From: Ozarks
Registered: 2018-05-22
Posts: 570
Website

Re: Show us your conky

unklar wrote:

^hm, as I understand it, you left out the [template].

But these are necessary for the red to show up for you.

----

ugh. I saw/deleted that part roll  Didn't think it was relevant to the color change part.

Assuming this is what you are talking about?

-- header
-- \1 - header text
template0 = [[$color0${font ]]..largefont..[[}\1$font${voffset 8}$color]],
-- epsi-rns.github.io/desktop/2019/06/11/modularized-conky.html
template1 = os.getenv("HOME") .. '/documents/Notes/.conky-notes.txt',

Guess I have more to do here. The template part has lost me.

Last edited by sleekmason (2021-04-08 14:59:03)

Offline

#1497 2021-04-08 17:45:53

unklar
Member
From: #! BL
Registered: 2015-10-31
Posts: 1,437

Re: Show us your conky

sleekmason wrote:

Assuming this is what you are talking about?

Yes.
here @ononot defines the [color.lua] color

template0 = [[$color0${font ]]..largefont..[[}\1$font${voffset 8}$color]],

and
here he defines a text on his machine

template1 = os.getenv("HOME") .. '/documents/Notes/.conky-notes.txt',

below
TEXT in conkyrc (conky.text = [[ )
defines he his conky (the log of the journal)

${template0 Latest\ journal\ entries}
${journal 20}

Finally he defines the conditions to change the color,
depending on whether the journal or the text should be displayed.

${if_empty ${cat ${template1}}}\
$else\
${template0 Notes}
${cat ${template1}}${endif}

I confess, I have not been able to do this under lua either.   ops  big_smile

---------------
whereby, if I look at it again, he writes the journal after

/documents/Notes/.conky-notes.txt

to then, depending on the subject, change the color.
Anyway, he will explain...   big_smile

Last edited by unklar (2021-04-08 18:12:26)

Offline

#1498 2021-04-09 12:24:14

unklar
Member
From: #! BL
Registered: 2015-10-31
Posts: 1,437

Re: Show us your conky

Hey @Sector11,

I stumbled across Crinos512 by chance this morning and had to realize, with python it unfortunately doesn't work anymore. We are yes at python3.
So I had to do the whole thing "on foot" and can tell you, your 1.9 you have created clean, which is why it also runs flawlessly with 1.10.  smile

2021-04-09-13-46-49_scrot.th.png link

Offline

#1499 2021-04-09 13:20:53

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,591

Re: Show us your conky

Interesting, I have 2 versions of python installed.

 09 Apr 21 @ 10:04:14 ~
   $ ls /usr/bin/python*
/usr/bin/python  /usr/bin/python2  /usr/bin/python2.7  /usr/bin/python3  /usr/bin/python3.7  /usr/bin/python3.7m  /usr/bin/python3m
 
 09 Apr 21 @ 10:04:17 ~
   $ 

Which of course means it still works here.


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#1500 2021-04-09 14:24:35

unklar
Member
From: #! BL
Registered: 2015-10-31
Posts: 1,437

Re: Show us your conky

^^Yeah, I can only serve with this

ls /usr/bin/python*
/usr/bin/python3  /usr/bin/python3.9

look again on the top left in my picture...   big_smile

Offline

Board footer

Powered by FluxBB