Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- conky.config = {
- -- conky setup
- update_interval = 1,
- update_interval_on_battery = 3,
- background = true,
- total_run_times = 0,
- cpu_avg_samples = 2,
- no_buffers = true,
- text_buffer_size = 4096,
- temperature_unit = 'celsius',
- override_utf8_locale = true,
- top_name_width = 20,
- -- set up window
- alignment = 'top_right',
- gap_x = 20,
- gap_y = 90,
- maximum_width = 230,
- double_buffer = true,
- background = true,
- own_window = true,
- own_window_transparent = true,
- own_window_type = 'normal',
- own_window_class = 'conky',
- own_window_argb_visual = true,
- 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,
- default_bar_height = 22,
- default_bar_width = 46,
- -- colors
- color0 = '68696b', -- bar/graph color
- color1 = 'cccccc', -- text color
- color7 = '4dff4d', -- green
- color8 = 'ffff4d', -- yellow
- color9 = 'ff4d4d', -- red
- }
- -- text
- conky.text = [[
- #
- # date and time display
- #
- ${color1}${font Arial:size=24}${alignc}${time %l:%M %P}${font}
- ${font Arial:size=9}${alignc} ${time %A}, ${time %B} ${time %e}${font}
- #
- # cpu temperature / fan status. Colors change to yellow at 75°C and red at 90°C.
- #
- ${voffset 6}${color1}cpu temp:${alignr}${color7}${if_match ${hwmon 3 temp 1} > 75}${color8}\
- ${endif}${if_match ${hwmon 3 temp 1} > 90}${color9}${endif}${hwmon 3 temp 1}${color1}°C
- #
- # fan info
- #
- ${color1}${font Arial:size=9} cpu ${color7}${if_match "${i8k_right_fan_status}" == "high"}${color8}${endif} ${i8k_right_fan_rpm}${color1} rpm\
- ${alignr}video ${color7}${if_match "${i8k_left_fan_status}" == "high"}${color8}${endif} ${i8k_left_fan_rpm}${color1} rpm ${font}
- #
- # cpu load
- #
- ${color1}cpu load: ${goto 156}${color7}${if_match ${cpu cpu0} >= 3}${color7}${endif}\
- ${if_match ${cpu cpu0} >= 60}${color8}${endif}${if_match ${cpu cpu0} >= 90}${color9}${endif}\
- ${alignr}${cpu cpu0}${color1}%
- #
- # 1m, 5m and 15m cpu load. Note color changes as load increases.
- #
- ${color1}${font Arial:size=9}${alignc}1m: ${if_match ${loadavg 1} <= 3.0}${color7}${endif}\
- ${if_match ${loadavg 1} > 3.0}${color8}${endif}${if_match ${loadavg 1} > 6.0}${color9}${endif}\
- ${loadavg 1}${color1} 5m: ${if_match ${loadavg 2} <=3.0}${color7}${endif}\
- ${if_match ${loadavg 2} > 3.0}${color8}${endif}${if_match ${loadavg 2} > 6.0}${color9}${endif}\
- ${loadavg 2}${color1} 15m: ${if_match ${loadavg 3} <=3.0}${color7}${endif}\
- ${if_match ${loadavg 3} > 3.0}${color8}${endif}${if_match ${loadavg 3} > 6.0}${color9}${endif}\
- ${loadavg 3}${font}
- #
- # core frequencies
- #
- ${font Arial:size=9}${color1}${freq 1} Mhz ${color0}${if_match ${cpu cpu1} >= 60}${color8}${endif}${if_match ${cpu cpu0} >= 90}${color9}${endif}${cpubar cpu1 3,50}${alignr}${color1}${freq 2} Mhz ${color0}${if_match ${cpu cpu1} >= 60}${color8}${endif}${if_match ${cpu cpu2} >= 90}${color9}${endif}${cpubar cpu2 3,50}
- ${color1}${freq 3} Mhz ${color0}${if_match ${cpu cpu3} >= 60}${color8}${endif}${if_match ${cpu cpu3} >= 90}${color9}${endif}${cpubar cpu3 3,50}${alignr}${color1}${freq 4} Mhz ${color0}${if_match ${cpu cpu4} >= 60}${color8}${endif}${if_match ${cpu cpu4} >= 90}${color9}${endif}${cpubar cpu4 3,50}
- ${color1}${freq 5} Mhz ${color0}${if_match ${cpu cpu5} >= 60}${color8}${endif}${if_match ${cpu cpu5} >= 90}${color9}${endif}${cpubar cpu5 3,50}${alignr}${color1}${freq 6} Mhz ${color0}${if_match ${cpu cpu6} >= 60}${color8}${endif}${if_match ${cpu cpu6} >= 90}${color9}${endif}${cpubar cpu6 3,50}
- ${color1}${freq 7} Mhz ${color0}${if_match ${cpu cpu7} >= 60}${color8}${endif}${if_match ${cpu cpu7} >= 90}${color9}${endif}${cpubar cpu7 3,50}${alignr}${color1}${freq 8} Mhz ${color0}${if_match ${cpu cpu8} >= 60}${color8}${endif}${if_match ${cpu cpu8} >= 90}${color9}${endif}${cpubar cpu8 3,50}${font}
- #
- # memory bar. Note conditional at the end of the line.
- #
- ${voffset 6}${color1}memory:${alignr}${exec free -m | grep -i mem | awk '{print $3}'} M / ${memmax}
- ${color0}${membar 7,230}
- ${color1}${font Arial:size=9} buffers:${offset 12}${buffers}${offset 48}cached: ${alignr}${cached} ${font}
- #
- # swapbar
- #
- ${voffset 12}${color1}swap:${alignr}${swap} / ${swapmax}
- ${color0}${swapbar 7,230}
- #
- # simple filesystem bar. This one is for /
- #
- ${voffset 12}${color1}ssd:${alignr}${fs_used /} / ${fs_size /}
- ${color0}${fs_bar 7,230 /}
- #
- # filesystem bar for /media/internal
- #
- ${voffset 12}${color1}internal:${alignr}${fs_used /media/internal} / ${fs_size /media/internal}
- ${color0}${fs_bar 7,230 /media/internal}
- ${if_existing /media/external/laptop}
- #
- # disk i/o numbers
- #
- ${voffset -18}${color1}${font Arial:size=9} disk write: ${diskio_write}${alignr}disk read: ${diskio_read} ${font}
- #
- # network information
- #
- ${color1}${if_existing /proc/net/route wlan0}
- ${voffset -10}wlan:${alignr}${wireless_bitrate wlan0}
- ${color0}${wireless_link_bar 7,230 wlan0}
- ${color1}${font Arial:size=9} dn: ${downspeedf wlan0} kbps
- ${voffset -12}${color1}${alignr}up: ${upspeedf wlan0} kbps ${font}${endif}
- ${color1}${if_existing /proc/net/route wlp3s0}
- ${voffset -30}wlan:${alignr}${wireless_bitrate wlp3s0}
- ${color0}${wireless_link_bar 7,230 wlp3s0}
- ${color1}${font Arial:size=9} dn: ${downspeedf wlp3s0} kbps
- ${voffset -12}${color1}${alignr}up: ${upspeedf wlp3s0} kbps ${font}${endif}\
- ${color1}${if_existing /proc/net/route eno1}
- ${voffset -34}${color1}network:
- ${color0}${voffset 8}${downspeedgraph eno1 14,200 -t -l}
- ${voffset 8}${color1}${font Arial:size=9} dn: ${downspeedf eno1} kbps
- ${alignr}${voffset -12}up: ${color1}${upspeedf eno1}${color1} kbps ${font}
- ${endif}
- #
- # battery indicator. battery bar turns yellow or red depending on battery percentage.
- #
- ${voffset 6}${color1}battery:${alignr}${battery_percent}%
- ${color0}${if_match ${battery_percent} < 0.7}${color8}${endif}\
- ${if_match ${battery_percent} <= 20}${color9}${endif}${battery_bar 7,230}
- ${color1}${if_match ${battery_percent} < 0.7}${color8}${endif}\
- ${if_match ${battery_percent} <= 20}${color9}${endif}${alignc}${font Arial:size=9}${battery_time}${font}
- #
- # top
- #
- ${voffset -6}${color1}name: ${goto 160}cpu${alignr} mem
- ${font Arial:size=9}${voffset 6}${top name 1} ${alignr}${top cpu 1} ${alignr}${top mem 1}
- ${top name 2} ${alignr}${top cpu 2} ${alignr}${top mem 2}
- ${top name 3} ${alignr}${top cpu 3} ${alignr}${top mem 3}
- ${top name 4} ${alignr}${top cpu 4} ${alignr}${top mem 4}
- ${top name 5} ${alignr}${top cpu 5} ${alignr}${top mem 5}
- ${top name 6} ${alignr}${top cpu 6} ${alignr}${top mem 6}
- ${top name 7} ${alignr}${top cpu 7} ${alignr}${top mem 7}
- ${top name 8} ${alignr}${top cpu 8} ${alignr}${top mem 8}
- ${top name 9} ${alignr}${top cpu 9} ${alignr}${top mem 9}
- ${top name 10} ${alignr}${top cpu 10} ${alignr}${top mem 10}${font}
- #
- # nodename, uptime, kernel version
- #
- ${voffset 8}${color1}${alignc}${nodename}
- ${alignc}uptime: ${uptime}
- ${alignc}kernel: ${execi 86400 uname -v | grep "#1" | cut -c14-}
- #
- # and we end things with a couple of square brackets
- #
- ]]
Add Comment
Please, Sign In to add comment