LinuxVillage welcome > Technical discussions
small conky
patrick013:
Here's a smaller conky that runs good on a black screen.
hwmon, hddtemp, and sensors-detect need to be appropriately
installed. Colors need to be changed per user pref's, of course.
I'm using this one permanently. Commented out items are just
that.
--- Code: ---minimum_size 50
temperature_unit celsius
net_avg_samples 1
cpu_avg_samples 1
background yes
update_interval 0.7
double_buffer yes
#border_margin 1
own_window yes
own_window_transparent yes
own_window_hints undecorated, below, sticky, skip_taskbar, skip_pager
gap_x 25
gap_y 50
alignment tr
use_xft yes
xftfont Sans:size=7:weight=bold
default_shade_color 414a50
no_buffers yes
TEXT
${color DarkOrange1}${alignc}${time %a,}${time %e %b %G}
${alignc}${time %I:%M %p}
#${color goldenrod}Host: $nodename
$alignc${color goldenrod}$kernel
${color grey}Freq (in GHz):$alignr${color tan}${freq_g}
#${color goldenrod}CPU: $machine, $freq(MHz)
${color cadetblue}$hr
#${color}CPU History: ${color darkgreen}${cpugraph 30,0 0000ff 00ff00}
${color tan}${cpubar 4,0}
${color grey}CPU Usage:$alignr${color tan}$cpu %
${color grey}CPU Temp:$alignr${color tan}${hwmon 2 temp 1} C
${color grey}Sys Temp:$alignr${color tan}${hwmon 0 temp 1} C
${color grey}Fan:$alignr${color tan}${hwmon 1 fan 1} rpm
${color cadetblue}$hr
${color grey}RAM Usage:${alignr}${color tan}$memperc %
#${color limegreen}${alignr}${membar 9,40}
#${color grey}RAM Buffered: ${color}$buffers
#${color grey}RAM Cache: ${color}$cached
#${color grey}RAM Free: ${color}$memfree
${color grey}Total RAM:$alignr${color tan}$memmax
${color grey}SWAP Usage:${alignr}${color tan}$swapperc %
${color grey}Tot SWAP:$alignr${color tan}$swapmax
${color cadetblue}$hr
#${if_match "$battery" != ""}
#${color grey}File system used:
# / $color${fs_used /} of ${fs_size /} ${color goldenrod}${fs_used_perc /}% ${fs_bar 11 /}
${color grey}HD usage:${alignr}${color tan}${fs_used_perc /} %
#${alignr}${fs_bar 9,40 /}
${color grey}Total HD:$alignr${color tan}${fs_size /}
${color grey}HD Temp${alignr}${color tan}${execi 60 hddtemp -n /dev/sda} C
${color cadetblue}$hr
#${color grey}Network Up:${color lightblue} ${upspeed wlan0}
#${color red}${upspeedgraph p2p1 11,0 500 -l}
${color grey}Network:${color lightblue}${alignr}${downspeed wlan0}
#${color red}${downspeedgragh p2p1 11,0 500 -l}
${color cadetblue}$hr
#${color}ACPI Battery: ${color DeepSkyBlue}$battery_short ${battery_bar 11,0}
#${color}Remaining time: ${color DeepSkyBlue}$battery_time
#$endif
#$color$stippled_hr
#$alignc${color}Processes:$color $processes ${color grey}Running:$color $running_processes
#$alignc${color}(top 5 sorted by CPU usage)
#${color goldenrod} NAME PID CPU% MEM%
#${color} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
#${color} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
#${color} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
#${color} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
#${color} ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
#
#$alignc${color}(top 5 sorted by MEM usage)
#${color goldenrod} NAME PID CPU% MEM%
#${color} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
#${color} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
#${color} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
#${color} ${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
#${color} ${top_mem name 5} ${top_mem pid 5} ${top_mem cpu 5} ${top_mem mem 5}
#$color$stippled_hr
${color grey}Uptime:${color DarkOrange1}${alignr}$uptime_short
#
#${font DejaVu Sans Mono :size=7:weight=bold}${pre_exec cal}${font}
#${execpi 600 xclock -g +0+0 -update 1}
--- Fin du code ---
djohnston:
Thanks, Patrick. A screenshot would really illustrate the end result. Do you have an image hosting account?
patrick013:
http://postimage.org/image/b34d9of9n/
Here's a pic. Might look good with some items
added below the stock LV conky items.
Taco.22:
Wow, pretty colours!!
Seriously, I haven't tried that before. I might have to give it a go.
djohnston:
Nice.
Navigation
[#] Page suivante
Utiliser la version classique