mrdhobbs

Gold Conky Config

Aug 3rd, 2023
449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.01 KB | Source Code | 0 0
  1. --------------------------
  2. -- Sidebar Diagnostics ---
  3. -- @ceeslans 2020-03-26 --
  4. ---- Edit by mrdhobbs ----
  5. -------- 15/08/22 --------
  6. --------------------------
  7.  
  8. conky.config = {
  9.  
  10. update_interval = 5,
  11. total_run_times = 0,
  12. cpu_avg_samples = 2,
  13. double_buffer = true,
  14. no_buffers = true,
  15. pad_percents = 2,
  16. short_units = false,
  17. top_name_width = 9,
  18. use_spacer = 'right',
  19.  
  20. background = true,
  21. own_window = true,
  22. own_window_type = 'normal',
  23. own_window_colour = '000000',
  24. own_window_transparent = false,
  25. own_window_argb_visual = true,
  26. own_window_argb_value = 128,
  27. own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
  28. own_window_class = 'Conky',
  29. own_window_title = 'ConkySidebarDiagnostics',
  30.  
  31. draw_outline = false,
  32. draw_shades = false,
  33. default_shade_color = '000000',
  34. stippled_borders = 0,
  35. draw_borders = false,
  36. border_width = 1,
  37. draw_graph_borders = false,
  38. border_inner_margin = 0,
  39.  
  40. use_xft = true,
  41. xftalpha = 1,
  42. font = 'Fira Sans:size=8',
  43. override_utf8_locale = true,
  44. uppercase = false,
  45.  
  46. minimum_width = 200,
  47. maximum_width = 200,
  48. minimum_height = 1380,
  49. gap_x = 10,
  50. gap_y = 10,
  51. alignment = 'top_right',
  52.  
  53. default_color = '9a7e53',
  54. --default_color = 'AAAAAA',
  55.  
  56. color1 = 'af905e', -- #gold
  57. --color1 = 'FFFFFF', -- #white
  58. --color1 = '00FFFF', -- #cyan
  59. --color1 = 'FFFF00', -- #yellow
  60. --color1 = '00FF00', -- #lime green
  61. --color1 = 'F62817', -- #fire engine red
  62. --color1 = '3CCDFF', -- #blue
  63. --color1 = '151515', -- #black
  64. --color1 = '308280', -- #prussian green
  65.  
  66. -- if_up_strictness link: up | link | address
  67. if_up_strictness = 'address',
  68.  
  69. -- network template
  70. template0 = 'eno1',
  71. template1 = 'eth1',
  72. template2 = 'wlan0',
  73. template3 = 'wlan1',
  74.  
  75. -- time template
  76. template4 = '%H:%M:%S',
  77.  
  78. };
  79.  
  80. conky.text = [[
  81. ### TIME/DATE ###
  82. ${color1}\
  83. ${voffset 0}${goto 15}${font Poky:size=24}d ${voffset -7}\
  84. ${alignr 15}${font Cantarell Regular:size=16:weight=bold}${time %H:%M}${color}
  85. ${voffset -5}${alignr 15}${font}${time %A, %d %B %Y}
  86. ### SYSTEM ###
  87. ${color1}${voffset 0}${hr}
  88. ${voffset 10}${goto 15}${font Poky:size=24}x ${voffset -10}\
  89. ${alignr 15}${font Cantarell Regular:size=12:weight=bold}SYS${font}
  90. ${voffset 10}${color}${font Cantarell Regular:size=8:weight=bold}${alignc}${exec lsb_release -ds | tr -d '"' | tr -d '\n'}${font}
  91. ${alignc}${font}${kernel}
  92. ${alignc}${sysname} ${machine}
  93. ${voffset 10}\
  94. ${goto 15}Session ${alignr 15}${execi 86400 printenv XDG_SESSION_DESKTOP} ${execi 86400 plasmashell --version | awk '{print $2;}'}
  95. ${goto 15}Uptime ${alignr 15}${uptime}
  96. ${goto 15}User ${alignr 15}${execi 86400 printenv USER}@${nodename}
  97. ${goto 15}Processes ${alignr 15}${processes}
  98. ${goto 15}Running ${alignr 10}${running_processes}
  99. ${goto 15}Updates ${alignr 15}${execpi 3600 checkupdates | awk 'END { print (NR == 0 ? "System up to date" : NR " package" (NR > 1 ? "s" : "")); }'}${color}
  100. ${goto 15}Gamemode ${alignr 15}${if_match "${exec gamemoded -s | awk '{print $3;}'}" == "active"}${color1}ON${color}${else}OFF${endif}
  101. ${goto 15}Fans ${alignr 15}${hwmon 5 fan 2} | ${hwmon 5 fan 3} | ${hwmon 5 fan 4} | ${hwmon 5 fan 5} | ${hwmon 5 fan 6}
  102. ## ${goto 15}Minecraft Server ${alignr 15}${execpi 24 minecraftd status | grep "Status" | cut -d ':' -f 2}
  103. ### DISK ###
  104. ${color1}${voffset 10}${hr}
  105. ${goto 15}${font Poky:size=24}y ${voffset -10}\
  106. ${alignr 15}${font Cantarell Regular:size=12:weight=bold}DISK${font}${voffset 15}${color}
  107. ${goto 15}Root ${alignr 15}${fs_bar 8,70 /}
  108. ${voffset -17}${alignr 90}${fs_free /}
  109. ${voffset 4}\
  110. ${goto 15}Data ${alignr 15}${fs_bar 8,70 /mnt/Data}
  111. ${voffset -17}${alignr 90}${fs_free /mnt/Data}
  112. ${voffset 4}\
  113. ${goto 15}Games ${alignr 15}${fs_bar 8,70 /mnt/Games}
  114. ${voffset -17}${alignr 87}${fs_free /mnt/Games}
  115. ${voffset 4}\
  116. ${goto 15}Steam ${alignr 15}${fs_bar 8,70 /mnt/Steam}
  117. ${voffset -17}${alignr 87}${fs_free /mnt/Steam}
  118. ${voffset 4}\
  119. ${goto 15}Plex ${alignr 15}${fs_bar 8,70 /mnt/Plex}
  120. ${voffset -17}${alignr 90}${fs_free /mnt/Plex}
  121. ${voffset 4}\
  122. ${goto 15}Backup ${alignr 15}${fs_bar 8,70 /mnt/Backup}
  123. ${voffset -17}${alignr 90}${fs_free /mnt/Backup}
  124. ### CPU ###
  125. ${color1}${voffset 10}${hr}
  126. ${goto 15}${font Poky:size=24}a ${voffset -10}\
  127. ${alignr 15}${font Cantarell Regular:size=12:weight=bold}CPU${font}${voffset 15}${color}
  128. ${alignc}${font Cantarell Regular:size=8:weight=bold}${execi 86400 sed -nr -e '/^model name\s*: /{s:::; s:(intel|amd|[(]r[)])::Ig; s:@.*::;p;q}' /proc/cpuinfo}
  129. ${voffset 5}${font}\
  130. ${goto 15}Clock ${alignr 15}${freq}MHz
  131. ${goto 15}Temp ${alignr 15}${exec sensors | grep -A 2 'pch_cannonlake-virtual-0' | grep '°C' | cut -c 16-17}°C
  132. ${goto 15}Load ${alignr 15}${cpu cpu0}%
  133. ${goto 15}Core1 ${alignr 15}${cpu cpu1}%
  134. ${goto 15}Core2 ${alignr 15}${cpu cpu2}%
  135. ${goto 15}Core3 ${alignr 15}${cpu cpu3}%
  136. ${goto 15}Core4 ${alignr 15}${cpu cpu4}%
  137. ${goto 15}Core5 ${alignr 15}${cpu cpu5}%
  138. ${goto 15}Core6 ${alignr 15}${cpu cpu6}%
  139. ### TOP CPU
  140. ${voffset 10}${font}\
  141. ${goto 20}${top name 1}${alignr 20}${top cpu 1} %
  142. ${goto 20}${top name 2}${alignr 20}${top cpu 2} %
  143. ${goto 20}${top name 3}${alignr 20}${top cpu 3} %
  144. ${goto 20}${top name 4}${alignr 20}${top cpu 4} %
  145. ### MEM ###
  146. ${color1}${voffset 10}${hr}
  147. ${goto 15}${font Poky:size=24}M ${voffset -10}\
  148. ${alignr 15}${font Cantarell Regular:size=12:weight=bold}RAM${font}${voffset 15}${color}
  149. ${goto 15}Load ${alignr 15}${memperc} %
  150. ${goto 15}Used ${alignr 15}${mem}
  151. ${goto 15}Size ${alignr 15}${memmax}
  152. ${goto 15}Free ${alignr 14}${memfree}
  153. ${goto 15}Swap ${alignr 15}${swap}${swapbar 8,70}
  154. ### TOP MEM
  155. ${voffset 10}${font}\
  156. ${goto 20}${top_mem name 1} ${alignr 20}${top_mem mem 1} %
  157. ${goto 20}${top_mem name 2} ${alignr 20}${top_mem mem 2} %
  158. ${goto 20}${top_mem name 3} ${alignr 20}${top_mem mem 3} %
  159. ${goto 20}${top_mem name 4} ${alignr 20}${top_mem mem 4} %
  160. ### GPU ###
  161. ${color1}${voffset 10}${hr}
  162. ${goto 15}${font Poky:size=24}N ${voffset -10}\
  163. ${alignr 15}${font Cantarell Regular:size=12:weight=bold}GPU${font}${voffset 15}${color}
  164. ${alignc}${font Cantarell Regular:size=8:weight=bold}${exec nvidia-smi -q | grep "Product Name" | cut -c45-80}
  165. ${voffset 5}${font}\
  166. ${goto 15}Driver ${alignr 15}${exec nvidia-smi -q | grep "Driver Version" | cut -c45-60}
  167. ${goto 15}Temp ${alignr 15}${exec nvidia-smi -q | grep "GPU Current Temp" | cut -c45-60}
  168. ${goto 15}Fan ${alignr 15}${exec nvidia-smi -q | grep "Fan Speed" | cut -c45-60}
  169. ${goto 15}GPU ${exec nvidia-smi -q | grep "Gpu" | cut -c45-60}${alignr 15}Mem ${exec nvidia-smi -q | grep "Memory" | sed -e 's/Memory.*: //'| awk 'NR==3{print; }' | cut -c9-13}
  170. ### NET ###
  171. ${color1}${voffset 10}${hr}
  172. ${goto 15}${font Poky:size=24}Y ${voffset -10}\
  173. ${alignr 15}${font Cantarell Regular:size=12:weight=bold}NET${font}${voffset 15}${color}
  174. ${goto 15}Ext IP ${alignr 15}${execi 3600 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}
  175. ${goto 15}Int IP ${alignr 15}${addr $template0}
  176. ${goto 15}In ${alignr 45}${downspeed $template0}/s${alignr 15}${totaldown $template0}
  177. ${goto 15}Out ${alignr 45}${upspeed $template0}/s${alignr 14}${totalup $template0}
  178. ]]
  179.  
Tags: conky garuda
Advertisement
Add Comment
Please, Sign In to add comment