Last active
October 17, 2019 18:17
-
-
Save NTICompass/a7c66e99c9113574b0ec8e65a57b67ab to your computer and use it in GitHub Desktop.
Conky Config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- https://forum.manjaro.org/t/conky-thread-show-your-work/2951/326 | |
conky.config = { | |
use_xft = true, | |
xftalpha = 0.8, | |
update_interval = 1.0, | |
total_run_times = 0, | |
own_window = true, | |
own_window_transparent = true, | |
own_window_argb_visual = true, | |
own_window_type = 'normal', | |
own_window_class = 'conky-semi', | |
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager', | |
background = true, | |
double_buffer = true, | |
imlib_cache_size = 0, | |
no_buffers = true, | |
uppercase = false, | |
cpu_avg_samples = 2, | |
override_utf8_locale = true, | |
-- placement | |
alignment = 'top_right', | |
xinerama_head = 2, | |
gap_x = 25, | |
gap_y = 25, | |
minimum_width = 400, | |
maximum_width = 400, | |
-- default drawing | |
draw_shades = false, | |
draw_outline = false, | |
draw_borders = false, | |
draw_graph_borders = true, | |
default_bar_width = 150, | |
default_bar_height = 5, | |
default_graph_width = 150, | |
default_graph_height = 12, | |
default_gauge_width = 20, | |
default_gauge_height = 20, | |
-- colors | |
font = 'TerminessTTF Nerd Font Mono:size=10', | |
default_color = 'FFFFFF', | |
color1 = '91C7D6', | |
color2 = 'E04614', | |
color3 = '9E0C22', | |
-- layouting | |
template0 = [[${font Comfortaa:bold:size=11}${color2}\1 ${color3}${hr 2}${font}]], | |
template1 = [[${color1}\1]], | |
template2 = [[${goto 100}${color}]], | |
template3 = [[${goto 180}${color}${alignr}]], | |
}; | |
conky.text = [[ | |
${template0 Info} | |
${template1 Date} ${template3}${color}${time %A,}${color}${time %e %B %G} | |
${template1 Time} ${template3}${time %T} | |
${if_match "~" != "${execi 10 playerctl metadata || echo '~'}"}\ | |
${template1 Media}\ | |
${if_match ${execi 10 playerctl metadata -f "{{artist}} - {{title}}" | wc -m} <= 35}\ | |
${template3}${execi 10 playerctl metadata -f "{{artist}} - {{title}}"} | |
${else}\ | |
${scroll 35 5 ${template3}${execi 10 playerctl metadata -f "{{artist}} - {{title}}"}} | |
${endif}${endif} | |
#${template1 Song} ${template3}${moc_artist} - ${moc_song} @ ${moc_bitrate} | |
${template0 System} | |
${template1 Hostname} ${template3}${nodename} | |
${template1 ${sysname}} ${template3}${kernel}-${machine} | |
#${template1 Battery} ${template3}${battery BAT0} - ${battery_time BAT0} | |
${template1 Uptime} ${template3}${uptime_short} | |
${template1 CPU} ${template3}${freq_g}GHz | |
${template1 CPU\ Temperature} ${template3}${hwmon 1 temp 2}°C | |
${template0 Processors} | |
${template1 Load} ${template2}${loadavg 1} ${template3}${loadgraph} | |
${template1 Core\ 1} ${template2}${cpu cpu1}% ${template3}${cpubar cpu1} | |
${template1 Core\ 2} ${template2}${cpu cpu2}% ${template3}${cpubar cpu2} | |
${template1 Core\ 3} ${template2}${cpu cpu3}% ${template3}${cpubar cpu3} | |
${template1 Core\ 4} ${template2}${cpu cpu4}% ${template3}${cpubar cpu4} | |
${template1 Top} ${template2}${top name 1} ${template3}${top cpu 1} | |
${template2}${top name 2} ${template3}${top cpu 2} | |
${template2}${top name 3} ${template3}${top cpu 3} | |
${template2}${top name 4} ${template3}${top cpu 4} | |
${template2}${top name 5} ${template3}${top cpu 5} | |
${template0 Memory} | |
${template1 Memory} ${template2}${memperc}% used ${template3}${mem} / ${memmax} | |
${template3}${membar} | |
${template1 Top} ${template2}${top_mem name 1} ${template3}${top_mem mem_res 1} | |
${template2}${top_mem name 2} ${template3}${top_mem mem_res 2} | |
${template2}${top_mem name 3} ${template3}${top_mem mem_res 3} | |
${template2}${top_mem name 4} ${template3}${top_mem mem_res 4} | |
${template2}${top_mem name 5} ${template3}${top_mem mem_res 5} | |
${template0 Swap} | |
${template1 Swap} ${template2}${swapperc}% used ${template3}${swap} / ${swapmax} | |
${template3}${swapbar} | |
${template0 Filesystem} | |
${template1 /} ${template2}${fs_free /} free ${template3}${fs_used /} / ${fs_size /} | |
${template3}${fs_bar /} | |
${template1 /home} ${template2}${fs_free /home} free ${template3}${fs_used /home} / ${fs_size /home} | |
${template3}${fs_bar /home} | |
${template1 /opt} ${template2}${fs_free /opt} free ${template3}${fs_used /opt} / ${fs_size /opt} | |
${template3}${fs_bar /opt} | |
${template1 /var} ${template2}${fs_free /var} free ${template3}${fs_used /var} / ${fs_size /var} | |
${template3}${fs_bar /var} | |
${template1 IO\ Read} ${template2}${diskio_read} ${template3}${diskiograph_read} | |
${template1 IO\ Write} ${template2}$diskio_write ${template3}$diskiograph_write | |
${template1 Top} ${template2}${top_io name 1} ${template3}${top_io io_perc 1}% | |
${template0 Networking} | |
${if_up wlp8s0}\ | |
${template1 IP} ${template3}${addr wlp8s0} | |
${template1 External\ IP} ${template3}${execi 3600 curl ifconfig.me | tail } | |
${template1 AP} ${template3}${wireless_essid wlp8s0} | |
${template1 Signal} ${template2}${wireless_link_qual_perc wlp8s0} ${template3}${wireless_link_bar wlp8s0} | |
${template1 Download} ${template2}${downspeed wlp8s0} ${template3}${downspeedgraph wlp8s0} | |
${template1 Upload} ${template2}${upspeed wlp8s0} ${template3}${upspeedgraph wlp8s0} | |
${template1 Total} ${template3}${totaldown enp9s0}↓ / ${totalup enp9s0}↑ | |
${else}${if_up enp9s0}\ | |
${template1 IP} ${template3}${addr enp9s0} | |
${template1 External\ IP} ${template3}${execi 3600 curl ifconfig.me | tail } | |
${template1 Download} ${template2}${downspeed enp9s0} ${template3}${downspeedgraph enp9s0} | |
${template1 Upload} ${template2}${upspeed enp9s0} ${template3}${upspeedgraph enp9s0} | |
${template1 Total} ${template3}${totaldown enp9s0}↓ / ${totalup enp9s0}↑ | |
${endif}${endif}\ | |
]]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment