Κυριακή 21 Ιουνίου 2015

My conky setup

Conky is a system monitor which can offer you a great desktop eye-candy if you're using linux (whatever distro)

You can install it by simply typing down:

sudo apt-get install conky

or if you're using a rpm based distro

sudo yum install conky

After it's done go to ~/.conkyrc (or create one if it doesnt exist (probably it will not)) and paste your desired conkyrc into your blank conkyrc with your favorite text editor. Small note: since it's .conkyrc that means the file is hidden, so you must set your file manager to show hidden items.


Moving on we must realize that conkyrc can be minimalistic, showing just cpu,ram,battery usage and download/upload speeds or be featurefull and even include weather forecast etc.
If you want a minimalistic conky google search: "minimalistic conky 1 line" or "conky weather forecast" if you want something more.

I will paste my own conkyrc file which is in between minimalism and featurefull. Keep in mind my CPU has only 2 cores, so if you have a quad core or octacore... locate the sensors | grep section and add 2 more lines same as the previous ones but these lines should grep the core 2 and core 3 (first core is always core 0).

background yes
use_xft yes
xftalpha 0.6
own_window true
own_window_type normal
own_window_argb_visual false #edited for openbox (original: true)
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager  
own_window_transparent yes
own_window_class Conky
# 0 = transparent, 255 = solid
own_window_argb_value 100
double_buffer yes
update_interval 1

maximum_width 200
alignment middle_right
gap_x 10
gap_y 0

no_buffers yes
uppercase no
cpu_avg_samples 5
net_avg_samples 5
diskio_avg_samples 5
if_up_strictness address

draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color lightblue
default_shade_color purple
default_outline_color green
short_units true
use_spacer none
xftfont DejaVu Sans Mono:size=9

template0 ${font Open Sans:Bold:size=10}${color dodgerblue3}\1 ${hr 2}$color${font}${voffset 1}
template1 \1 ${alignr\ 80}${fs_bar\ \1}
template2 ${\1 name \2}${alignr}${\1 \3 \2} %
template3 ${if_up \1}${template0 \2}\ndown $alignr ${downspeed \1}/s\nup $alignr ${upspeed \1}/s\ntotal down$alignr${totaldown \1}\ntotal up $alignr${totalup \1}$endif

#${execi 30 sudo hddtemp /dev/sda | grep '/dev/sda:' | cut -c28-29}°C

TEXT
$color${font}${font Open Sans:size=27}$alignr${time %H:%M}$font$color${font Open Sans:size=15}
$alignr${time %a}, ${time %d %b %Y}$font$color

# SYS
${template0 SYSTEM}
Kernel $alignr $kernel
Uptime $alignr $uptime
Temprature $alignr ${acpitemp}°C

# CPU
${template0 CPU}
$color${font}Usage $alignr $cpu %
$color${font}Temp Core1: $alignr ${execi 1 sensors | grep "Core 0:" | cut -d+ -f2 | cut -c1-7}
$color${font}Temp Core2: $alignr ${execi 1 sensors | grep "Core 1:" | cut -d+ -f2 | cut -c1-7}
${cpugraph}
# RAM
${template0 RAM}
In use $alignr $mem
Used$alignr$memeasyfree
Buffers $alignr $buffers
Cache $alignr $cached

# NETWORK
${template3 eth0 ETH0}${template3 wlan0 WLAN0}

# TOP
${template0 TOP}
$color${font Open Sans:bold:size=8}CPU$font
${template2 top 1 cpu}
${template2 top 2 cpu}
${template2 top 3 cpu}${voffset 5}
$color${font Open Sans:bold:size=8}RAM$font
${template2 top_mem 1 mem}
${template2 top_mem 2 mem}
${template2 top_mem 3 mem}

# HDD
${template0 HDD}
${template1 /}
${template1 /boot}
${template1 /var}
${template1 /usr}
${template1 /home}

$color${font Open Sans:bold:size=8}/dev/sda $font$alignr ${hddtemp /dev/sda}°C
${diskiograph sda}
This setup is shown by the article image.
Hope you find this helpful 

Δεν υπάρχουν σχόλια:

Δημοσίευση σχολίου