Create a gist now

Instantly share code, notes, and snippets.

@matmunn /.conkyrc
Last active Jun 9, 2016

What would you like to do?
Conky Configuration
alignment top_left
background yes
border_width 1
cpu_avg_samples 2
default_color black
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
use_xft yes
xftfont DejaVu Sans Mono:size=10
gap_y 0
minimum_size 350 5
net_avg_samples 2
double_buffer yes
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_type normal
own_window_argb_visual yes
own_window_argb_value 255
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no
TEXT
${color #FFFFFF}
$nodename - ${execi 65000 lsb_release -d | cut -f 2}
$hr
Uptime: $uptime
Frequency: ${freq_g} GHz / ${execi 65000 /usr/local/bin/get_cpu_freq.sh} GHz
RAM Usage: $mem/$memmax - $memperc% ${membar 6}
Swap Usage: $swap/$swapmax - $swapperc% ${swapbar 6}
$hr
CPU:
Temp: ${if_existing /sys/class/hwmon/hwmon0/temp2_input}${hwmon 0 temp 1}${else}${hwmon 1 temp 1}${endif}°C${offset 20}Usage: $cpu% ${cpubar}
${voffset 12}Core 1 - ${cpu cpu1}% ${goto 125}${voffset -11}${cpugraph cpu1}
${voffset 8}Core 2 - ${cpu cpu2}% ${goto 125}${voffset -11}${cpugraph cpu2}
${voffset 8}Core 3 - ${cpu cpu3}% ${goto 125}${voffset -11}${cpugraph cpu3}
${voffset 8}Core 4 - ${cpu cpu4}% ${goto 125}${voffset -11}${cpugraph cpu4}
${voffset 8}Core 5 - ${cpu cpu5}% ${goto 125}${voffset -11}${cpugraph cpu5}
${voffset 8}Core 6 - ${cpu cpu6}% ${goto 125}${voffset -11}${cpugraph cpu6}
${voffset 8}Core 7 - ${cpu cpu7}% ${goto 125}${voffset -11}${cpugraph cpu7}
${voffset 8}Core 8 - ${cpu cpu8}% ${goto 125}${voffset -11}${cpugraph cpu8}
Processes: $processes Running:$running_processes
$hr
GPU:
Temp: ${nvidia temp}°C / ${nvidia threshold}°C
Frequency: ${nvidia gpufreq} MHz
$hr
File systems:
/ ${goto 80}${fs_used /}/${fs_size /} ${goto 220}${fs_bar 6 /}
Files ${goto 80}${fs_used /mnt/Files}/${fs_size /mnt/Files} ${goto 220}${fs_bar 6 /mnt/Files}
Movies ${goto 80}${fs_used /mnt/Movies}/${fs_size /mnt/Movies} ${goto 220}${fs_bar 6 /mnt/Movies}
Other ${goto 80}${fs_used /mnt/Other}/${fs_size /mnt/Other} ${goto 220}${fs_bar 6 /mnt/Other}
TV ${goto 80}${fs_used /mnt/TV}/${fs_size /mnt/TV} ${goto 220}${fs_bar 6 /mnt/TV}
$hr
Networking:
LAN (${addr eno1})
Up: ${upspeed eno1} ${goto 180}Down: ${downspeed eno1}
${upspeedgraph eno1 16,150}${goto 180}${downspeedgraph eno1 16,150}${if_up wlp3s1}
$hr
WLAN (${addr wlp3s1})
Up: ${upspeed wlp3s1} ${goto 180}Down: ${downspeed wlp3s1}
${upspeedgraph wlp3s1 16,150}${goto 180}${downspeedgraph wlp3s1 16,150} $endif
$hr
Name PID CPU% MEM%
${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
#!/bin/bash
a=`dmesg | grep "smpboot: CPU0:"`;
strindex() {
x="${1%%$2*}"
[[ $x = $1 ]] && echo -1 || echo ${#x}
}
b=`strindex "$a" "@"`;
c=${a:b+2:4}
echo $c;
exit 0
@matmunn

This comment has been minimized.

Show comment Hide comment
@matmunn

matmunn Feb 21, 2014

I wrote a small script to get my max CPU freq to compare it against the current speed. For me this script lives in /usr/local/bin.

I've also recently purchased a Microsoft Surface Pro and put Ubuntu Gnome on it. The conky file for this is also above, with a few minor tweaks.

Owner

matmunn commented Feb 21, 2014

I wrote a small script to get my max CPU freq to compare it against the current speed. For me this script lives in /usr/local/bin.

I've also recently purchased a Microsoft Surface Pro and put Ubuntu Gnome on it. The conky file for this is also above, with a few minor tweaks.

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