Advertisement
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 = yes,
- text_buffer_size = 512,
- temperature_unit = 'celsius',
- override_utf8_locale = true,
- top_name_width = 16,
- short_units = false,
- draw_shades = yes,
- -- testing
- -- set up window
- alignment = 'top_right',
- gap_x = 20,
- gap_y = 80,
- maximum_width = 260,
- double_buffer = true,
- background = true,
- own_window = true,
- own_window_transparent = true,
- own_window_type = 'desktop',
- own_window_class = 'conky',
- own_window_argb_visual = true,
- own_window_argb_value = 0,
- own_window_hints = 'undecorated, below, sticky, skip_taskbar, skip_pager',
- draw_borders = false,
- draw_shades = false,
- draw_outline = false,
- use_xft = true,
- font = 'Arimo Nerd Font:size=11',
- uppercase = false,
- default_bar_height = 7,
- default_bar_width = 260,
- -- colors and icons
- color0 = '7c818c', -- bar/graph color
- color1 = 'e3e3e3', -- text color
- color3 = '62d994', -- light green
- color4 = '8dddff', -- light blue
- color5 = '2d7db2', -- dark blue
- color6 = '5dade2', -- blue
- color7 = '32a964', -- green
- color8 = 'dfdf00', -- yellow
- color9 = 'ec7063', -- red
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\ -- clock
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\ -- padlock locked
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\ -- speaker full volume
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
- -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
- }
- -- text
- conky.text = [[
- #
- # time and date
- #
- ${color1}${font Arimo Nerd Font:size=24}${alignc}${time %l:%M %P}${font}
- ${alignc}${font Arimo Nerd Font:size=10}${offset 8}${time %A}, ${time %B} ${time %e}${font}
- #
- # cpu temperature. Colors change to yellow at 75°C and red at 90°C.
- #
- ${voffset 6}\
- ${color4}${if_match ${hwmon 3 temp 1} > 75}${color8}${endif}\
- ${if_match ${hwmon 3 temp 1} > 90}${color9}${endif}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}${color1} temp:\
- ${alignr}${color4}${if_match ${hwmon 3 temp 1} > 75}${color8}\
- ${endif}${if_match ${hwmon 3 temp 1} > 90}${color9}${endif}${hwmon 3 temp 1}${color1}°C
- #
- # cpu load
- #
- ${voffset 8}\
- ${color3}${if_match ${cpu cpu0} >= 25}${color8}${endif}\
- ${if_match ${cpu cpu0} >= 75}${color9}${endif}\
- ${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}${color1} cpu load:\
- ${alignr}${color3}${if_match ${cpu cpu0} >= 25}${color8}${endif}\
- ${if_match ${cpu cpu0} >= 75}${color9}${endif}${cpu cpu0}${color1}%
- #
- # 1m, 5m and 15m cpu load. Note color changes as load increases.
- #
- ${voffset 8}\
- ${if_match ${loadavg 1} <= 25}${color4}${endif}\
- ${if_match ${loadavg 1} > 25}${color8}${endif}${if_match ${loadavg 1} > 75}${color9}${endif}\
- ${font Font Awesome 5 Free:style=Solid:pixelsize=16} ${font}\
- ${color1}\
- ${font Arimo Nerd Font:size=10}1m: ${if_match ${loadavg 1} <= 25}${color4}${endif}\
- ${if_match ${loadavg 1} > 25}${color8}${endif}${if_match ${loadavg 1} > 75}${color9}${endif}${loadavg 1}\
- ${color1} 5m: ${if_match ${loadavg 2} <=25}${color4}${endif}\
- ${if_match ${loadavg 2} > 25}${color8}${endif}${if_match ${loadavg 2} > 75}${color9}${endif}\
- ${loadavg 2}${color1} 15m: ${if_match ${loadavg 3} <=25}${color4}${endif}\
- ${if_match ${loadavg 3} > 25}${color8}${endif}${if_match ${loadavg 3} > 75}${color9}${endif}\
- ${loadavg 3}${font}
- #
- # tachometer icon
- #
- ${voffset 8}\
- ${image ~/.config/conky/images/tach.png -p 107,130 -s 40x40 -f 300}
- #
- # core frequencies
- #
- # cpu 1 - 2
- #
- ${voffset 16}\
- ${font Arimo Nerd Font:size=11}\
- ${color1}cpu 1: ${color4}${freq 1}${color1} mhz ${alignr}cpu 2: ${color4}${freq 2}${color1} mhz
- ${color1}cpu 3: ${color4}${freq 3}${color1} mhz ${alignr}cpu 4: ${color4}${freq 4}${color1} mhz
- #
- # chip icon
- #
- ${voffset 12}\
- ${image ~/.config/conky/images/memory.png -p 107,202 -s 40x40 -f 300}
- #
- # memory bar.
- #
- ${voffset 6}\
- ${color1}ram used: ${exec free -m | grep -i mem | awk '{print $3}'} MiB ${alignr}free: ${memeasyfree}
- ${color0}${membar 5,260}
- ${color1}${font Arimo Nerd Font:size=9}buffers: ${buffers}${alignr}${offset 0}cached: ${cached}${font}
- #
- # swapbar
- #
- ${voffset 12}\
- ${color1}swap used: ${swap}${alignr}free: ${swapfree}
- ${color0}${swapbar 5,260}
- #
- # floppy disk icon
- #
- ${voffset 8}\
- ${image ~/.config/conky/images/floppy.png -p 107,344 -s 40x40 -f 300}
- #
- # filesystem bar
- #
- ${voffset 12}\
- ${color1}ssd used: ${fs_used /} ${alignr}free: ${fs_free /}
- ${color0}${fs_bar 5,260 /}
- #
- # disk i/o numbers
- #
- ${color1}${font Arimo Nerd Font:size=9}disk read: ${diskio_read}${goto 170}write: ${diskio_write}${font}
- #
- # wlan icon
- #
- ${image ~/.config/conky/images/wifi.png -p 107,434 -s 40x40 -f 300}
- #
- ${color1}${if_existing /proc/net/route wlp2s0}
- ${voffset -10}\
- ${color1}wlan: ${wireless_link_qual_perc wlp2s0}%${alignr}${wireless_bitrate wlp2s0}
- ${voffset 4}\
- ${color0}${wireless_link_bar 5,260 wlp2s0}
- ${color7}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}${color1}${font Quicksand:size=9}${color1} ${downspeedf wlp2s0} kbps\
- ${alignr}${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}${font Quicksand:size=9}${color1} ${upspeedf wlp2s0} kbps ${font}${endif}
- #
- # battery icon
- #
- ${image ~/.config/conky/images/battery-full-charging.png -p 107,524 -s 32x32 -f 300}
- #
- # battery indicator. battery bar turns yellow or red depending on battery percentage.
- #
- ${voffset 8}${color1}battery:${alignr}${battery_percent CMB1}%
- ${color0}${if_match ${battery_percent CMB1} < 0.7}${color8}${endif}\
- ${if_match ${battery_percent CMB1} <= 20}${color9}${endif}${battery_bar CMB1 5,230}
- ${color1}${if_match ${battery_percent CMB1} < 0.7}${color8}${endif}\
- ${if_match ${battery_percent CMB1} <= 20}${color9}${endif}${font Arial:size=9}${battery_time CMB1}${font}
- #
- # top icon
- #
- ${image ~/.config/conky/images/cpu.png -p 107,604 -s 40x40 -f 300}
- ${voffset 18}${color1}name ${goto 146}pid${goto 192}cpu ${alignr}mem
- #
- ${font Arimo Nerd Font:size=9}${voffset 6}\
- ${color1}${top name 1}${goto 130}${top pid 1}${goto 186}${top cpu 1}${goto 228}${top mem 1}
- ${color4}${top name 2}${goto 130}${top pid 2}${goto 186}${top cpu 2}${goto 228}${top mem 2}
- ${color1}${top name 3}${goto 130}${top pid 3}${goto 186}${top cpu 3}${goto 228}${top mem 3}
- ${color4}${top name 4}${goto 130}${top pid 4}${goto 186}${top cpu 4}${goto 228}${top mem 4}
- ${color1}${top name 5}${goto 130}${top pid 5}${goto 186}${top cpu 5}${goto 228}${top mem 5}
- ${color4}${top name 6}${goto 130}${top pid 6}${goto 186}${top cpu 6}${goto 228}${top mem 6}
- ${color1}${top name 7}${goto 130}${top pid 7}${goto 186}${top cpu 7}${goto 228}${top mem 7}
- ${color4}${top name 8}${goto 130}${top pid 8}${goto 186}${top cpu 8}${goto 228}${top mem 8}
- ${color1}${top name 9}${goto 130}${top pid 9}${goto 186}${top cpu 9}${goto 228}${top mem 9}
- ${color4}${top name 10}${goto 130}${top pid 10}${goto 186}${top cpu 10}${goto 228}${top mem 10}
- #
- # nodename, uptime, kernel version
- #
- ${voffset 6}${font Arimo Nerd Font:size=18}${color1}\
- ${alignc}${nodename}${font}
- ${font Arimo Nerd Font:size=10}\
- ${voffset 6}${alignc}uptime: ${uptime}
- ${alignc}kernel: ${execi 86400 uname -v | grep "#1" | cut -c23-}${font}
- #
- ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement