Conky (Application)
Jump to navigation
Jump to search
Desktop
Install
- from Debian-like O.S.:
apt-get install conky
- from sources (https://github.com/brndnmtthws/conky/releases):
# shared/opt install schema v1.5.6 #### as common user #### # define applications vars export SOFTWARE_PATH="/home/shared/opt/software" export NAME="conky" export VERSION="1.18.3" export URL="https://github.com/brndnmtthws/conky/archive/refs/tags/v${VERSION}.tar.gz" su - -w SOFTWARE_PATH,NAME,VERSION #### as root #### # install generic dependencies apt-get -q -y install wget coreutils findutils < /dev/null apt-get -q -y install tar gzip cmake libx11-dev libxdamage-dev libxinerama-dev libxft-dev libiw-dev < /dev/null # paths mkdir -m 777 "${SOFTWARE_PATH}/tmp_install/" "${SOFTWARE_PATH}/${NAME}_${VERSION}/" exit #### as common user #### umask 0027 cd "${SOFTWARE_PATH}/tmp_install" wget -c --no-check-certificate "${URL}" tar -xzf "v${VERSION}.tar.gz" cd "conky-${VERSION}" # define compiler flags optimizations (from debian dpkg-buildflags command) export CFLAGS="-g0 -O2 -fstack-protector-strong -Wformat -Werror=format-security -mtune=native -pipe" export LDFLAGS="-s -Wl,-z,relro" # configure, build and install cmake -H. -BRelease -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="${SOFTWARE_PATH}/${NAME}_${VERSION}" -DBUILD_IMLIB2=OFF -DBUILD_WLAN=ON cmake --build Release cd Release make install cd su - -w SOFTWARE_PATH,NAME,VERSION #### as root #### # ensure permissions to destination path cd "${SOFTWARE_PATH}" chown -R root:users "${NAME}_${VERSION}" find "${NAME}_${VERSION}" -type d -exec chmod a-s,u+rwx,g+rx,g-w,o-rwx {} \; find "${NAME}_${VERSION}" -type f -exec chmod a-s,u+rw,g+r,g-w,o-rwx {} \; rm -rf tmp_install ln -s -f -T "${NAME}_${VERSION}" "${NAME}" exit #### as common user #### # test the application "${SOFTWARE_PATH}/${NAME}/bin/conky" --version
Config
- ~/.config/conky/conky.conf
-- conky.conf -- v 2.4.4 -- -- see http://conky.sourceforge.net/config_settings.html -- and http://conky.sourceforge.net/variables.html -- ------------ --- CONF --- ------------ conky.config = { -- basics background = false, -- do not run at background update_interval = 2, cpu_avg_samples = 1, net_avg_samples = 1, diskio_avg_samples = 1, no_buffers = true, -- Subtract (file system) buffers from used memory -- position alignment = 'top_right', minimum_width = 240, minimum_height = 480, -- 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_transparent = false, -- font use_xft = true, -- xftalpha = 1, font = 'DejaVu Sans Mono:style=Book:antialias=true:size=8', -- font = 'Liberation Mono:antialias=true:size=8', override_utf8_locale = true, uppercase = no, -- Prevent text from moving around while using a mono font use_spacer = 'left', -- default drawing double_buffer = true, draw_shades = false, draw_outline = false, draw_borders = false, draw_graph_borders = false, -- colors default_color = '808080', color1 = 'FFFFFF', color2 = 'CCCCCC', color3 = 'F0AA50', color4 = '8080F0', color5 = '151A15', color6 = '55AA55', color7 = '1A1515', color8 = 'AA5555', color9 = 'F08080', -- layout templates template0 = [[${color2}${stippled_hr 2}\n${tab 15}${color3}- \1${alignr}${color4}\2 ${color}]], template1 = [[${if_existing /sys/bus/cpu/devices/\1}${color2}${cpubar cpu\2 6,90} ${freq_g \2}GHz${color}${endif}]], template2 = [[${if_existing /sys/bus/cpu/devices/\1}${alignr}${color2}${freq_g \2}GHz ${cpubar cpu\2 6,90}${color}\n${endif}]], template3 = [[${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} ${color6}Down: ${downspeedf \2} KiB/s${alignr}${color8}Up: ${upspeedf \2} KiB/s${color} ${downspeedgraph \2 30,150 151A15 55AA55}${alignr}${upspeedgraph \2 30,150 1A1515 AA5555}\n${endif}]], template7 = [[\${if_up \2}${color4}\1: ${alignr}${color2} ${addr \2}${color} ESSID: ${wireless_essid \2} ${alignr}Signal: ${wireless_link_qual_perc \2}% ${color6}Down: ${downspeedf \2} KiB/s${alignr}${color8}Up: ${upspeedf \2} KiB/s${color} ${downspeedgraph \2 30,150 151A15 55AA55}${alignr}${upspeedgraph \2 30,150 1A1515 AA5555}\n${endif}]], } ------------ --- TEXT --- ------------ conky.text = [[ \ \ \ ${alignc}@${color9}${nodename}${color} ${color1}${uptime_short}${color} up${alignr}${color1}${time %Y-%m-%d %H:%M %Z}${color}${alignc} \ \ \ ${template0 CPU\ usage: ${cpu}%} ${cpugraph 1A1515 AA5555} ${color2}Processes:${color1} ${processes} ${color2}Running: ${color1}${running_processes}${alignr}${color2}(threads: ${color1}${running_threads}${color2})${color} ${template1 cpu0 1}${template2 cpu1 2}\ ${template1 cpu2 3}${template2 cpu3 4}\ ${template1 cpu4 5}${template2 cpu5 6}\ ${template1 cpu6 7}${template2 cpu7 8}\ ${template1 cpu8 9}${template2 cpu9 10}\ ${template1 cpu10 11}${template2 cpu11 12}\ ${template1 cpu12 13}${template2 cpu13 14}\ ${template1 cpu14 15}${template2 cpu15 16}\ \ ${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 151A15 55AA55} ${template3 RAM ${mem} ${memeasyfree} ${memperc}%} ${color2}${membar 4}${color} ${template3 Swap ${swap} ${swapfree} ${swapperc}%} ${color2}${swapbar 4}${color} \ ${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 151A15 55AA55} ${template5 / /}\ ${template5 /usr /usr}\ ${template5 /var /var}\ ${template5 /srv /srv}\ ${template5 /opt /opt}\ ${template5 /home /home}\ ${template5 /tmp /tmp}\ \ \ \ ${template0 Network\ usage: \ } ${template6 eth0 eth0}\ ${template6 eth1 eth1}\ ${template6 eth2 eth2}\ \ ${template6 ens0 ens0}\ ${template6 ens1 ens1}\ ${template6 ens2 ens2}\ ${template6 ens3 ens3}\ ${template6 ens4 ens4}\ ${template6 ens5 ens5}\ ${template6 ens6 ens6}\ ${template6 ens7 ens7}\ ${template6 ens8 ens8}\ ${template6 ens9 ens9}\ \ ${template6 enp0s0 enp0s0}\ ${template6 enp0s1 enp0s1}\ ${template6 enp0s2 enp0s2}\ ${template6 enp0s3 enp0s3}\ ${template6 enp1s0 enp1s0}\ ${template6 enp1s1 enp1s1}\ ${template6 enp1s2 enp1s2}\ ${template6 enp1s3 enp1s3}\ ${template6 enp2s0 enp2s0}\ ${template6 enp2s1 enp2s1}\ ${template6 enp2s2 enp2s2}\ ${template6 enp2s3 enp2s3}\ ${template6 enp3s0 enp3s0}\ ${template6 enp3s1 enp3s1}\ ${template6 enp3s2 enp3s2}\ ${template6 enp3s3 enp3s3}\ \ ${template7 wlp0s0 wlp0s0}\ ${template7 wlp0s1 wlp0s1}\ ${template7 wlp1s0 wlp1s0}\ ${template7 wlp1s1 wlp1s1}\ ${template7 wlp2s0 wlp2s0}\ ${template7 wlp2s1 wlp2s1}\ ${template7 wlp3s0 wlp3s0}\ ${template7 wlp3s1 wlp3s1}\ ${template7 wlp4s0 wlp4s0}\ ${template7 wlp4s1 wlp4s1}\ ${template7 wlp5s0 wlp5s0}\ ${template7 wlp5s1 wlp5s1}\ \ \ \ ${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}