Conky (Application)

From campisano.org
Jump to navigation Jump to search

Desktop

Install

apt-get install conky

Config

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

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

conky.config = {
    -- basics
    -- background = false,              -- run at background
    update_interval = 2,
    cpu_avg_samples = 1,
    net_avg_samples = 1,
    diskio_avg_samples = 1,
    double_buffer = true,
    no_buffers = true,                  -- Subtract (file system) buffers from used memory

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

    -- window
    own_window = true,
    own_window_type = 'normal',         -- possible values: 'desktop' 'normal' 'panel' 'override'
    own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
    -- own_window_class = 'conky-semi',
    -- own_window_argb_visual = true,
    -- own_window_transparent = true,

    -- font
    -- font = 'Liberation Mono:size=8',
    -- font = 'DejaVu Sans:size=8',
    -- use_xft = true,
    -- xftalpha = 1,
    override_utf8_locale = false,
    -- Prevent text from moving around while using a mono font
    use_spacer = 'left',

    -- 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,

    -- colors
    default_color = '808080',
    color1 = 'FFFFFF',
    color2 = 'CCCCCC',
    color3 = 'FF993D',
    color4 = '8080F0',
    color5 = '80C080',
    color6 = 'F08080',
    color7 = 'C08080',

    -- layout templates
    template0 = [[${color2}${hr 2}\n${tab 15}${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:${tab 26}${color}\2 - \3 ${alignr}${color4}\4${color}]],
    template5 = [[${if_mounted \2}${color2}\1:${tab 26}${color}${fs_used \2} - ${fs_free \2} ${alignr}${color4}${fs_used_perc \2}%${color}
${color2}${fs_bar 4 \2}${color}\n${endif}]],
    template6 = [[\${if_up \2}${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 pid 1}${tab 26}${top name 1}${alignr}${top time 1} ${top cpu 1}%
${top pid 2}${tab 26}${top name 2}${alignr}${top time 2} ${top cpu 2}%
${top pid 3}${tab 26}${top name 3}${alignr}${top time 3} ${top cpu 3}%
${top pid 4}${tab 26}${top name 4}${alignr}${top time 4} ${top cpu 4}%
${top pid 5}${tab 26}${top name 5}${alignr}${top time 5} ${top cpu 5}%
\
\
\
${template0 Memory\ usage: \}
${memgraph 050705 557755}
${template2 RAM ${mem} ${memeasyfree} ${memperc}%}
${color2}${membar 4}${color}
${template2 Swap ${swap} ${swapfree} ${swapperc}%}
${color2}${swapbar 4}${color}
${stippled_hr 2}
${top_mem pid 1}${tab 26}${top_mem name 1}${alignr}${top_mem mem_res 1} ${top_mem mem 1}%
${top_mem pid 2}${tab 26}${top_mem name 2}${alignr}${top_mem mem_res 2} ${top_mem mem 2}%
${top_mem pid 3}${tab 26}${top_mem name 3}${alignr}${top_mem mem_res 3} ${top_mem mem 3}%
${top_mem pid 4}${tab 26}${top_mem name 4}${alignr}${top_mem mem_res 4} ${top_mem mem 4}%
${top_mem pid 5}${tab 26}${top_mem name 5}${alignr}${top_mem mem_res 5} ${top_mem mem 5}%
\
\
\
${template0 Disk\ usage: \}
${diskiograph 050705 557755}
${template5 / /}\
${template5 /usr /usr}\
${template5 /var /var}\
${template5 /srv /srv}\
${template5 /opt /opt}\
${template5 /home /home}\
\
\
\
${template0 Network\ usage: \ }
${template6 wlp1s0 wlp1s0}\
${template6 wlp1s1 wlp1s1}\
${template6 wlp2s0 wlp2s0}\
${template6 wlp2s1 wlp2s1}\
${template6 wlp3s0 wlp3s0}\
${template6 wlp3s1 wlp3s1}\
\
\
\
${template0 Battery\ usage: ${battery_time}\ -\ ${battery_short}}
${color2}${battery_bar 4}${color}
]]

Mobile

Install

  • from google play (play.google.com/store/apps/details?id=it.lorenzo.clw)

Config

width 550
height 850

fontSize 21
fontOutSize 2

fontShadowColor #0e1217
fontShadowBlur 5
fontShadowX 2
fontShadowY 2

fontOutColor #000000
fontColor #ffffff

xOffsetRight 6
xOffsetLeft 6
#bgColor red

#font /system/fonts/DroidSans-Bold.ttf

vSpace 0
color1 #00FFEC

topTime 5

TEXT
${alignc}${fontSize 25}${date %A} ${date %d} ${date %B} ${date %Y}${vSpace -10}${fontSize}
${hline}${vSpace 5}
${fontSize 18}Android ${android}${alignc}kernel ${kernel}${alignr}up ${uptime}${fontSize}

${fontColor color1}${fontSize 23}CPU${alignr}${cpu cpu0}%${fontColor}${fontSize}
${cpubar cpu0}
 ${top shortName 0}${alignr}${top cpu 0}
 ${top shortName 0}${alignr}${top cpu 0}
 ${top shortName 0}${alignr}${top cpu 0}
 ${top shortName 0}${alignr}${top cpu 0}
 ${top shortName 0}${alignr}${top cpu 0}

${fontColor color1}${fontSize 23}RAM${alignr}${mem_used }/${mem_total} ${mem_percent}%${fontColor}${fontSize}
${mem_bar}
 ${topMem shortName 0}${alignr}${topMem mem 0}
 ${topMem shortName 0}${alignr}${topMem mem 0}
 ${topMem shortName 0}${alignr}${topMem mem 0}
 ${topMem shortName 0}${alignr}${topMem mem 0}
 ${topMem shortName 0}${alignr}${topMem mem 0}
 ${topMem shortName 0}${alignr}${topMem mem 0}
 ${topMem shortName 0}${alignr}${topMem mem 0}
 ${topMem shortName 0}${alignr}${topMem mem 0}
 ${topMem shortName 0}${alignr}${topMem mem 0}
 ${topMem shortName 0}${alignr}${topMem mem 0}

${fontColor color1}${fontSize 23}STORAGE${alignr}int: ${fs_used}/${fs_size} ${fs_perc}%${fontColor}${fontSize}
${fs_bar}

${fontColor color1}${fontSize 23}WIFI${fontColor}${fontSize}
 ${ssid}${alignr}${wifi_ip}

${fontColor color1}${fontSize 23}BATTERY${alignr}${battery_charging} ${battery_percent}%${fontColor}${fontSize}
${battery_bar}