Skip to content

Instantly share code, notes, and snippets.

@Pelirrojo
Last active August 29, 2015 14:23
Show Gist options
  • Save Pelirrojo/5ba3f0d16fb375abb117 to your computer and use it in GitHub Desktop.
Save Pelirrojo/5ba3f0d16fb375abb117 to your computer and use it in GitHub Desktop.
Another easy .conkyrc definition.
# conky configuration
##############################################
# Settings
##############################################
background yes
use_xft yes
xftfont Liberation Sans:size=9
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
##############################################
## cairo-compmgr
own_window_type desktop
own_window_argb_visual yes
##############################################
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 300
maximum_width 200
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color ffffff
default_shade_color 000000
default_outline_color 828282
alignment top_right
gap_x 12
gap_y 35
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
##############################################
# Output
##############################################
TEXT
${color lightgrey}${font sans-serif:bold:size=8}SYSTEM $color
${hr}
${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq}
${font sans-serif:bold:size=8}IP: $alignr ${addr wlan0}
${font sans-serif:bold:size=8}UPTIME:$alignr$uptime_short
${color lightgrey}${font sans-serif:bold:size=8}PROCESSORS $color
${hr}
${font sans-serif:normal:size=8}${cpugraph cpu0}
CPU0: ${cpu cpu0}% ${cpubar cpu0}
CPU1: ${cpu cpu1}% ${cpubar cpu1}
CPU2: ${cpu cpu2}% ${cpubar cpu2}
CPU3: ${cpu cpu3}% ${cpubar cpu3}
SYS Temp: ${alignr}${execi 300 sensors | grep SYSTIN: | cut -c18-21} °C
CPU Temp: ${alignr}${execi 300 sensors | grep CPUTIN: | cut -c18-21} °C
GPU Temp: ${alignr}${execi 300 sensors | grep 120 | cut -c16-19} °C
HDD Temp: ${alignr}${execi 300 /usr/sbin/hddtemp /dev/sda1 | cut -c34-35} °C
${color lightgrey}${font sans-serif:bold:size=8}MEMORY $color
${hr}
${font sans-serif:normal:size=8}RAM $alignc $mem / $memmax $alignr $memperc%
$membar
SWAP $alignc ${swap} / ${swapmax} $alignr ${swapperc}%
${swapbar}
${color lightgrey}${font sans-serif:bold:size=8}STORAGE $color
${hr}
${font sans-serif:normal:size=8}/ $alignc ${fs_used /} / ${fs_size /}
${fs_bar /}
${color lightgrey}${font sans-serif:bold:size=8}TOP PROCESSES $color
${hr}
${font sans-serif:normal:size=8}${top_mem name 1}${alignr}${top mem 1} %
${top_mem name 2}${alignr}${top mem 2} %
$font${top_mem name 3}${alignr}${top mem 3} %
$font${top_mem name 4}${alignr}${top mem 4} %
$font${top_mem name 5}${alignr}${top mem 5} %
${color lightgrey}${font sans-serif:bold:size=8}NETWORK $color
${hr}
Signal: $alignr ${wireless_link_qual_perc wlan0}%
${downspeedgraph wlan0}
Download: ${downspeed wlan0} $alignr Total: ${totaldown wlan0}
${upspeedgraph wlan0}
Upload: ${upspeed wlan0} $alignr Total: ${totalup wlan0}
@Pelirrojo
Copy link
Author

General HowTo Conky Setup

# Install conky :)  
$sudo apt-get install conky conky-all
# Install dependencies:
$sudo apt-get install lmsensors hddtemp
# Config lm-sensors
$sudo sensors-detect
#Make available to users
$sudo chmod u+s /usr/sbin/hddtemp

#It's useful to test the commands manually: i.e. execi 300 sensors | grep SYSTIN: | cut -c18-21 
#it's equal to:
$sensors | grep SYSTIN: | cut -c18-21
>> 35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment