Modifying
@Retic1959's choice, which is quite nice but don't really have an interest to install a "Conky Manager"...but let me know if you do and see how it works out. In my version I get rid of references to the battery since a) I'm on a desktop and b) terminal was complaining of battery acpi errors, probably due to old legacy settings.
Retic1959's
link points to another
mediafire link which provides you with a nice collection of configs...many of them need updating due to persistent weather API issues and new naming schemes of the network adapters in the 16.04 codebase.
Anyway his theme is the first one in the pack, "4 & 2 core blue". In that folder he's using
conkyrc2core, because dual-cores
are still cool.
Here are the prereqs:
1. install
Lua obviously if it hasn't been installed.
2. install
/fonts/Caviar_Dreams.ttf
,
/fonts/Caviar_Dreams_Bold.ttf
, and
/fonts/Radio_Space.ttf
In
clock01_rings.lua, get rid of the entire battery element and make these changes (which are just basically changing around the x and y coords of 5 rings):
Code: Select all
{
name='cpu',
arg='cpu0',
max=100,
bg_colour=0xffffff,
bg_alpha=0.3,
fg_colour=0x0ABFFF,
fg_alpha=0.8,
x=152, y=323,
radius=25,
thickness=5,
start_angle=-90,
end_angle=180
},
{
name='cpu',
arg='cpu1',
max=100,
bg_colour=0xffffff,
bg_alpha=0.3,
fg_colour=0x0ABFFF,
fg_alpha=0.8,
x=226, y=323,
radius=25,
thickness=5,
start_angle=-90,
end_angle=180
},
{
name='fs_used_perc',
arg='/',
max=100,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0x0ABFFF,
fg_alpha=0.8,
x=35, y=587,
radius=25,
thickness=5,
start_angle=-90,
end_angle=180
},
{
name='memperc',
arg='',
max=100,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0x0ABFFF,
fg_alpha=0.8,
x=130, y=590,
radius=25,
thickness=5,
start_angle=-90,
end_angle=180
},
{
name='swapperc',
arg='',
max=100,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0x0ABFFF,
fg_alpha=0.8,
x=220, y=592,
radius=25,
thickness=5,
start_angle=-90,
end_angle=172
},
These changes in
conkyrc2core:
Code: Select all
# Conky settings #
background no
update_interval 1
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
double_buffer yes
no_buffers yes
text_buffer_size 2048
temperature_unit celsius
default_color FFFFFF
# Window specifications #
own_window yes
own_window_type normal
own_window_hints below,skip_pager,skip_taskbar,sticky,undecorated
own_window_argb_visual yes
own_window_argb_value 190
border_inner_margin 0
border_outer_margin 5
minimum_size 250 300
maximum_width 250
alignment top_right
gap_x 10
gap_y 38
# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
# Text settings #
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5
uppercase no
# Lua Load #
lua_load ~/.conky/clock01_rings.lua
lua_draw_hook_pre clock_rings
TEXT
# Time, date, and uptime #
${voffset 7}${font Radio Space:size=16}${color 0ABFFF}${time %A}${font}$color${font Radio Space:size=38}${goto 167}${voffset -8} ${time %e}${font}
${font Radio Space:size=18}${voffset -30}${time %b}${font}${voffset -3} ${font Radio Space:size=20}${time %Y}${font}${color 0ABFFF} ${hr 1}
${font caviar dreams bold:size=10}${goto 150}${voffset 170}Uptime: ${uptime_short}
# CPU usage #
${color 0ABFFF}${hr 1}$color
${color 0ABFFF}${voffset 6}Temp: $color ${execi 5 sensors|grep 'Core 0'|cut -c18-24}
${color 0ABFFF}${voffset 6}Processes:$color $processes
${color 0ABFFF}${voffset 6}Running: $color $running_processes${goto 116}${voffset 8}${cpu cpu0}% ${color 0ABFFF}${goto 116}${voffset 13}CPU1$color${goto 191}${voffset -12}${cpu cpu1}% ${color 0ABFFF}${goto 191}${voffset 12}CPU2$color
${color 0ABFFF}${voffset -12}FREQ:$color ${freq}MHz
${color 0ABFFF}${voffset 6}Load:$color ${loadavg}
# Network #
${color 0ABFFF}${voffset 2}${hr 1}
${color 0ABFFF}${voffset 5}Hostname: $color$alignr$nodename
#${color 0ABFFF}wlan0: $color$alignr${addr wlan0}
#${color 0ABFFF}Current: $color${alignr}${execi 10 /sbin/iwconfig wlan0|grep Rate|cut -d"M" -f1|cut -b20-24} Mbits/sec
${color 0ABFFF}eno1: $color$alignr${addr eno1}
${if_existing /proc/net/route tun0}${color 0ABFFF}tun0: $color$alignr${addr tun0}${endif}
${color 0ABFFF}Down: $color${downspeed eno1}/s ${alignr}${color #0ABFFF}Up:$color ${upspeed eno1}/s
${downspeedgraph eno1 30,120 000000 FF0000} ${alignr}${upspeedgraph eno1 30,120 000000 04E200}$color
${color 0ABFFF}Total:$color ${totaldown eno1} ${alignr}${color 0ABFFF}Total:$color ${totalup eno1}
# DISK/RAM/SWAP usage #
${color 0ABFFF}${voffset 2}${hr 1}
${color FFFFFF}${goto 7}${voffset 39}${fs_used_perc /}%
${color 0ABFFF}${goto 7}DISK
${color FFFFFF}${goto 102}${voffset -27}${memperc}%
${color 0ABFFF}${goto 102}RAM
${color FFFFFF}${goto 192}${voffset -26}${swapperc}%
${color 0ABFFF}${goto 191}SWAP
# Running processes #
${color 0ABFFF}${voffset 2} ${hr 1}
${color 0ABFFF}${voffset 5}NAME${goto 163}CPU%${goto 210}MEM%$color${voffset 5}
${top name 1}${goto 160}${top cpu 1}${goto 205}${top mem 1}
${top name 2}${goto 160}${top cpu 2}${goto 205}${top mem 2}
${top name 3}${goto 160}${top cpu 3}${goto 205}${top mem 3}
${top name 4}${goto 160}${top cpu 4}${goto 205}${top mem 4}
${top name 5}${goto 160}${top cpu 5}${goto 205}${top mem 5}
# Computer info #
${color 0ABFFF}${voffset 2}${hr 1}${voffset 5}
${color 0ABFFF}OS:$color${alignr}${exec cat /etc/issue.net} $machine
${color 0ABFFF}Kernel:$color${alignr}${kernel}$color
# Logging #
${color 0ABFFF}${voffset 2}${hr 1}$color
${color 0ABFFF}${alignc}SYSLOG:$color
${color 0ABFFF}${voffset -5}${hr 1}$color
${voffset 5}${font caviar dreams:size=9}${execi 10 tail -n4 /var/log/syslog | awk '{print " ",$0}' | fold -s45}
Notes:
- This gives a more accurate reading of the cpu temp considering "acpitemp" could really be anything, including the temp on your physical motherboard, lol.
- The 2nd gradient colors of the download/upload graphs fit my liking and habit of seeing those colors in DU Meter in Windows. You could argue that it breaks the "entirely blue" color scheme but I find these graphs are more noticeable (especially when rogue apps start uploading secret mothership data.)
- The name, "wlan0" needs to be modified if you're going to be using unreliable wifi on the desktop. Easiest way to find out the name is by doing an
ifconfig
and seeing the correct adapter name in the left column.
-
own_window_hints undecorated
is probably what you wanted for a borderless window without a title bar. You can move the window (by default) by holding ALT+left click.
- The reason why I have
gap_y 38
is because on my 2nd monitor (where I like the Conky window to show up), the window will align to the top area of the screen, regardless if it's viewable or not. Here's why, the following second monitor position is intentional:
monitor-prefs.png
...long story short, watch this insightful youtube clip, use the "Esco" window border, and the extra y setting compensates.
- I have absolutely no idea where the reference to
~/.conky/accu_weather/rss/weather
is, so (much like unreliable yahoo weather sources) I left it out completely, along with the battery portion.
- In the last bit showing the last 4 lines of the syslog, I don't know what the awk syntax is to omit $1, $2, and $4, show $3, and THEN show the rest of the (complete) line. The original code cut off the lines since obviously there's more than just
$10
elements...maybe @xenopeek has some insight on this. I simply show the entire line and make the font a bit smaller and wrap line words. Preferably I'd want: tail -n5 /var/log/syslog | awk '{ print $3,$5,...,[EOL]) }'
since obviously log event times are important.
- Feel free to add your own notes because I'm obviously stupid.
•
LPT: If you want easy readability when making changes in XED, change the highlight mode in XED by doing
View -> Highlight Mode -> Source -> Boo
. I don't know why "Boo" works so well with conky configs, but it's so bae.
•
Did you know? These are actually legacy Conky configs now. The updated 1.10+ Conky
follows the Lua syntax. Thankfully 1.10 reads legacy code fine. For now.