This is my CONKY file for those who'd like to try it. Be aware this uses the configs to tie into the APC daemon so you do have to have that set up, otherwise comment it out or if on a laptop, change to the closest settings for that. Temps use Sensors so be sure it is there and set up. I believe its lm-sensors that has to be installed?
Code:
-- -- Starting with version 1.10, conky config is following lua format; there are several changes. -- all configuration items end with a trailing comma. -- all string variables are enclosed in single quotes. -- all boolean responses are now true/false instead of yes/no -- also notice that comments are two dashes and a space -- until you get into the text area, where # still works. -- here we go... conky.config = { -- conky setup update_interval = 2.0, update_interval_on_battery = 4, background = true, total_run_times = 0, cpu_avg_samples = 1, no_buffers = true, text_buffer_size = 8192, temperature_unit = 'fahrenheit', -- -- needed if you want to display degree symbols -- override_utf8_locale = true, -- set up window alignment = 'top_left', gap_x = 10, gap_y = 10, maximum_width = 255, double_buffer = true, background = true, own_window = true, --own_window_transparent = true, -- -- for most installations own_window type will be 'normal' or 'desktop'. -- to function correctly in KDE own_window_type must be 'dock'. -- own_window_type = 'dock', own_window_argb_visual = true, own_window_argb_value = 50, -- -- own_window_hints: -- undecorated = no window decorations -- below = keep below other windows -- sticky = show on all desktops -- skip_taskbar, skip_pager prevents a taskbar icon or an alt-tab switch to conky. -- own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager', draw_borders = false, draw_shades = false, draw_outline = false, use_xft = true, font = 'Arial:size=11', uppercase = false, short_units = true, -- colors default_color = 'white', default_shade_color = 'black', default_outline_color = 'white', -- -- you can assign colors here and then just refer to them in the text section. -- Note they're string variables without a leading # -- color0 = '68696b', -- bar/graph color color1 = 'cccccc', -- text color color7 = '4dff4d', -- green color8 = 'ffff4d', -- yellow color9 = 'ff4d4d', -- red } -- text conky.text = [[ # # anything after here uses a hashtag to comment instead of double dashes. # # date and time and Node display # ${if_match "${exec awk -F" " '{ printf tolower ($1) " "}' /etc/issue}" == "ubuntu"}\ ${font Georgia:size=20}${alignc}K${exec awk -F" " '{ printf tolower ($1) " "}' /etc/issue}: ${nodename} ${else} ${font Georgia:size=20}${alignc}${exec awk -F" " '{ printf ($1) " " ($2)}' /etc/issue}: ${font Georgia:size=20}${nodename} ${endif}${font Georgia:size=20}${alignc}${time %l:%M %P} ${alignc}${time %Y/%m/%d (%a)} ${font Georgia:size=25}${font Georgia:size=21}CPU ${font}${hr 1} # # cpu frequency. Note cpu freq is green unless running at less than max speed. # ${voffset 10}${color1}cpu freq:${alignr}${color7}${if_match ${freq 1} < 1734}${color8}${endif}${freq 1}${color1} mhz # # cpu temperature. Colors change to yellow at 75°C and red at 90°C. # #${color1}cpu temp:${alignr}${color7}${if_match ${i8k_cpu_temp} > 75}${color8}${endif}${if_match ${i8k_cpu_temp} > 90}${color9}${endif}${i8k_cpu_temp}°C # # 1m, 5m and 15m cpu load. Note color changes as load increases. # ${voffset 12}${color1}${alignc}1m: ${if_match ${loadavg 1} < 0.70}${color7}${endif}${if_match ${loadavg 1} >= 0.70}${color8}${endif}${if_match ${loadavg 1} >= 2.00}${color9}${endif}${loadavg 1}${color1} 5m: ${if_match ${loadavg 2} < 0.70}${color7}${endif}${if_match ${loadavg 2} >= 0.70}${color8}${endif}${if_match ${loadavg 2} >= 2.00}${color9}${endif}${loadavg 2}${color1} 15m: ${if_match ${loadavg 3} < 0.70}${color7}${endif}${if_match ${loadavg 3} >= 0.70}${color8}${endif}${if_match ${loadavg 3} >= 2.00}${color9}${endif}${loadavg 3} # # cpu graph. # ${font Arial:size=9}${voffset -10}${color0}${cpugraph cpu0 4dff4d ff4d4d -t -l} # # text inside cpu graph. Note color changes here also. # Also, you can use a backslash to break up long lines. This is handy. # ${color1}${goto 36}${voffset -28}cpu load: ${goto 156}${if_match ${cpu cpu0} >= 3}${color7}${endif}\ ${if_match ${cpu cpu0} >= 20}${color8}${endif}${if_match ${cpu cpu0} >= 90}${color9}${endif}${cpu cpu0}% # # Individual CPU indicators - cpu 0-3 # # cpu1 - note that conky starts numbering cores at 1 instead of zero. With conky, cpu0 = all cores. # ${color0}${voffset -2}${if_match ${cpu cpu1} >= 3}${color7}${endif}\ ${if_match ${cpu cpu1} >= 20}${color8}${endif}${if_match ${cpu cpu1} >= 90}${color9}${endif}${cpugraph cpu1 22,46}\ # # cpu2 # ${color0} ${if_match ${cpu cpu2} >= 3}${color7}${endif}${if_match ${cpu cpu2} >= 20}${color8}${endif}\ ${if_match ${cpu cpu2} >= 90}${color9}${endif}${cpugraph cpu2 22,46}\ # # cpu3 # ${color0} ${if_match ${cpu cpu3} >= 3}${color7}${endif}${if_match ${cpu cpu3} >= 20}${color8}${endif}\ ${if_match ${cpu cpu3} >= 90}${color9}${endif}${cpugraph cpu3 22,46}\ # # cpu4 # ${color0} ${if_match ${cpu cpu4} >= 3}${color7}${endif}${if_match ${cpu cpu4} >= 20}${color8}${endif}\ ${if_match ${cpu cpu4} >= 90}${color9}${endif}${cpugraph cpu4 22,46} # # cpu load numbers for first four indicators. These go inside the indicators :) # ${font Arial:size=7}\ # # cpu1 # ${color1}${voffset -27}${goto 26}${if_match ${cpu cpu1} >= 20}${color8}${endif}${if_match ${cpu cpu1} >= 90}${color9}${endif}${cpu cpu1}%\ # # cpu2 # ${goto 72}${if_match ${cpu cpu2} >= 20}${color8}${endif}${if_match ${cpu cpu2} >= 90}${color9}${endif}${cpu cpu2}%\ # # cpu3 # ${goto 120}${if_match ${cpu cpu3} >= 20}${color8}${endif}${if_match ${cpu cpu3} >= 90}${color9}${endif}${cpu cpu3}%\ # # cpu4 # ${goto 172}${if_match ${cpu cpu4} >= 20}${color8}${endif}${if_match ${cpu cpu4} >= 90}${color9}${endif}${cpu cpu4}% # ${font Georgia:size=12}${color #72D5A3}Processes:${color } $processes ${color #72D5A3}Running:${color } $running_processes ${font Georgia:size=25}${font Georgia:size=21}Memory ${font}${hr 1} ${color 94BFF3}RAM used: $mem${alignr}${membar 5,100} ${color 94BFF3}RAM free: $memfree ${color 94BFF3}RAM total: $memmax ${color 94BFF3}SWAP: $swap${alignr}${swapbar 5,100} ${color 94BFF3}ROOT used: $fs_used${alignr}${fs_bar 5,100 /} ${color 94BFF3}ROOT total: $fs_size ${color 94BFF3}HOME used: ${fs_used /home} ${alignr}${fs_bar 5,100 /home} ${color 94BFF3}HOME total: ${fs_size /home} ${color ffffff}${font Georgia:size=25}${font Georgia:size=21}Vitals ${font}${hr 1} ${color #72D5A3}CPU Temp:${color }${alignr}${execi 10 sensors -f | grep "Core 0" | cut -d "+" -f2 | cut -c1-7}F ${color #72D5A3}System Temp:${color }${alignr}${execi 10 sensors -f | grep "temp1" | cut -d "+" -f2 | cut -c1-7}F ${color #72D5A3}Up Time:${color }${alignr}${uptime} ${apcupsd localhost 3551}${alignc}${apcupsd_name} ${color #72D5A3}Battery Charge:${color }${alignr}${apcupsd_charge}% ${color #72D5A3}Line Voltage:${color }${alignr}${apcupsd_linev}v ${color #72D5A3}UPS Status:${color }${alignr}${apcupsd_status} # # and we end things with a couple of square brackets # ]]
Comment