Conky to display process mem in MiB or bytes (not percents)

Post Reply
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Conky to display process mem in MiB or bytes (not percents)

Post by zAchAry » 8. Oct 2010, 09:07

Top 5 CPU & RAM Processes
by percents (%)
Image

Code: Select all

${font zekton:bold:size=9}${alignc}Top (CPU) Processes${font}

${top name 1}${goto 100}${top cpu 1}${goto 140}% ${alignr}${top mem 1} %
${top name 2}${goto 100}${top cpu 2}${goto 140}% ${alignr}${top mem 2} %
${top name 3}${goto 100}${top cpu 3}${goto 140}% ${alignr}${top mem 3} %
${top name 4}${goto 100}${top cpu 4}${goto 140}% ${alignr}${top mem 4} %
${top name 5}${goto 100}${top cpu 5}${goto 140}% ${alignr}${top mem 5} %


${font zekton:bold:size=9}${alignc}Top (RAM) Processes${font}

${top_mem name 1}${goto 100}${top_mem cpu 1}${goto 140}% ${alignr}${top_mem mem 1} %
${top_mem name 2}${goto 100}${top_mem cpu 2}${goto 140}% ${alignr}${top_mem mem 2} %
${top_mem name 3}${goto 100}${top_mem cpu 3}${goto 140}% ${alignr}${top_mem mem 3} %
${top_mem name 4}${goto 100}${top_mem cpu 4}${goto 140}% ${alignr}${top_mem mem 4} %
${top_mem name 5}${goto 100}${top_mem cpu 5}${goto 140}% ${alignr}${top_mem mem 5} %
Top 5 CPU & RAM Processes
by megabytes (MiB)
Image

Code: Select all

${font zekton:bold:size=9}${alignc}Top (CPU) Processes${font}

${top name 1}${goto 100}${top cpu 1}${goto 140}% ${alignr}${top mem_res 1}
${top name 2}${goto 100}${top cpu 2}${goto 140}% ${alignr}${top mem_res 2}
${top name 3}${goto 100}${top cpu 3}${goto 140}% ${alignr}${top mem_res 3}
${top name 4}${goto 100}${top cpu 4}${goto 140}% ${alignr}${top mem_res 4}
${top name 5}${goto 100}${top cpu 5}${goto 140}% ${alignr}${top mem_res 5}


${font zekton:bold:size=9}${alignc}Top (RAM) Processes${font}

${top_mem name 1}${goto 100}${top_mem cpu 1}${goto 140}% ${alignr}${top_mem mem_res 1}
${top_mem name 2}${goto 100}${top_mem cpu 2}${goto 140}% ${alignr}${top_mem mem_res 2}
${top_mem name 3}${goto 100}${top_mem cpu 3}${goto 140}% ${alignr}${top_mem mem_res 3}
${top_mem name 4}${goto 100}${top_mem cpu 4}${goto 140}% ${alignr}${top_mem mem_res 4}
${top_mem name 5}${goto 100}${top_mem cpu 5}${goto 140}% ${alignr}${top_mem mem_res 5}
Top 5 CPU & RAM Processes
by bytes (kB) [not perfect]
Image

Code: Select all

${font zekton:bold:size=9}${alignc}Top (CPU) Processes${font}

${top name 1}${goto 80}${top cpu 1}${goto 120}% ${alignr}${pid_vmhwm ${top pid 1}}
${top name 2}${goto 80}${top cpu 2}${goto 120}% ${alignr}${pid_vmhwm ${top pid 2}}
${top name 3}${goto 80}${top cpu 3}${goto 120}% ${alignr}${pid_vmhwm ${top pid 3}}
${top name 4}${goto 80}${top cpu 4}${goto 120}% ${alignr}${pid_vmhwm ${top pid 4}}
${top name 5}${goto 80}${top cpu 5}${goto 120}% ${alignr}${pid_vmhwm ${top pid 5}}


${font zekton:bold:size=9}${alignc}Top (RAM) Processes${font}

${top_mem name 1}${goto 80}${top_mem cpu 1}${goto 120}% ${alignr}${pid_vmhwm ${top_mem pid 1}}
${top_mem name 2}${goto 80}${top_mem cpu 2}${goto 120}% ${alignr}${pid_vmhwm ${top_mem pid 2}}
${top_mem name 3}${goto 80}${top_mem cpu 3}${goto 120}% ${alignr}${pid_vmhwm ${top_mem pid 3}}
${top_mem name 4}${goto 80}${top_mem cpu 4}${goto 120}% ${alignr}${pid_vmhwm ${top_mem pid 4}}
${top_mem name 5}${goto 80}${top_mem cpu 5}${goto 120}% ${alignr}${pid_vmhwm ${top_mem pid 5}}
These are the kind of messages you'll get from the terminal when using ${pid_vmhwm ${top pid 1}}

Code: Select all

Conky: Can't read '/proc/ 1829/status'
Conky: Can't read '/proc/ 1829/status'
Conky: Can't read '/proc/ 1974/status'
Conky: Can't read '/proc/ 1829/status'
Conky: Can't read '/proc/ 1829/status'
Conky: Can't read '/proc/ 2254/status'
Conky: Can't read '/proc/ 1974/status'
Conky: Can't read '/proc/ 1829/status'
Conky: Can't read '/proc/ 1829/status'
Conky: Can't read '/proc/ 2254/status'
Conky: Can't read '/proc/ 1974/status'
Conky: Can't read '/proc/ 1829/status'
Conky: Can't read '/proc/ 1829/status'
Click here for more information about other types for the "top" parameter
like "mem_res", "mem_vsize", "time", "io_perc", "io_read" and "io_write".

Enjoy! ;)
Image
Help to make Slackware easier Donate to Salix

Post Reply