Skip to content

Convert to new 1.10 syntax

kennymckormick edited this page May 4, 2019 · 15 revisions

-- vim: ts=4 sw=4 noet ai cindent syntax=lua --[[ Conky, a system monitor, based on torsmo

Any original torsmo code is licensed under the BSD license

All code written since the fork of torsmo is licensed under the GPL

Please see COPYING for details

	Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen

Copyright (c) 2005-2012 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS) All rights reserved.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see ]]

maximum_size = 90 conky.config = { own_window_argb_visual = true, own_window_argb_value = 50, double_buffer = true, own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager', alignment = 'top_right', background = false, border_width = 1, cpu_avg_samples = 24, default_color = 'white', default_outline_color = 'white', default_shade_color = 'white', draw_borders = false, draw_graph_borders = false, draw_outline = false, draw_shades = false, use_xft = true, text_buffer_size=32768, font = 'ubuntu Mono:size=12', gap_x = 1925, gap_y = 35, minimum_height = 5, minimum_width = 5, net_avg_samples = 2, no_buffers = true, out_to_console = false, out_to_stderr = false, extra_newline = false, own_window = true, own_window_class = 'Conky', own_window_type = 'desktop', stippled_borders = 0, update_interval = 1.5, uppercase = false, own_window_colour = '#000000', border_inner_margin = 5, border_outer_margin = 0, use_spacer = 'none', show_graph_scale = false, show_graph_range = false }

conky.text = [[ ${font Green Energy:bold:size=28}${alignc}MONSTER${font} ${font ubuntu Mono:size=14}${time %H:%M:%S}${alignr}${time %d-%m-%y}${font} ${voffset -16}${font ubuntu Mono:bold:size=18}${alignc}${time %H:%M}${font} ${font ubuntu Mono:size=14}${voffset 4}${alignc}${time %A %B %d, %Y}${font}

${font}${voffset -4} ${font ubuntu Mono:bold:size=11}SYSTEM ${hr 2} ${font ubuntu Mono:normal:size=11}$sysname $kernel $alignr $machine Host:$alignr$nodename Uptime:$alignr$uptime File System: $alignr${fs_type}

${font ubuntu Mono:bold:size=11}CPU ${hr 2} ${font ubuntu Mono:normal:size=11}${execi 1000 grep model /proc/cpuinfo | cut -d : -f2 | tail -1 | sed 's/\s//'} ${font ubuntu Mono:normal:size=11}${cpugraph cpu1} CPU: ${cpu cpu1}% ${cpubar cpu1} ${font ubuntu Mono:normal:size=11}Processes: $processes $alignr Running: $running_processes

${font ubuntu Mono:bold:size=11}MEMORY ${hr 2} ${font ubuntu Mono:normal:size=11}RAM $alignc $mem / $memmax $alignr $memperc% $membar

${font ubuntu Mono:bold:size=11}DISK USAGE ${hr 2} ${font ubuntu Mono:normal:size=11}/ $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /}% ${fs_bar /} ${font ubuntu Mono:normal:size=11}/home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_used_perc /home}% ${fs_bar /home} ${font ubuntu Mono:normal:size=11}/mnt/data $alignc ${fs_used /mnt/data} / ${fs_size /mnt/data} $alignr ${fs_used_perc /mnt/data}% ${fs_bar /mnt/data}

${font ubuntu Mono:bold:size=11}HARDWARE ${hr 2} ${font ubuntu Mono:normal:size=11}CPU Freq : ${alignr} ${freq}MHz ${font ubuntu Mono:normal:size=11}CPU Temp : ${alignr} ${hwmon 1 temp 1}°C ${font ubuntu Mono:normal:size=11}GPU: ${alignr} ${execi 1800 nvidia-smi -q -a | grep -Eo 'GTX .+'} ${font ubuntu Mono:normal:size=11}GPU Temp : ${alignr} ${execi 5 nvidia-settings -query [gpu:0]/GPUCoreTemp -t}°C ${font ubuntu Mono:normal:size=11}GPU Util: ${alignr} ${nvidia gpuutil}% ${font ubuntu Mono:normal:size=11}GPU Memory: ${alignr}${exec nvidia-smi --query-gpu=memory.used --format=csv,noheader} / ${exec nvidia-smi --format=csv,noheader}

${font ubuntu Mono:normal:size=11}Processes: $processes $alignr Running: $running_processes

${font ubuntu Mono:bold:size=11}NETWORK ${hr 2} ${font ubuntu Mono:normal:size=11} WLP113S0: $alignc Up:${upspeed wlp113s0} $alignr Down:${downspeed wlp113s0} ${font ubuntu Mono:normal:size=11} ENP110S0: $alignc Up:${upspeed enp110s0} $alignr Down:${downspeed enp110s0} ${font ubuntu Mono:normal:size=11} WLAN IP: $alignr ${addrs wlp113s0} ${font ubuntu Mono:normal:size=11} ETH IP: $alignr ${addrs enp110s0}

${font ubuntu Mono:bold:size=11}TOP PROCESSES ${hr 2} ${font ubuntu Mono:normal:size=11}Name $alignr PID CPU% MEM%${font ubuntu Mono:normal:size=11} ${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}% ]];

You can’t perform that action at this time.