Conky Showoff thread

Forum rules
Before you post please read how to get help
User avatar
banjo
Level 1
Level 1
Posts: 34
Joined: Thu Jun 22, 2017 4:31 pm
Location: Reading, Massachusetts

Re: Conky Showoff thread

Post by banjo » Fri Feb 02, 2018 7:45 pm

Some of the behavior of Conky is a bit obscure. So I have been looking around to find out what execi actually does. Here is what I think is happening, although I could be wrong.

Conky has a loop that processes all of the code in conky.text every "update_interval" seconds at every iteration of the loop. I think that the "interval" of execi is actually a loop counter. So if you call "execi 10" the script gets called every 10th iteration through the basic loop. With an update_interval = 1, and the execi interval = 10, the script called by execi will be executed every 10th iteration, once every 10 seconds.

I have confirmed that the script actually does get called less frequently based on the interval setting, even though all of the lines in conky.text are processed for every iteration. Conky remembers the most recent output from the script, and it displays that on the screen at the regular looping interval. This is important to know because.......

There is a bug in conky that makes it fail to call the execi script the first time through. So if you want to call a script every five minutes, and you set "update_interval=300", the output from the script will not show up for 5 minutes. That is the way it works on my computer.

What this tells you is that for a script you want to call infrequently, you should set the update_interval to small number like 1 second, and then use execi with a larger interval. I put my weather conky up with the basic loop counter set to 300 seconds, using exec, and it did not update the display at all for the first 5 minutes. So I then set the update_interval = 1 second and used "execi 300 <script>" and it updated after one second, even though the script itself was being called every 5 minutes.

Banjo
(_)=='=~

Edit: I have run some tests, and the "interval" in execi is not just a loop counter. It is actually expressed in seconds. If I set update_interval = 2 and execi interval = 10, the script is called 5 times, not 10 times. So I have to retract some of my assumptions above. The execi interval is actually the number of seconds between calls to the script. The output from previous calls to the script is processed every 2 seconds.
If only the best bird sang, the forest would be a very quiet place.

User avatar
trytip
Level 6
Level 6
Posts: 1012
Joined: Tue Jul 05, 2016 1:20 pm

Re: Conky Showoff thread

Post by trytip » Fri Feb 02, 2018 11:37 pm

i still use the old conky
Image

Code: Select all

# Name: Metro Style Conky
#
# Author: Kant-o (feedback via gnome-look).

# - Conky settings - #
alignment bottom_left
background yes
border_width 0
cpu_avg_samples 1
default_color ffffff
draw_outline no
draw_borders no
draw_shades no
use_xft yes
xftfont Ubuntu:size=12

# size of text area
minimum_size 260 220
maximum_width 240
max_text_width 240

no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_transparent no
own_window_class Conky
#all options for own_window_type are normal, desktop, dock, panel or override
own_window_type normal
own_window_hints undecorated,sticky,skip_taskbar,skip_pager,below
stippled_borders 0
update_interval 3.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

own_window_colour 2E3436

###Defining Colors###
#Default White#
default_color 2F343F
#Default MY Light Green#
#default_color 90EE90
default_outline_color 000000
default_shade_color 000000
#Shades of Gray#
color3 DDDDDD
color2 AAAAAA
color3 888888
#Orange#
color4 EF5A29
#MY Light Green#
color5 90EE90
#MY Blue Light TEXT#
color6 55ABFF
#Light Orange#
color7 FFA300
#MY Blue Light BARS#
color8 1E90FF
#MY Dark Gray#
color9 2E3436
#MY Dark Red#
color0 310000
#My Blue Graph#
#001030 0057FF#
#My Gray Graph#
#474747 E9E9E9#
#My Orange Graph#
#562E00 FF8800#
###End Color###

gap_x 20
gap_y 55
own_window_argb_value 0
own_window_argb_visual no
TEXT
${alignc}${font Ubuntu:normal:size=12}${color7}Open ports : ${color5}${tcp_portmon 1 65535 count}
${color6}${hr 1}${color}
${voffset 1}${goto 0}${font Ubuntu:normal:size=12}${color7}${offset 10}IP:${alignr} PORT:
${goto 5}${font Ubuntu:normal:size=11}${color5}${tcp_portmon 1 65535 rip  0}${alignr 1}${tcp_portmon 1 65535 rport  0}
${goto 5}${font Ubuntu:normal:size=11}${color5}${tcp_portmon 1 65535 rip  1}${alignr 1}${tcp_portmon 1 65535 rport  1}
${goto 5}${font Ubuntu:normal:size=11}${color5}${tcp_portmon 1 65535 rip  2}${alignr 1}${tcp_portmon 1 65535 rport  2}
${goto 5}${font Ubuntu:normal:size=11}${color5}${tcp_portmon 1 65535 rip  3}${alignr 1}${tcp_portmon 1 65535 rport  3}
${goto 5}${font Ubuntu:normal:size=11}${color5}${tcp_portmon 1 65535 rip  4}${alignr 1}${tcp_portmon 1 65535 rport  4}
${goto 5}${font Ubuntu:normal:size=11}${color5}${tcp_portmon 1 65535 rip  5}${alignr 1}${tcp_portmon 1 65535 rport  5}
${goto 5}${font Ubuntu:normal:size=11}${color5}${tcp_portmon 1 65535 rip  6}${alignr 1}${tcp_portmon 1 65535 rport  6}
${goto 5}${font Ubuntu:normal:size=11}${color5}${tcp_portmon 1 65535 rip  7}${alignr 1}${tcp_portmon 1 65535 rport  7}
${goto 5}${font Ubuntu:normal:size=11}${color5}${tcp_portmon 1 65535 rip  8}${alignr 1}${tcp_portmon 1 65535 rport  8}
${goto 5}${font Ubuntu:normal:size=11}${color5}${tcp_portmon 1 65535 rip  9}${alignr 1}${tcp_portmon 1 65535 rport  9}
#${goto 5}${font Ubuntu:normal:size=11}${color5}${tcp_portmon 1 65535 rip  10}${alignr 1}${tcp_portmon 1 65535 rport  10}
#${goto 5}${font Ubuntu:normal:size=11}${color5}${tcp_portmon 1 65535 rip  11}${alignr 1}${tcp_portmon 1 65535 rport  11}
Image

User avatar
trytip
Level 6
Level 6
Posts: 1012
Joined: Tue Jul 05, 2016 1:20 pm

Re: Conky Showoff thread

Post by trytip » Sun Feb 11, 2018 3:56 pm

a collection of conky clocks . extract folder clocks and move to .conky/clocks

Image

download clocks here <<< click download arrow on top right
Image

User avatar
banjo
Level 1
Level 1
Posts: 34
Joined: Thu Jun 22, 2017 4:31 pm
Location: Reading, Massachusetts

Re: Conky Showoff thread

Post by banjo » Sun Feb 11, 2018 5:21 pm

Excellent! I had to change a couple of config parameters to get the transparency to work on my system, but after I did that, it all looks great.

Thanks for posting that.
Banjo
(_)=='=~
If only the best bird sang, the forest would be a very quiet place.

Post Reply

Return to “Compiz, Conky, Docks, & Widgets”