mrmarcie

I am using Linux now for almost 3 years. I was so annoyed with Windows, especially after all the privacy issues with Windows 10, that I have choosen to switch. And it's so much better, at least for me, with Linux. I'm very happy with the change and will never use Windows10 again for my work.

But with Linux you have more control so if you really wanna tweak you need to take some efforts, but they pay off very well.

My Conky of Fedora 32, an awesome tool

After a long search I have chosen Fedora as my main choice of Linux. And after several years I'm still happy with it. I did not really do much with Conky yet but recently with all the Covid-19 misere I have some time over to mess with my pc's. So it took me a day or so to make this script like I want it. And I'm happy with the result.

If you also like to tweak things and not yet (really) started with Conky I should say "Give it a go". It's a lot of fun and you learn some things on the side as well from Linux. Because you have to figure out how to spot your hardware. Enjoy the ride.

My Conky script for you:

You can also download it here as .txt file. Right click and choose save as

You'll need to tweak this script here and there so just read it and you'll understand.

conky.config = {
use_spacer = 'left',
pad_percents = 3,
background = false,
double_buffer = true,
font = 'Noto Sans CJK KR Medium:size=10',
use_xft = true,
alignment = 'tr',
gap_x = 9,
gap_y = 39,
own_window_argb_visual = true,
own_window_argb_value = 69,
own_window_type = 'normal',
own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky',
own_window = true,
update_interval = 2.0,
draw_graph_borders = false,
}

conky.text = [[
${color #e7bb94}Hostname: ${goto 80}${color}${nodename} ${goto 250}${color #e7bb94}Uptime: ${goto 343}${color}${uptime}
${color #e7bb94}Kernel: ${goto 80}${color}${kernel} ${goto 250}${color #e7bb94}Workspace ${desktop}: ${goto 343}${color}${desktop_name}
${hr}
${alignc}${voffset 5}${font default:size=15}${color}WEEK: ${time %W} | ${time %e} ${time %B} ${time %Y} | ${color #e7bb94}${font FontAwesome:size=20} ${font default:size=16}${color}${voffset -2}${time %H:%M}${font}
${hr}
${color gold}${voffset 10}${font FontAwesome:size=16} ${font Delicious:}R2700x ${font}${color} ${cpu}% ${freq_g} GHz ${color gold} ${color}${hwmon 3 fan 2} RPM${alignr}${color #1ecbe1}${execi 1 sensors | grep Tdie: | cut -c 16-19}°C
### Above is for AMD Ryzen, you have to figure out how to display your CPU
${color silver}${voffset 8}${if_match $cpu>50}${color FCDF44}${if_match $cpu>75}${color F58712}${if_match $cpu>90}${color F54005}$endif$endif$endif${cpubar 13}${color}
${voffset 3}${color silver}${goto 20}${cpu cpu1}%${goto 69} ${cpu cpu2}% ${goto 122}${cpu cpu3}% ${goto 169} ${cpu cpu4}% ${goto 255}${cpu cpu5}% ${goto 309}${cpu cpu6}% ${goto 363}${cpu cpu7}% ${goto 415}${cpu cpu8}%
${color silver}${cpubar cpu1 8,50} ${cpubar cpu2 8,50} ${cpubar cpu3 8,50} ${cpubar cpu4 8,50}${alignr}${cpubar cpu5 8,50} ${cpubar cpu6 8,50} ${cpubar cpu7 8,50} ${cpubar cpu8 8,50}
${color silver}${goto 20}${cpu cpu9}%${goto 69} ${cpu cpu10}% ${goto 122}${cpu cpu11}% ${goto 169} ${cpu cpu12}% ${goto 255}${cpu cpu13}% ${goto 309}${cpu cpu14}% ${goto 363}${cpu cpu15}% ${goto 415}${cpu cpu16}%
${color silver}${cpubar cpu9 8,50} ${cpubar cpu10 8,50} ${cpubar cpu11 8,50} ${cpubar cpu12 8,50}${alignr}${cpubar cpu13 8,50} ${cpubar cpu14 8,50} ${cpubar cpu15 8,50} ${cpubar cpu16 8,50}
${cpugraph FFFFFF FF0000 -t}
${color gold}${font FontAwesome:size=16} ${font Delicious:}DDR4 ${font}${color} ${memperc}% / ${mem} / ${memmax}
${color silver}${voffset 8}${membar 13}
${color #e7bb94}SWAP:${color}${swapperc}% / ${color}${swap} / ${swapmax} ${alignr}${color #e7bb94}${voffset 2}${swapbar 6,232}
${color silver}${memgraph FFFACD DE2018 -t}
${hr}
${color gold}${font FontAwesome:size=16} ${font Delicious:}RX580 ${font}${color} ${execi 1 sensors amdgpu-pci-2600 | grep 'fan1' | cut -c13-21} / ${execi 1 sensors amdgpu-pci-2600 | grep 'power1' | cut -c13-19} Watt${alignr}${color #1ecbe1}${execi 1 sensors amdgpu-pci-2600 | grep 'edge' | cut -c16-22}${font}${color}
### Above is for my graphics card, you have to figure out how to display your GPU. If you have an APU you can delete those lines
${hr}
${color #e7bb94}Name ${goto 160}PID ${goto 215}%CPU ${goto 290}%MEM
${color lightgrey}${top name 1} ${goto 160}${top pid 1} ${goto 215}${top cpu 1} ${goto 290}${top mem 1}
${color lightgrey}${top name 2} ${goto 160}${top pid 2} ${goto 215}${top cpu 2} ${goto 290}${top mem 2}${goto 390}${font}${color #e7bb94}SPEED${color}
${color lightgrey}${top name 3} ${goto 160}${top pid 3} ${goto 215}${top cpu 3} ${goto 290}${top mem 3}${goto 369}${color green}${font FontAwesome}${font}${alignr}${color}${downspeed enp34s0}
#enp34s0 is my network adapter. Check your adapter for the right name
${color lightgrey}${top name 4} ${goto 160}${top pid 4} ${goto 215}${top cpu 4} ${goto 290}${top mem 4}${goto 369}${color red}${font FontAwesome}${font}${alignr}${color}${upspeed enp34s0}
${color lightgrey}${top name 5} ${goto 160}${top pid 5} ${goto 215}${top cpu 5} ${goto 290}${top mem 5}
${color lightgrey}${top name 6} ${goto 160}${top pid 6} ${goto 215}${top cpu 6} ${goto 290}${top mem 6}
${color lightgrey}${top name 7} ${goto 160}${top pid 7} ${goto 215}${top cpu 7} ${goto 290}${top mem 7}${goto 390}${font}${color #e7bb94}TOTAL${color}
${color lightgrey}${top name 8} ${goto 160}${top pid 8} ${goto 215}${top cpu 8} ${goto 290}${top mem 8}${goto 369}${color green}${font FontAwesome} ${font}${alignr}${voffset -3}${color}${totaldown enp34s0}
${color lightgrey}${top name 9} ${goto 160}${top pid 9} ${goto 215}${top cpu 9} ${goto 290}${top mem 9}${goto 369}${color red}${font FontAwesome} ${font}${alignr}${voffset -3}${color}${totalup enp34s0}
${color lightgrey}${top name 10} ${goto 160}${top pid 10} ${goto 215}${top cpu 10} ${goto 290}${top mem 10}
${hr}
${color #e7bb94}Load average: ${color} ${loadavg} ${alignr}${color #e7bb94}Processes: ${color}${processes} ${color #e7bb94}Running:${color} ${running_processes}
${hr}
### You need to have fontawesome installed for the icons.
### For the drives find the right UUID and PATH
${color gold}${font FontAwesome:size=16} ${color}${font Delicious}XPG SX8200 Pro 1TB Nvme${font} ${alignr}${color #1ecbe1}${exec hddtemp /dev/nvme0n1p1|awk '{print $NF}'}
${voffset 8}${color orange}/ ${color}${fs_size /} ${color}${goto 80}${color gold}${fs_used /} ${color}${goto 145}${color green}${fs_free /} ${goto 210}${color silver}${fs_bar 6 /}
${color orange}~ ${color}${fs_size /home/YOURNAME/} ${goto 80}${color gold}${fs_used /home/YOURNAME/} ${color}${goto 145}${color green}${fs_free /home/YOURNAME/} ${goto 210}${color silver}${fs_bar 6 /home/YOURNAME/}
${hr}
${color}${font FontAwesome} ${color lightgrey}${font}SSD${goto 80}${color gold}${fs_used /run/media/YOURNAME/PATH/} ${color}${goto 145}${color green}${fs_free /run/media/YOURNAME/PATH/}${goto 210}${color silver}${fs_bar 6,210 /run/media/YOURNAME/PATH/}${alignr}${color #1ecbe1}${voffset -2}${exec hddtemp /dev/sdb1|awk '{print $NF}'}
${color}${font FontAwesome} ${color lightgrey}${font}HD-4Tb${goto 80}${color gold}${fs_used /run/media/YOURNAME/PATH} ${color}${goto 145}${color green}${fs_free /run/media/YOURNAME/PATH}${goto 210}${color silver}${fs_bar 6,210 /run/media/YOURNAME/PATH}${alignr}${color #1ecbe1}${voffset -2}${exec hddtemp /dev/sdd1|awk '{print $NF}'} ${color}
${hr}
${voffset 6}${color gold}${font FontAwesome}${font}${color} ${execi 60 curl ipinfo.io/ip}${goto 145}${color gold}System IP: ${color}${addr enp34s0} ${alignr}${voffset -2}${color gold}${font FontAwesome}${font}${color} ${font Delicious:}${user_names} ${font}
${hr}
### You can find your fan's and other info with lm-sensors
${color #e7bb94}FAN IN 1 ${color}${hwmon 3 fan 5} ${color #e7bb94}FAN IN 2 ${color}${hwmon 3 fan 6} ${alignr}${color #e7bb94}CPU FAN ${color}${hwmon 3 fan 2} ${color #e7bb94}FAN OUT ${color}${hwmon 3 fan 3}
${color #696969}${font :italic:size=8}${alignc}Conky:${conky_version} / V 2.5 Beta ${font}

 

]]

I hope you like my code and can use it as a good starter.

Conky script info

If you use my script you need:

  • Fontawesome installed on your Linux PC
  • Change the PATH to your own drive paths
  • Figure out your CPU and GPU info

You can install lm-sensors to get the info for your CPU and GPU so you can use it in Conky.