Advertisement
wizard10000

conky.conf.20220312

Mar 12th, 2022
1,532
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 9.52 KB | None | 0 0
  1. conky.config = {
  2.  
  3. -- conky setup
  4.  
  5. update_interval = 1,
  6. update_interval_on_battery = 3,
  7. background = true,
  8. total_run_times = 0,
  9. cpu_avg_samples = 2,
  10. no_buffers = yes,
  11. text_buffer_size = 512,
  12. temperature_unit = 'celsius',
  13. override_utf8_locale = true,
  14. top_name_width = 16,
  15. short_units = false,
  16. draw_shades = yes,
  17.  
  18. -- testing
  19.  
  20.  
  21.  
  22.  
  23. -- set up window
  24.  
  25. alignment = 'top_right',
  26. gap_x = 20,
  27. gap_y = 80,
  28. maximum_width = 260,
  29. double_buffer = true,
  30. background = true,
  31. own_window = true,
  32. own_window_transparent = true,
  33. own_window_type = 'desktop',
  34. own_window_class = 'conky',
  35. own_window_argb_visual = true,
  36. own_window_argb_value = 0,
  37. own_window_hints = 'undecorated, below, sticky, skip_taskbar, skip_pager',
  38. draw_borders = false,
  39. draw_shades = false,
  40. draw_outline = false,
  41. use_xft = true,
  42. font = 'Arimo Nerd Font:size=11',
  43. uppercase = false,
  44. default_bar_height = 7,
  45. default_bar_width = 260,
  46.  
  47. -- colors and icons
  48.  
  49. color0 = '7c818c', -- bar/graph color
  50. color1 = 'e3e3e3', -- text color
  51. color3 = '62d994', -- light green
  52. color4 = '8dddff', -- light blue
  53. color5 = '2d7db2', -- dark blue
  54. color6 = '5dade2', -- blue
  55.  
  56. color7 = '32a964', -- green
  57. color8 = 'dfdf00', -- yellow
  58. color9 = 'ec7063', -- red
  59.  
  60. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  61. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  62. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  63. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  64. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  65. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  66. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  67. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  68. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  69. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  70. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  71. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  72. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  73. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  74. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  75. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  76. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  77. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\     -- clock
  78. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  79. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  80. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  81. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  82. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\     -- padlock locked
  83. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  84. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  85. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\     -- speaker full volume
  86. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  87. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  88. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  89. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  90. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  91. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  92. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  93. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  94. -- ${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  95.  
  96. }
  97.  
  98. -- text
  99.  
  100. conky.text = [[
  101. #
  102. # time and date
  103. #
  104. ${color1}${font Arimo Nerd Font:size=24}${alignc}${time %l:%M %P}${font}
  105. ${alignc}${font Arimo Nerd Font:size=10}${offset 8}${time %A}, ${time %B} ${time %e}${font}
  106. #
  107. # cpu temperature.  Colors change to yellow at 75°C and red at 90°C.
  108. #
  109. ${voffset 6}\
  110. ${color4}${if_match ${hwmon 3 temp 1} > 75}${color8}${endif}\
  111. ${if_match ${hwmon 3 temp 1} > 90}${color9}${endif}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}${color1} temp:\
  112. ${alignr}${color4}${if_match ${hwmon 3 temp 1} > 75}${color8}\
  113. ${endif}${if_match ${hwmon 3 temp 1} > 90}${color9}${endif}${hwmon 3 temp 1}${color1}°C
  114. #
  115. # cpu load
  116. #
  117. ${voffset 8}\
  118. ${color3}${if_match ${cpu cpu0} >= 25}${color8}${endif}\
  119. ${if_match ${cpu cpu0} >= 75}${color9}${endif}\
  120. ${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}${color1} cpu load:\
  121. ${alignr}${color3}${if_match ${cpu cpu0} >= 25}${color8}${endif}\
  122. ${if_match ${cpu cpu0} >= 75}${color9}${endif}${cpu cpu0}${color1}%
  123. #
  124. # 1m, 5m and 15m cpu load.  Note color changes as load increases.
  125. #
  126. ${voffset 8}\
  127. ${if_match ${loadavg 1} <= 25}${color4}${endif}\
  128. ${if_match ${loadavg 1} > 25}${color8}${endif}${if_match ${loadavg 1} > 75}${color9}${endif}\
  129. ${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}\
  130. ${color1}\
  131. ${font Arimo Nerd Font:size=10}1m: ${if_match ${loadavg 1} <= 25}${color4}${endif}\
  132. ${if_match ${loadavg 1} > 25}${color8}${endif}${if_match ${loadavg 1} > 75}${color9}${endif}${loadavg 1}\
  133. ${color1} 5m: ${if_match ${loadavg 2} <=25}${color4}${endif}\
  134. ${if_match ${loadavg 2} > 25}${color8}${endif}${if_match ${loadavg 2} > 75}${color9}${endif}\
  135. ${loadavg 2}${color1} 15m: ${if_match ${loadavg 3} <=25}${color4}${endif}\
  136. ${if_match ${loadavg 3} > 25}${color8}${endif}${if_match ${loadavg 3} > 75}${color9}${endif}\
  137. ${loadavg 3}${font}
  138. #
  139. # tachometer icon
  140. #
  141. ${voffset 8}\
  142. ${image ~/.config/conky/images/tach.png -p 107,130 -s 40x40 -f 300}
  143. #
  144. # core frequencies
  145. #
  146. # cpu 1 - 2
  147. #
  148. ${voffset 16}\
  149. ${font Arimo Nerd Font:size=11}\
  150. ${color1}cpu 1: ${color4}${freq 1}${color1} mhz ${alignr}cpu 2: ${color4}${freq 2}${color1} mhz
  151. ${color1}cpu 3: ${color4}${freq 3}${color1} mhz ${alignr}cpu 4: ${color4}${freq 4}${color1} mhz
  152. #
  153. # chip icon
  154. #
  155. ${voffset 12}\
  156. ${image ~/.config/conky/images/memory.png -p 107,202 -s 40x40 -f 300}
  157. #
  158. # memory bar.
  159. #
  160. ${voffset 6}\
  161. ${color1}ram used: ${exec free -m | grep -i mem |  awk '{print $3}'} MiB ${alignr}free: ${memeasyfree}
  162. ${color0}${membar 5,260}
  163. ${color1}${font Arimo Nerd Font:size=9}buffers: ${buffers}${alignr}${offset 0}cached: ${cached}${font}
  164. #
  165. # swapbar
  166. #
  167. ${voffset 12}\
  168. ${color1}swap used: ${swap}${alignr}free: ${swapfree}
  169. ${color0}${swapbar 5,260}
  170. #
  171. # floppy disk icon
  172. #
  173. ${voffset 8}\
  174. ${image ~/.config/conky/images/floppy.png -p 107,344 -s 40x40 -f 300}
  175. #
  176. # filesystem bar
  177. #
  178. ${voffset 12}\
  179. ${color1}ssd used: ${fs_used /} ${alignr}free: ${fs_free /}
  180. ${color0}${fs_bar 5,260 /}
  181. #
  182. # disk i/o numbers
  183. #
  184. ${color1}${font Arimo Nerd Font:size=9}disk read: ${diskio_read}${goto 170}write: ${diskio_write}${font}
  185. #
  186. # wlan icon
  187. #
  188. ${image ~/.config/conky/images/wifi.png -p 107,434 -s 40x40 -f 300}
  189. #
  190. ${color1}${if_existing /proc/net/route wlp2s0}
  191. ${voffset -10}\
  192. ${color1}wlan:  ${wireless_link_qual_perc wlp2s0}%${alignr}${wireless_bitrate wlp2s0}
  193. ${voffset 4}\
  194. ${color0}${wireless_link_bar 5,260 wlp2s0}
  195. ${color7}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}${color1}${font Quicksand:size=9}${color1} ${downspeedf wlp2s0} kbps\
  196. ${alignr}${color6}${font Font Awesome 5 Free:style=Solid:pixelsize=16}${font}${font Quicksand:size=9}${color1} ${upspeedf wlp2s0} kbps  ${font}${endif}
  197. #
  198. # battery icon
  199. #
  200. ${image ~/.config/conky/images/battery-full-charging.png -p 107,524 -s 32x32 -f 300}
  201. #
  202. # battery indicator.  battery bar turns yellow or red depending on battery percentage.
  203. #
  204. ${voffset 8}${color1}battery:${alignr}${battery_percent CMB1}%
  205. ${color0}${if_match ${battery_percent CMB1} < 0.7}${color8}${endif}\
  206. ${if_match ${battery_percent CMB1} <= 20}${color9}${endif}${battery_bar CMB1 5,230}
  207. ${color1}${if_match ${battery_percent CMB1} < 0.7}${color8}${endif}\
  208. ${if_match ${battery_percent CMB1} <= 20}${color9}${endif}${font Arial:size=9}${battery_time CMB1}${font}
  209. #
  210. # top icon
  211. #
  212. ${image ~/.config/conky/images/cpu.png -p 107,604 -s 40x40 -f 300}
  213. ${voffset 18}${color1}name ${goto 146}pid${goto 192}cpu ${alignr}mem
  214. #
  215. ${font Arimo Nerd Font:size=9}${voffset 6}\
  216. ${color1}${top name 1}${goto 130}${top pid 1}${goto 186}${top cpu 1}${goto 228}${top mem 1}
  217. ${color4}${top name 2}${goto 130}${top pid 2}${goto 186}${top cpu 2}${goto 228}${top mem 2}
  218. ${color1}${top name 3}${goto 130}${top pid 3}${goto 186}${top cpu 3}${goto 228}${top mem 3}
  219. ${color4}${top name 4}${goto 130}${top pid 4}${goto 186}${top cpu 4}${goto 228}${top mem 4}
  220. ${color1}${top name 5}${goto 130}${top pid 5}${goto 186}${top cpu 5}${goto 228}${top mem 5}
  221. ${color4}${top name 6}${goto 130}${top pid 6}${goto 186}${top cpu 6}${goto 228}${top mem 6}
  222. ${color1}${top name 7}${goto 130}${top pid 7}${goto 186}${top cpu 7}${goto 228}${top mem 7}
  223. ${color4}${top name 8}${goto 130}${top pid 8}${goto 186}${top cpu 8}${goto 228}${top mem 8}
  224. ${color1}${top name 9}${goto 130}${top pid 9}${goto 186}${top cpu 9}${goto 228}${top mem 9}
  225. ${color4}${top name 10}${goto 130}${top pid 10}${goto 186}${top cpu 10}${goto 228}${top mem 10}
  226. #
  227. # nodename, uptime, kernel version
  228. #
  229. ${voffset 6}${font Arimo Nerd Font:size=18}${color1}\
  230. ${alignc}${nodename}${font}
  231. ${font Arimo Nerd Font:size=10}\
  232. ${voffset 6}${alignc}uptime: ${uptime}
  233. ${alignc}kernel: ${execi 86400 uname -v | grep "#1" | cut -c23-}${font}
  234. #
  235. ]]
  236.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement