Conky example of personalization

Hi to all, hereby I share my configuration for Conky and a image of what can you obtain:

Conky.conf:

    conky.config = {
    alignment = 'top_right',
    background = true,
    border_width = 1,
    cpu_avg_samples = 2,
    default_color = 'white',
    default_outline_color = 'black',
    default_shade_color = 'black',
    color1 = '#32cd32', -- Green
    color2 = '#1e90ff', -- Blue
    color3 = '#ffa500', -- Orange
    color4 = '#9a9d9f', -- Light Gray
    color5 = '#ff0000', -- Red
    draw_borders = false,
    draw_graph_borders = false,
    draw_outline = false,
    draw_shades = false,
    use_xft = true,
    font = 'Cantarell:size=8',
    gap_x = 5,
    gap_y = 0,
    minimum_height = 1080,
    minimum_width = 80,
    maximum_width = 80,
    net_avg_samples = 2,
    no_buffers = true,
    double_buffer = true,
    out_to_console = false,
    out_to_stderr = false,
    extra_newline = false,
    own_window = true,
    --own_window_colour = '#151515',
    own_window_transparent = true,
    own_window_argb_visual = true,
    own_window_argb_value = 255,
    own_window_type = 'normal',
    own_window_class = 'Conky',
    own_window_hints = "undecorated,below,sticky,skip_taskbar,skip_pager",
    stippled_borders = 0,
    update_interval = 2.0,
    uppercase = false,
    use_spacer = 'none',
    show_graph_scale = false,
    show_graph_range = false
}

conky.text = [[
##########################
# OS Section
##########################
${voffset 5}${alignc}$color1${font Cantarell:size=12:weight:Bold}Manjaro
${voffset 0}${alignr}$color4${font}Versione
${alignr}${font Cantarell:size=10}${color}${execi 10000 awk -F= '/EASE=/ {printf $2}' /etc/lsb-release}
${alignr}$color4${font}Code
${alignr}${font Cantarell:size=10}${color}${execi 10000 awk -F= '/NAME/ {print $2}' /etc/lsb-release}
${alignr}$color4${font}Kernel
${alignr}${font Cantarell:size=10}${color}${execi 10000 uname -r | cut -d'-' -f1}
$color4$hr
##########################
# CPU Section
##########################
${voffset -5}$color2${font Cantarell:weight=Bold:size=12}CPU
$color3${cpubar 4}
${voffset -12}${alignr}$color3${font Cantarell:size=12:weight:Bold}${cpu cpu0}%
${voffset -12}$color4${font}Core
${voffset -8}$color4$hr
${color}${font Cantarell:size=10}1${alignr}${cpu cpu1}%
2${alignr}${cpu cpu2}%
3${alignr}${cpu cpu3}%
4${alignr}${cpu cpu4}%
5${alignr}${cpu cpu5}%
6${alignr}${cpu cpu6}%
7${alignr}${cpu cpu7}%
8${alignr}${cpu cpu8}%
${voffset -6}$color4$hr
${alignr}$color4${font}Speed
${alignr}$font$color${freq 1} MHz
${alignr}$color4${font}Temp.
${alignr}${font Cantarell:size=9}$color${hwmon 5 temp 5} °C
${voffset -5}$color4$hr
##########################
# RAM Section
##########################
$color2${font Cantarell:weight=Bold:size=12}RAM
$color3${membar 4}
${voffset -12}${alignr}${font Cantarell:size=11:weight:Bold}$color3$memperc%
${alignr}$color4${font}Usata
${font Cantarell:size=10}${alignr}$color$mem
$color4$hr
##########################
# FILE SYSTEM Section
##########################
$color2${font Cantarell:weight=Bold:size=12} HOME
$color4${fs_bar 4 /home}
${voffset -18}$font$color${fs_used_perc /home} % in uso
$color2${font Cantarell:weight=Bold:size=12} DATI
$color4${fs_bar 4 /run/media/gianmario/DATI}
${voffset -18}$font$color${fs_used_perc /run/media/gianmario/DATI} % in uso
$color4$hr
##########################
# Network Section
##########################
$color2${font Cantarell:weight=Bold:size=12}RETE
${voffset -5}${alignc}$color4${font}IP
${alignr}$color${font Cantarell:size=7}${addr wlp2s0}
${voffset 5}$color4${font}Segnale WiFi
${alignr}$color${font Cantarell:size=9}${wireless_link_qual_perc wlp2s0} %
${alignr}${voffset 0}$color4${font}TX Rate
${alignr}$color${font Cantarell:size=8}${execi 10 iw dev wlp2s0 link | grep tx | cut -d" " -f3} MBit/s
${alignr}${voffset 5}$color4${font}Ricevuti
${downspeedgraph wlp2s0 20,80 06E9F8 2104FA} 
${alignr}$color${font Cantarell:size=9}${downspeed wlp2s0}
${alignr}${voffset 0}$color4${font}Inviati
${upspeedgraph wlp2s0 20,80 FFA300 DD3A21}
${alignr}$color3${font Cantarell:size=9}${upspeed wlp2s0}
]]

You have to change wlp2s0 with your own wifi device obtained with

iw dev

I’m sorry but I can’t yet upload an example image :confused: :confused:

2 Likes

Moving to Contributions

1 Like

Below the image obtainable with the above configuration of CONKY

Thanks to Yochanan to right format the code of Conky.conf :clap: :clap:

1 Like

where is my wlp2s0 ?

and i have no ```
conky.config


thank u

Hi @Fires,

You can start by reading Basic Tips for conky to set up your conky config.

wlp2s0 refers to the network interface name. As @jimmy-red mentioned in his post, you can use iw dev or ip link show to list all interfaces.

1 Like

I share my configuration for Conky and an image too.

It uses Font Awesome 5 for the icons so either ttf-font-awesome or otf-font-awesome needs to be installed on your system.

conky.conf:

conky.config = {
  background = true,
  
  alignment = 'top_right',
  update_interval = 5.0,

  own_window = true,
  own_window_class = 'Conky',
  own_window_type = 'desktop',
  own_window_argb_visual = true,
  own_window_argb_value = 0,
  own_window_colour = '#000000',
  own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
  
  default_color = 'white',
  default_outline_color = 'white',
  default_shade_color = 'white',
  color0 = '#000000',
  color1 = '#ffffff',
  color2 = '#16a086',
  
  no_buffers = true,
  double_buffer = true,
  text_buffer_size = 2048,
  
  gap_x = 10,
  gap_y = 10,
  minimum_width = 100,
  
  uppercase = false,
  use_xft = true,
  font = 'monospace:size=10',
  override_utf8_locale = true,
  
  border_width = 0,
  border_inner_margin = 2,
  border_outer_margin = 2,
  stippled_borders = 5,
  draw_borders = false,
  draw_graph_borders = false,
  
  draw_outline = false,
  draw_shades = false,
  
  show_graph_scale = false,
  show_graph_range = false,

  cpu_avg_samples = 2,
  net_avg_samples = 2,
  
  out_to_console = false,
  out_to_stderr = false,
  extra_newline = false,
}

conky.text = [[
${color2}${font Font Awesome 5 Free:style=Solid}${font} SYSTEM ${hr 2}${color1}
Distro: $alignr Manjaro ${execi 86400 lsb_release -sr}
Desktop: $alignr ${execi 86400 inxi -S | awk '{print $8,$9}'}
Kernel: $alignr $kernel

${color2}${font Font Awesome 5 Free:style=Solid}${font} DISK USAGE ${hr 2}${color1}
/ $alignr ${fs_used /} / ${fs_size /} $alignr (${fs_used_perc /}%)
/home $alignr ${fs_used /home} / ${fs_size /home} $alignr (${fs_used_perc /home}%)

${color2}${font Font Awesome 5 Free:style=Solid}${font} CPU ${hr 2}${color1}
Load: ${cpu cpu0}% $alignr Temp: ${hwmon 4 temp 1}°C
Processes: $processes $alignr Running: $running_processes

${color2}${font Font Awesome 5 Free:style=Solid}${font} GPU ${hr 2}${color1}
Load: ${nvidia gpuutil}% $alignr Temp: ${nvidia temp}°C
Used memory: ${alignr} ${exec nvidia-smi --query-gpu=memory.used --format=csv,noheader} / ${exec nvidia-smi --query-gpu=memory.total --format=csv,noheader}

${color2}${font Font Awesome 5 Free:style=Solid:size=10}${font} MEMORY ${hr 2}${color1}
RAM: $memperc% $membar
SWAP: $swapperc% $swapbar

${color2}${font Font Awesome 5 Free:style=Solid}${font} NETWORK ${hr 2}${color1}
${if_existing /sys/class/net/wlp3s0/operstate up}WLAN: $alignr ${totalup wlp3s0} ${font Font Awesome 5 Free:style=Solid:size=10}$font / ${totaldown wlp3s0} ${font Font Awesome 5 Free:style=Solid:size=10}$font${else}WLAN: $alignr Not connected$endif
${if_existing /sys/class/net/enp4s0/operstate up}ETH: $alignr ${totalup enp4s0} ${font Font Awesome 5 Free:style=Solid:size=10}$font / ${totaldown enp4s0} ${font Font Awesome 5 Free:style=Solid:size=10}$font${else}ETH: $alignr Not connected$endif

${color2}${font Font Awesome 5 Free:style=Solid}${font} BATTERY ${hr 2}${color1}
Status: $alignr ${battery BAT0}
Time remaining: $alignr ${if_empty ${battery_time BAT0}}N/A${else}${battery_time BAT0}$endif

${color2}${font Font Awesome 5 Free:style=Solid}${font} PACKAGES ${hr 2}${color1}
Installed: ${texeci 3600 pamac list -i -q | wc -l} $alignr Updates: ${texeci 3600 pamac checkupdates -a -q | wc -l}
Cache: ${texeci 3600 du -sh /var/cache/pacman/pkg/ | awk '{print $1}'} $alignr Configs: ${texeci 3600 find /etc -regextype posix-extended -regex ".+\.pac(new|save)" | wc -l}
$alignr Orphans: ${texeci 3600 pamac list -o -q | wc -l}

]];

capture:

1 Like

@vcottineau

thank u very much

So Just replace conky.config with urs ?

it looks like i am missing something
i cant find conky under ~/.config/conky/conky.conf

You can create this file by yourself or generate a default config file:

mkdir -p ~/.config/conky && conky --print-config > ~/.config/conky/conky.conf

This command comes from ArchWiki: Conky - ArchWiki

5 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.