Create a gist now

Instantly share code, notes, and snippets.

@matmunn /.conkyrc
Last active Jun 18, 2018

Embed
What would you like to do?
Conky Configuration
conky.config = {
alignment='top_left',
background=true,
border_width=1,
cpu_avg_samples=2,
default_color='black',
default_outline_color='white',
default_shade_color='white',
double_buffer=true,
draw_borders=false,
draw_graph_borders=true,
draw_outline=false,
draw_shades=false,
extra_newline=false,
font="DejaVu Sans Mono:size=10",
gap_y=0,
minimum_width=350,
minimum_height=5,
net_avg_samples=2,
out_to_console=false,
out_to_stderr=false,
own_window=true,
own_window_argb_value=255,
own_window_argb_visual=true,
own_window_hints='undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_transparent=true,
own_window_type='normal',
show_graph_range=false,
show_graph_scale=false,
stippled_borders=0,
update_interval=1.0,
uppercase=false,
use_spacer='none',
use_xft=true,
xinerama_head=1
};
conky.text = [[
${color #FFFFFF}
$nodename - ${execi 65000 lsb_release -d | cut -f 2}
$hr
Uptime: $uptime
Frequency: ${freq_g} GHz / ${execi 65000 ~/.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
File systems:
/ ${goto 80}${fs_used /}/${fs_size /} ${goto 220}${fs_bar 6 /}
/home ${goto 80}${fs_used /home}/${fs_size /home} ${goto 220}${fs_bar 6 /home}
$hr
Networking:
LAN (${addr enp62s0u1u1})
Up: ${upspeed enp62s0u1u1} ${goto 180}Down: ${downspeed enp62s0u1u1}
${upspeedgraph enp62s0u1u1 16,150}${goto 180}${downspeedgraph enp62s0u1u1 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