Application conky

From campisano.org
Jump to navigation Jump to search

Install

apt-get install conky

Config

  • ~/.config/conky/conky.conf
-- conky.conf
-- v 2.1
--
-- see http://conky.sourceforge.net/config_settings.html
-- and http://conky.sourceforge.net/variables.html
--

------------
--- CONF ---
------------

conky.config = {
    -- basics
    update_interval = 1,
    update_interval_on_battery = 2,
    cpu_avg_samples = 1,
    net_avg_samples = 2,
    diskio_avg_samples = 3,
    double_buffer = true,
    no_buffers = true,
    override_utf8_locale = false,

    -- placement
    alignment = 'top_right',
    minimum_width = 240,
    minimum_height = 480,
    -- gap_x = 12,
    -- gap_y = 35,

    -- default drawing
    draw_shades = false,
    draw_outline = false,
    draw_borders = false,
    draw_graph_borders = false,
    -- default_bar_width = 150,
    -- default_bar_height = 5,
    -- default_graph_width = 150,
    -- default_graph_height = 30,
    -- default_gauge_width = 30,
    -- default_gauge_height = 30,
    -- use_xft = true,
    -- xftfont = 'DejaVu Sans:size=8',
    -- xftalpha = 0.9,
    own_window = true,
    -- own_window_class = 'conky-semi',
    own_window_type = 'normal', -- possible values: 'desktop' 'normal' 'panel' 'override'
    own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
    -- own_window_argb_visual = true,
    -- own_window_transparent = true,

    -- colors
    -- font = 'Liberation Mono:size=10',
    default_color = '808080',
    color1 = 'FFFFFF',
    color2 = 'CCCCCC',
    color3 = 'FF993D',
    color4 = '8080F0',
    color5 = '80C080',
    color6 = 'F08080',
    color7 = 'C08080',

    -- layouting
    template0 = [[${color2}${hr 2}\n ${color3}\1${alignr}${color4}\2 ${color}]],
    template1 = [[${if_existing /sys/bus/cpu/devices/\2}${color2}\1: ${color}${freq_g \3} GHz ${color2}${cpubar \3 4}${color}\n${endif}]],
    template2 = [[${color2}\1: ${color}\2 - \3${alignr}${color4}\4${color}]],
    template5 = [[\${if_existing /sys/class/net/\2/operstate up}${color4}\1: ${alignr}${color2} ${addr \2}${color}
ESSID: ${wireless_essid \2} ${alignr}Signal: ${wireless_link_qual_perc \2}%
${color2}Down: ${color5}${downspeedf \2} KiB/s${color2} ${alignr}(${totaldown \2})${color}
${downspeedgraph \2 050705 557755}
${color2}Up: ${color7}${upspeedf \2} KiB/s${color2} ${alignr}(${totalup \2})${color}
${upspeedgraph \2 070505 775555}\n${endif}]],
}

------------
--- TEXT ---
------------

conky.text = [[
${alignc}${color6}${nodename}${color}
${color2}Time:${alignr}${color1}${time}${color}
${color2}Uptime:${alignr}${color1}${uptime}${color}
\
${template0 CPU\ usage: ${cpu}%}
${cpugraph 775555 F0A0A0}
${color2}Processes:${color1} ${processes} ${color2}Running: ${color1}${running_processes}${alignr}${color2}(threads: ${color1}${running_threads}${color2})${color}
${template1 CPU0 cpu0 cpu1}\
${template1 CPU1 cpu1 cpu2}\
${template1 CPU2 cpu2 cpu3}\
${template1 CPU3 cpu3 cpu4}\
${template1 CPU4 cpu4 cpu5}\
${template1 CPU5 cpu5 cpu6}\
${template1 CPU6 cpu6 cpu7}\
${template1 CPU7 cpu7 cpu8}\
${stippled_hr 2}
 ${top name 1}${alignr}${top cpu 1}
 ${top name 2}${alignr}${top cpu 2}
 ${top name 3}${alignr}${top cpu 3}
 ${top name 4}${alignr}${top cpu 4}
 ${top name 5}${alignr}${top cpu 5}
\
${template0 Memory\ usage: \ }
${memgraph 050705 557755}
${template2 RAM ${mem} ${memfree} ${memperc}%}
${color2}${membar 4}${color}
${template2 Swap ${swap} ${swapfree} ${swapperc}%}
${color2}${swapbar 4}${color}
${stippled_hr 2}
 ${top_mem name 1}${alignr}${top_mem mem 1}
 ${top_mem name 2}${alignr}${top_mem mem 2}
 ${top_mem name 3}${alignr}${top_mem mem 3}
 ${top_mem name 4}${alignr}${top_mem mem 4}
 ${top_mem name 5}${alignr}${top_mem mem 5}
\
${template0 Disk\ usage: \ }
${diskiograph 050705 557755}
${template2 Root ${fs_used\ /} ${fs_free\ /} ${fs_used_perc\ /}%}
${color2}${fs_bar 4 /}${color}
${template2 Home ${fs_used\ /home} ${fs_free\ /home} ${fs_used_perc\ /home}%}
${color2}${fs_bar 4 /home}${color}
\
${template0 Network\ usage: \ }
\
${template5 Enp2s0f0 enp2s0f0}\
${template5 Wlp3s0b1 wlp3s0b1}\
\
${template0 Battery\ usage: ${battery_time}\ -\ ${battery_short}}
${color2}${battery_bar 4}${color}
]]