Skip to content

Instantly share code, notes, and snippets.

@arihans
Last active July 20, 2020 03:15
Show Gist options
  • Save arihans/e3542c3e71b92547e34afaac02fc363c to your computer and use it in GitHub Desktop.
Save arihans/e3542c3e71b92547e34afaac02fc363c to your computer and use it in GitHub Desktop.
(August-2019) Conky config
--Conky settings
-------------------------
conky.config = {
update_interval = 1,
cpu_avg_samples = 2,
net_avg_samples = 2,
out_to_console = false,
override_utf8_locale = true,
double_buffer = true,
no_buffers = true,
text_buffer_size = 32768,
imlib_cache_size = 0,
own_window = true,
own_window_type = 'normal',
own_window_argb_visual = true,
own_window_transparent = true,
own_window_argb_value = 50,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
border_inner_margin = 10,
border_outer_margin = 0,
xinerama_head = 1,
alignment = 'bottom_right',
gap_x = 0,
gap_y = 33,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = true,
use_xft = true,
font = 'Share Tech:size=12',
xftalpha = 0.8,
uppercase = false,
default_color = 'white',
own_window_colour = '#000000',
minimum_width = 300, minimum_height = 0,
alignment = 'top_left',
};
--conky text
-------------------------
conky.text = [[
##SYSTEM
${font Share Tech:bold:size=11}SYSTEM ${hr 2}
${font Share Tech:normal:size=10}${color #20b1fa}$sysname $kernel $alignr $machine
${color #20b1fa}Uptime: ${color white}$alignr$uptime
${color #20b1fa}Processes: ${color white}$alignr${execi 1000 ps aux | wc -l}
${font Share Tech:size=10}${color #20b1fa}Battery : ${color white}$alignr${battery_percent BAT1} %
# Color battery bar based on percentage remaining.
#${if_match ${battery_percent BAT1} < 15}${color red}${else}\
#${if_match ${battery_percent BAT1} < 25}${color orange}${else}\
#${if_match ${battery_percent BAT1} < 35}${color yellow}${else}\
#${if_match ${battery_percent BAT1} < 90}${color white}${else}\
#${color green}${endif}${endif}${endif}${endif}\
#
${battery_bar 5 BAT1}
#
# Show battery status
${if_match "${exec acpi | awk '{print $3}'}"=="Full," }${font Ubuntu:bold:size=12} F ${else}\
${if_match "${exec acpi | awk '{print $3}'}"=="Charging,"}${font Ubuntu:bold:size=12} + ${else}\
${font Ubuntu:bold:size=12} - ${endif}${endif}\
#
${alignr}${font Share Tech:size=10}${battery_time BAT1}
##CPU
${font Share Tech:bold:size=11}${color white}CPU ${hr 2}
${color #20b1fa}${font Share Tech:normal:size=10}${execi 1000 grep model /proc/cpuinfo | cut -d : -f2 | tail -1 | sed 's/\s//'}
${color lightgray}${font Share Tech:normal:size=10}${cpugraph cpu1}
${color #20b1fa}CPU: ${color white}${cpu cpu1}% ${cpubar cpu1}
##MEMORY
${font Share Tech:bold:size=11}MEMORY ${hr 2}
${font Share Tech:normal:size=10}${color #20b1fa}RAM $alignc ${color white}$mem / $memmax $alignr $memperc%
$membar
${color #20b1fa}SWAP $alignc ${color white} ${swap} / ${swapmax} $alignr ${swapperc}%
${swapbar}
##DISK USAGE
${font Share Tech:bold:size=11}DISK USAGE ${hr 2}
${font Share Tech:normal:size=10}${color #20b1fa}/ ${color white}$alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /}%
${fs_bar /}
##NETWORK
${font Share Tech:bold:size=11}NETWORK ${hr 2}
${font Share Tech:normal:size=10}${color #20b1fa}Local IPs:${alignr}${color #20b1fa}External IP:
${color white}${execi 1000 ip a | grep inet | grep -vw lo | grep -v inet6 | cut -d \/ -f1 | sed 's/[^0-9\.]*//g'} ${alignr}${execi 1000 wget -q -O- http://ipecho.net/plain; echo}
${font Share Tech:normal:size=10}${color #20b1fa}Down: ${color white}${downspeed wlo1} ${alignr}${color #20b1fa}Up: ${color white}${upspeed wlo1}
${color lightgray}${downspeedgraph wlo1 50,130 } ${alignr}${upspeedgraph wlo1 50,130 }
##TOP PROCESSES
${font Share Tech:bold:size=11}TOP PROCESSES ${hr 2}
${font Share Tech:normal:size=10}${color #20b1fa}Name $alignr PID CPU% MEM%${font Share Tech:normal:size=10}${color white}
${top name 1} $alignr ${top pid 1} ${top cpu 1}% ${top mem 1}%
${top name 2} $alignr ${top pid 2} ${top cpu 2}% ${top mem 2}%
${top name 3} $alignr ${top pid 3} ${top cpu 3}% ${top mem 3}%
${top name 4} $alignr ${top pid 4} ${top cpu 4}% ${top mem 4}%
${top name 5} $alignr ${top pid 5} ${top cpu 5}% ${top mem 5}%
${top name 6} $alignr ${top pid 6} ${top cpu 6}% ${top mem 6}%
${top name 7} $alignr ${top pid 7} ${top cpu 7}% ${top mem 7}%
${top name 8} $alignr ${top pid 8} ${top cpu 8}% ${top mem 8}%
${top name 9} $alignr ${top pid 9} ${top cpu 9}% ${top mem 9}%
${top name 10} $alignr ${top pid 10} ${top cpu 10}% ${top mem 10}%
]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment