Author Topic: Conky thread, show your work!  (Read 122199 times)

0 Members and 2 Guests are viewing this topic.

Offline excalibur1234

  • Global Moderator
  • *****
  • Posts: 2508
  • Branch: unstable
  • Desktop: net-minimal + LXQt
  • GPU driver: video-nouveau
  • Kernel: 4.6
  • Skill: Intermediate
Re: Conky thread, show your work!
« Reply #540 on: 09. November 2015, 22:48:47 »
i have rewritten my conkys into the new 1.10 syntax. as promised, i share them here.
i have uploaded an old screenshot, because there are no updates available at the moment. my conky setup still looks identical, except for 1 point: the weather display in my main conky does not work reliable anymore (there is a problem with the "execi" command in conky).

here is the source code for my main ~/.conky/conky file. it is only a bash script, which starts all the other conkys. this script is started by autostart with the command
Code: [Select]
~/.conky/conky

and the content of ~/.conky/conky is:
Code: [Select]
#!/bin/bash

sleep 1 && conky -q -d -c ~/.conky/conkyrc
sleep 2 && conky -q -d -c ~/.conky/conkyrc_updates
sleep 1 && conky -q -d -c ~/.conky/conkyrc_desktops


the next file is my main conky on the right edge of my screen: ~/.conky/conkyrc:
Code: [Select]
conky.config = {

--Text color:
default_color = 'white',
color1 = '0AB1FF',
-- color1 = '0ABFFF',
color2 = 'DD4814',
-- color2 = 'FFA300',

--Background color:
-- own_window_colour = '1A1A1A',
-- own_window_colour = 'black',

--Background transparency (0..255) - 0=transparent; 255=solid background
own_window_argb_value = 0,
-- own_window_transparent = true,
 
own_window_argb_visual = true,
own_window = true,
own_window_type = 'normal',
own_window_hints = 'undecorated,sticky,skip_taskbar,skip_pager,below',

draw_shades = false,
draw_outline = false,
draw_borders = false,

use_xft = true,
xftalpha = 1,

no_buffers = true,
double_buffer = true,
text_buffer_size = 2048,

short_units = true,

update_interval = 1,

alignment = 'bottom_right',
gap_x = 18,
gap_y = 4,

maximum_width = 260,

default_bar_height = 9,
default_bar_width = 110,
draw_graph_borders = false,

}
conky.text = [[
${font DejaVuSansCondensed-Bold:size=26}${color1}$alignr ${time %H:%M}$font
${font DejaVuSansCondensed-Bold:size=11}${color1}$alignr${time %A, %d.%B %Y}


${font DejaVuSansCondensed-Bold:size=11}${color}GPU: ${color1}${goto 57}${font DejaVuSansCondensed-Bold:size=9}${execi 29 nvidia-settings -q GPUCoreTemp -t | grep -m 1 "" }°C ${goto 96}${color2}${execbar nvidia-settings -q GPUUtilization -t | cut -d , -f 1 | cut -d = -f 2 }${alignr}${color1}${execi 2 nvidia-settings -q GPUCurrentProcessorClockFreqs -t | grep -m 1 ""} MHz

${font DejaVuSansCondensed-Bold:size=11}${color}CPU ${goto 38}1:${color1} ${goto 57}${font DejaVuSansCondensed-Bold:size=9}${execi 30 sensors | grep 'Core 0:' | cut -c16-17}°C ${goto 96}${color2}${cpubar cpu1}  ${alignr}${color1}${freq_g cpu1} GHz
 ${goto 96}${color2}${cpubar cpu5}  ${color1}
${font DejaVuSansCondensed-Bold:size=11}${color}CPU ${goto 38}2:${color1} ${goto 57}${font DejaVuSansCondensed-Bold:size=9}${execi 31 sensors | grep 'Core 1:' | cut -c16-17}°C ${goto 96}${color2}${cpubar cpu2}  ${alignr}${color1}${freq_g cpu2} GHz
 ${goto 96}${color2}${cpubar cpu6}  ${color1}
${font DejaVuSansCondensed-Bold:size=11}${color}CPU ${goto 38}3:${color1} ${goto 57}${font DejaVuSansCondensed-Bold:size=9}${execi 32 sensors | grep 'Core 2:' | cut -c16-17}°C ${goto 96}${color2}${cpubar cpu3}  ${alignr}${color1}${freq_g cpu3} GHz
 ${goto 96}${color2}${cpubar cpu7}  ${color1}
${font DejaVuSansCondensed-Bold:size=11}${color}CPU ${goto 38}4:${color1} ${goto 57}${font DejaVuSansCondensed-Bold:size=9}${execi 33 sensors | grep 'Core 3:' | cut -c16-17}°C ${goto 96}${color2}${cpubar cpu4}  ${alignr}${color1}${freq_g cpu4} GHz
 ${goto 96}${color2}${cpubar cpu8}  ${color1} ${font DejaVuSansCondensed-Bold:size=11}

${voffset 10}${color}PROCESS ${color1}${font DejaVuSansCondensed-Bold:size=9} $running_processes / $processes ${font DejaVuSansCondensed-Bold:size=11}${color}$alignr CPU       IO      RAM${font DejaVuSansCondensed-Bold:size=9}${color1}
    ${voffset 4}${top name 1} ${goto 136}${top cpu 1}%
    ${top name 2} ${goto 136}${top cpu 2}%
    ${top name 3} ${goto 136}${top cpu 3}%
    ${top name 4} ${goto 136}${top cpu 4}%

    ${top_io name 1} ${goto 190}${top_io io_read 1}/s
                     ${goto 190}${top_io io_write 1}/s

    ${top_mem name 1} $alignr${top_mem mem_res 1}
    ${top_mem name 2} $alignr${top_mem mem_res 2}
    ${top_mem name 3} $alignr${top_mem mem_res 3}
    ${top_mem name 4} $alignr${top_mem mem_res 4}${font DejaVuSansCondensed-Bold:size=11}

${voffset 15}${color}RAM: $alignr${color 143342}${cached} +${color1} ${mem} / ${memmax}
${color2}${membar 9,260}
${color}Swap: ${color1} ${goto 57}${diskio sda2}/s $alignr${swap} / ${swapmax}

${voffset 8}${color}Root: ${color1} ${goto 57}${diskio sda3}/s ${alignr}${fs_used /} / ${fs_size /}
${color2}${fs_bar 9,260 /}${goto 5}${color}${diskiograph sda3 9,52}

${color}Home: ${color1} ${goto 57}${diskio sda4}/s ${alignr}${fs_used /home} / ${fs_size /home}
${color2}${fs_bar 9,260 /home}${goto 5}${color}${diskiograph sda4 9,52}

${color}Data: ${color1} ${goto 57}${diskio sdb2}/s ${alignr}${fs_used /run/media/ex/Daten} / ${fs_size /run/media/ex/Daten}
${color2}${fs_bar 9,260 /run/media/ex/Daten}${goto 5}${color}${diskiograph sdb2 9,52}

${if_existing /proc/net/route enp9s0}${voffset 20}${color}Down: ${color1}${goto 57}${downspeed enp9s0}/s ${alignr} ${color}Up: ${color1}${upspeed enp9s0}/s
${color2}${downspeedgraph enp9s0 24,110 -t} ${alignr}${upspeedgraph enp9s0 24,110 -t} ${color1}
Total: ${totaldown enp9s0}  ${alignr} Total: ${totalup enp9s0}${else}${voffset 25}${color}WLAN:${color1}$alignr${wireless_essid wlp2s0}${font DejaVuSansCondensed-Bold:size=9}$alignr(${wireless_bitrate wlp2s0})${font DejaVuSansCondensed-Bold:size=11}
${color2}${wireless_link_bar 9, 260 wlp2s0}

${color}Down: ${color1}${downspeed wlp2s0}/s ${alignr} ${color}Up: ${color1}${upspeed wlp2s0}/s
${color2}${downspeedgraph wlp2s0 24,110 -t} ${alignr}${upspeedgraph wlp2s0 24,110 -t} ${color1}
Total: ${totaldown wlp2s0}  ${alignr} Total: ${totalup wlp2s0}${endif}
]]


the next file is my update notification display conky (the red text, which shows all the packages, which need to be updated): ~/.conky/conkyrc_updates:
Code: [Select]

conky.config = {

--Text color:
default_color = 'ff2300',

--Background color:
-- own_window_colour = '1A1A1A',
own_window_colour = 'black',

--Background transparency (0..255) - 0=transparent; 255=solid background
own_window_argb_value = 0,

own_window_argb_visual = true,
own_window = true,
own_window_type = 'normal',
own_window_hints = 'undecorated,sticky,skip_taskbar,skip_pager,below',

draw_shades = false,
draw_outline = false,
draw_borders = false,

use_xft = true,
xftalpha = 1,

no_buffers = true,
double_buffer = true,
text_buffer_size = 2048,

update_interval = 11,

alignment = 'bottom_right',
gap_x = 314,
gap_y = 4,

-- maximum_width = 260,


}
conky.text = [[
${execi 22 yaourt -Quaq}${voffset 10}
]]


the last file is my desktop indicator conky (the 3 blue dots in the lower left of my screen): ~/.conky/conkyrc_desktops:
Code: [Select]

conky.config = {

--Text color:
default_color = 'ff2300',

--Background color:
-- own_window_colour = '1A1A1A',
own_window_colour = 'black',

--Background transparency (0..255) - 0=transparent; 255=solid background
own_window_argb_value = 0,

own_window_argb_visual = true,
own_window = true,
own_window_type = 'normal',
own_window_hints = 'undecorated,sticky,skip_taskbar,skip_pager,below',

draw_shades = false,
draw_outline = false,
draw_borders = false,

use_xft = true,
xftalpha = 1,

no_buffers = true,
double_buffer = true,
text_buffer_size = 2048,

update_interval = '0.5',

alignment = 'bottom_right',
gap_x = 314,
gap_y = 4,

-- maximum_width = 260,


}
conky.text = [[
${if_match ${desktop}==1}${color1}${endif}•${color}${if_match ${desktop}==2}${color1}${endif}•${color}${if_match ${desktop}==3}${color1}${endif}•${color}${font}
]]


if you need more information about my conky setup, read this old post: https://forum.manjaro.org/index.php?topic=2991.msg198734#msg198734
« Last Edit: 09. November 2015, 22:51:01 by excalibur1234 »
Need more information? Search here:   Manjaro Forum   |   Manjaro Wiki   |   Arch Wiki

Offline ata

  • Neuling
  • *
  • Posts: 13
  • I'm new. Be nice!
  • Desktop: xfce
  • GPU Card: amd/ati
  • Kernel: 41
  • Skill: Novice
4.1.8-1-lts -ARCH & Manjaro Xfce RedWhite 15.12

                  .    

Offline jluis

  • Neuling
  • *
  • Posts: 1
  • Just another Linux user!
  • Branch: Stable
  • Desktop: XFCE, Cinnamon
  • GPU Card: Nvidia GeForce 7025/nForce 630a
  • GPU driver: non-free
  • Kernel: linux318-x64
  • Skill: Advanced
Registered Linux user since 2015-06-30
Linux User #587893
linuxcounter.net

Offline ata

  • Neuling
  • *
  • Posts: 13
  • I'm new. Be nice!
  • Desktop: xfce
  • GPU Card: amd/ati
  • Kernel: 41
  • Skill: Novice
Re: Conky thread, show your work!
« Reply #543 on: 19. December 2015, 00:09:47 »
thnx bro
4.1.8-1-lts -ARCH & Manjaro Xfce RedWhite 15.12

                  .    

Offline Holmes

  • Mirror Support Team
  • ***
  • Posts: 2039
  • Brazilian and Hispanic Support Team
    • Manjaro Brasil
  • Branch: Stable
  • Desktop: Manjaro XFCE
  • GPU Card: Mobile Intel (R) 945
  • GPU driver: Non-free
  • Kernel: kernellinux
  • Skill: Novice
Re: Conky thread, show your work!
« Reply #544 on: 03. February 2016, 11:43:43 »
hi guys, good morning! i would like to know one thing. the following parameter is to identify updates:

Code: [Select]
${execpi 12000 checkupdates | wc -l}
the number 12000 is of minutes?

vlw fwi, Holmes :)


==> Manjaro Brasil I Manjaro Hispano
==> IRC Manjaro Brasil: #manjaro-br I IRC Manjaro Hispano: #manjaro-es

Offline eugen-b

  • Support Team
  • ****
  • Posts: 3191
  • Branch: testing
  • Desktop: LXDE, Fluxbox, JWM, LXQt, bspwm
  • GPU Card: Intel 82945G/GZ
  • GPU driver: free
  • Kernel: 4.5, 4.6
  • Skill: Intermediate
Re: Conky thread, show your work!
« Reply #545 on: 03. February 2016, 11:55:32 »
must be seconds
Quote
update_interval seconds
Update interval
http://conky.sourceforge.net/docs.html
MSI Wind Nettop, Intel Atom 230 1.6GHz (64bit), 2GB RAM
DEs: NET-minimal + (LXDE / Fluxbox / JWM); LXQt OpenRC
how to install on btrfs subvolumes
http://manjaro.github.io/donate/

Offline excalibur1234

  • Global Moderator
  • *****
  • Posts: 2508
  • Branch: unstable
  • Desktop: net-minimal + LXQt
  • GPU driver: video-nouveau
  • Kernel: 4.6
  • Skill: Intermediate
Re: Conky thread, show your work!
« Reply #546 on: 03. February 2016, 18:22:53 »
yes, that value is given in seconds.


the best and latest documentation for conky is no longer on conky's webpage but in the man page:
Code: [Select]
man conky

if you want to read it in your web browser, do:
Code: [Select]
man -H conky


p.s.: sorry, if eugen-b's link also offers the latest documentation (i.e. the documentation of conky 0.10 with the new syntax). i have not checked that.
Need more information? Search here:   Manjaro Forum   |   Manjaro Wiki   |   Arch Wiki

Offline Holmes

  • Mirror Support Team
  • ***
  • Posts: 2039
  • Brazilian and Hispanic Support Team
    • Manjaro Brasil
  • Branch: Stable
  • Desktop: Manjaro XFCE
  • GPU Card: Mobile Intel (R) 945
  • GPU driver: Non-free
  • Kernel: kernellinux
  • Skill: Novice
Re: Conky thread, show your work!
« Reply #547 on: 03. February 2016, 18:28:11 »
thank people and has changed my conky.

vlw fwi, Holmes :)


==> Manjaro Brasil I Manjaro Hispano
==> IRC Manjaro Brasil: #manjaro-br I IRC Manjaro Hispano: #manjaro-es

Offline papajoke

  • Vollwertiges Mitglied
  • ***
  • Posts: 135
  • from www.manjaro.fr
  • Branch: stable/testing
  • Desktop: KDE4 and 5 - zsh
  • GPU driver: video-nouveau free
  • Kernel: x64
  • Skill: Intermediate
Re: Conky thread, show your work!
« Reply #548 on: 03. February 2016, 18:58:19 »
hi,

checkupdates is the good method but it's very very slow, you can test in console
use fakeroot (code source)
« Last Edit: 03. February 2016, 19:00:38 by papajoke »

Offline Fatboy

  • Sr. Mitglied
  • ****
  • Posts: 323
  • "Spiral out. Keep going..."
  • Branch: stable
  • Desktop: Xfce, KDE plasma 5
  • GPU Card: nVidia GeForce 210
  • GPU driver: 340.xx
  • Kernel: Manjaro Kernel 4.4 LTS
  • Skill: Intermediate
Re: Conky thread, show your work!
« Reply #549 on: 19. February 2016, 08:22:42 »
 Hi Guys and Gals!
I need your help.
I'm running a custom conky and am trying to find code that will display my time as a alarm clock. Do I need to install a type of font? E.g. blackboxx?
Ideally, I would have the look of this digital clock at the middle-bottom of this conky:
http://helmuthdu.deviantart.com/art/CONKY-COLORS-244793180

"I'm reaching for the random or whatever will bewilder me. Whatever will bewilder me."

Offline eugen-b

  • Support Team
  • ****
  • Posts: 3191
  • Branch: testing
  • Desktop: LXDE, Fluxbox, JWM, LXQt, bspwm
  • GPU Card: Intel 82945G/GZ
  • GPU driver: free
  • Kernel: 4.5, 4.6
  • Skill: Intermediate
Re: Conky thread, show your work!
« Reply #550 on: 19. February 2016, 11:09:11 »
@Fatboy, I don't think an LCD clock has s.th. to do with fonts. It is an algorithm of its own. There will be some implementation for conky somewhere. But could be also a font, "LCD" as search term might give a result.
« Last Edit: 19. February 2016, 11:11:43 by eugen-b »
MSI Wind Nettop, Intel Atom 230 1.6GHz (64bit), 2GB RAM
DEs: NET-minimal + (LXDE / Fluxbox / JWM); LXQt OpenRC
how to install on btrfs subvolumes
http://manjaro.github.io/donate/

Offline Fatboy

  • Sr. Mitglied
  • ****
  • Posts: 323
  • "Spiral out. Keep going..."
  • Branch: stable
  • Desktop: Xfce, KDE plasma 5
  • GPU Card: nVidia GeForce 210
  • GPU driver: 340.xx
  • Kernel: Manjaro Kernel 4.4 LTS
  • Skill: Intermediate
Re: Conky thread, show your work!
« Reply #551 on: 19. February 2016, 11:13:16 »
Thanks eugen-b :)
Will look into it
"I'm reaching for the random or whatever will bewilder me. Whatever will bewilder me."

Offline portal

  • Neuling
  • *
  • Posts: 11
  • Branch: stable
  • Desktop: Xfce
  • GPU driver: free
  • Skill: Novice
Re: Conky thread, show your work!
« Reply #552 on: 28. February 2016, 16:08:41 »
My latest Openbox set up.
« Last Edit: 28. February 2016, 16:11:40 by portal »

Offline CyberWolf2k14

  • Held Mitglied
  • *****
  • Posts: 1184
  • Computers make very fast, very accurate mistakes.
  • Branch: Stable-sysd229-LightDM
  • Desktop: MATE/Cinnamon/GNOME
  • GPU Card: nVidia GeForce GT740
  • GPU driver: nVidia-NF-364.19
  • Kernel: 4.4.9x64 / 4.2.8.9x64 / 4.1.23x64
  • Skill: Intermediate
Re: Conky thread, show your work!
« Reply #553 on: 10. March 2016, 15:09:13 »
After a wee bit of work (mostly formatting), I created a printable version of the latest conky man pages.
In the attached file you will find it in 3 formats:
1. LibreOffice Writer
2. MS Word (I know, but included for balance)
3. PDF format

This way I figure if ya needed to have a "hardcopy" of it you can print it.

Enjoy.
PowerSpec Quad core Intel Core i5-4690K w/ 16GB RAM
Dual Boot = Win 7 Ult x64 and Manjaro 15.12 x64
===================================================
"A computer lets you make more mistakes faster than any invention in human history...
with the possible exceptions of handguns and tequila".

Offline kmartin

  • Vollwertiges Mitglied
  • ***
  • Posts: 203
  • Branch: stable
  • Desktop: Xfce 4.12.3
  • GPU Card: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller
  • GPU driver: video-intel 2013.01.12 true PCI
  • Kernel: 4.2.8-4.1-MANJARO x86_64
  • Skill: Novice
Re: Conky thread, show your work!
« Reply #554 on: 10. March 2016, 16:37:18 »
CyberWolf2k14 Thank you .  :D