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
~/.conky/conky
and the content of ~/.conky/conky is:
#!/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:
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:
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:
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