Advertisement
Guest User

.conkyrc for askubuntu

a guest
Feb 25th, 2020
1,355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.31 KB | None | 0 0
  1.  
  2. --[[
  3. #=====================================================================================
  4. # arcolinux
  5. # Date : package-date
  6. # Author : Erik Dubois at http://www.erikdubois.be
  7. # Version : package-version
  8. # License : Distributed under the terms of GNU GPL version 2 or later
  9. # Documentation : http://erikdubois.be/
  10. #======================================================================================
  11. # CONKY
  12. # For commands in conky.config section:
  13. # http://conky.sourceforge.net/config_settings.html
  14. #
  15. # For commands in conky.text section:
  16. # http://conky.sourceforge.net/variables.html
  17. #
  18. # A PDF with all variables is provided
  19. #=====================================================================================
  20. # FONTS
  21. #
  22. #
  23. #=====================================================================================
  24. # GENERAL INFO ABOUT FONTS
  25. # Go and look for a nice font on sites like http://www.dafont.com/
  26. # Download and unzip - double click the font to install it (font-manager must be installed)
  27. # No font-manager then put fonts in ~/.fonts
  28. # Change the font name in the conky
  29. # The name can be known with a command in the terminal: fc-list | grep "part of name"
  30. # Change width and height of the conky according to font
  31. # Reboot your system or fc-cache -fv in terminal
  32. # Enjoy
  33. #=====================================================================================
  34. # FONTS FOR THIS CONKY
  35. # http://www.dafont.com/style-bats.font
  36. #======================================================================================
  37. # Titus Modifications
  38. #======================================================================================
  39. # Changed time from Roboto to GE Inspira which is a base Conky Gotham Addon
  40. # Changed Drives from 2 to 3
  41. # Modified one_window_type from desktop to normal for KDE compatibility
  42. # Modified Ethernet settings
  43. # Modified Pink Lines to Bright Blue
  44. # Removed Extra symbols and incorrect formatting
  45. #======================================================================================
  46.  
  47. ]]
  48.  
  49. conky.config = {
  50.  
  51. --Various settings
  52.  
  53. background = true, -- forked to background
  54. cpu_avg_samples = 2, -- The number of samples to average for CPU monitoring.
  55. diskio_avg_samples = 10, -- The number of samples to average for disk I/O monitoring.
  56. double_buffer = true, -- Use the Xdbe extension? (eliminates flicker)
  57. if_up_strictness = 'address', -- how strict if testing interface is up - up, link or address
  58. net_avg_samples = 2, -- The number of samples to average for net data
  59. no_buffers = true, -- Subtract (file system) buffers from used memory?
  60. temperature_unit = 'celsius', -- fahrenheit or celsius
  61. text_buffer_size = 2048, -- size of buffer for display of content of large variables - default 256
  62. update_interval = 1, -- update interval
  63. imlib_cache_size = 0, -- disable image cache to get a new spotify cover per song
  64.  
  65.  
  66. --Placement
  67.  
  68. alignment = 'middle_right', -- top_left,top_middle,top_right,bottom_left,bottom_middle,bottom_right,
  69. -- middle_left,middle_middle,middle_right,none
  70. --Arch Duoscreen
  71. --gap_x = -1910,
  72. gap_x = 15, -- pixels between right or left border
  73. gap_y = 0, -- pixels between bottom or left border
  74. minimum_height = 600, -- minimum height of window
  75. minimum_width = 300, -- minimum height of window
  76. maximum_width = 300, -- maximum height of window
  77.  
  78. --Graphical
  79.  
  80. border_inner_margin = 10, -- margin between border and text
  81. border_outer_margin = 5, -- margin between border and edge of window
  82. border_width = 0, -- border width in pixels
  83. default_bar_width = 80, -- default is 0 - full width
  84. default_bar_height = 10, -- default is 6
  85. default_gauge_height = 25, -- default is 25
  86. default_gauge_width =40, -- default is 40
  87. default_graph_height = 40, -- default is 25
  88. default_graph_width = 0, -- default is 0 - full width
  89. default_shade_color = '#000000', -- default shading colour
  90. default_outline_color = '#000000', -- default outline colour
  91. draw_borders = false, -- draw borders around text
  92. draw_graph_borders = true, -- draw borders around graphs
  93. draw_shades = false, -- draw shades
  94. draw_outline = false, -- draw outline
  95. stippled_borders = 0, -- dashing the border
  96.  
  97. --Textual
  98.  
  99. extra_newline = false, -- extra newline at the end - for asesome's wiboxes
  100. format_human_readable = true, -- KiB, MiB rather then number of bytes
  101. font = 'Roboto Mono:size=10', -- font for complete conky unless in code defined
  102. max_text_width = 0, -- 0 will make sure line does not get broken if width too smal
  103. max_user_text = 16384, -- max text in conky default 16384
  104. override_utf8_locale = true, -- force UTF8 requires xft
  105. short_units = true, -- shorten units from KiB to k
  106. top_name_width = 21, -- width for $top name value default 15
  107. top_name_verbose = false, -- If true, top name shows the full command line of each process - Default value is false.
  108. uppercase = false, -- uppercase or not
  109. use_spacer = 'none', -- adds spaces around certain objects to align - default none
  110. use_xft = true, -- xft font - anti-aliased font
  111. xftalpha = 1, -- alpha of the xft font - between 0-1
  112.  
  113. --Windows
  114.  
  115. own_window = true, -- create your own window to draw
  116. own_window_argb_value = 100, -- real transparency - composite manager required 0-255
  117. own_window_argb_visual = true, -- use ARGB - composite manager required
  118. own_window_colour = '#000000', -- set colour if own_window_transparent no
  119.  
  120. own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager', -- if own_window true - just hints - own_window_type sets it
  121. own_window_transparent = false, -- if own_window_argb_visual is true sets background opacity 0%
  122. own_window_title = 'system_conky', -- set the name manually - default conky "hostname"
  123. own_window_type = 'normal', -- if own_window true options are: normal/override/dock/desktop/panel
  124.  
  125.  
  126. --Colours
  127.  
  128. default_color = '#6bdfff', -- default color and border color
  129. color1 = '#6bdfff',
  130. color2 = '#b0eeff',
  131. color3 = '#6bffff',
  132. color4 = '#D9BC83',
  133. color5 = '#fffb2b',
  134. color6 = '#FFFFFF',
  135.  
  136. --Signal Colours
  137. color7 = '#1F7411', --green
  138. color8 = '#FFA726', --orange
  139. color9 = '#F1544B', --firebrick
  140.  
  141. --Lua
  142.  
  143.  
  144. };
  145.  
  146. conky.text = [[
  147. ${color6}${voffset 4}${font GE Inspira:size=36}${alignc}${time %l}:${time %M} ${time %p}${font}${color}
  148. ${color6}${voffset 4}${font GE Inspira:size=12}${alignc}${time %A} ${time %B} ${time %e}, ${time %Y}${font}${color}
  149.  
  150. ${color5}${font Roboto:size=10}${voffset 2}S Y S T E M ${hr 2}${font}${color}
  151. ${color2}${voffset 8}Hostname:${color} ${alignr}${nodename}
  152. ${color2}Distro:${color}${alignr}$sysname $kernel ${alignr}${execi 6000 lsb_release -a | grep 'Release'|awk {'print $2""$3""$4""$5'}}
  153. ${color2}Kernel:${color}${alignr}${exec uname} ${exec uname -r}
  154. ${color2}Nvidia: ${color}${alignr}${execp nvidia-smi --query-supported-clocks=gpu_name --format=csv,noheader}
  155. ${color2}Nvidia Driver: ${color}${alignr}${execi 60000 nvidia-smi | grep "Driver Version"| awk {'print $3'}}
  156. ${color2}Uptime:${color} ${alignr}${uptime}
  157.  
  158. ${color5}${font Roboto:size=10}P R O C E S S O R S ${hr 2}${font}${color}
  159. ${color2}CPU Freq:${color} $alignr${freq}MHz
  160. ${color2}CPU Temp:${color} $alignr${execi 10 sensors | grep 'Core 0' | awk {'print $3'}}
  161. ${color2}History:${color} ${alignr}${cpugraph 8,100}
  162. ${color2}${offset 30}CPU Core 1:${color} ${alignr}${offset -10}${cpu cpu1}%${alignr}${cpubar cpu1}
  163. ${color2}${offset 30}CPU Core 2:${color} ${alignr}${offset -10}${cpu cpu2}%${alignr}${cpubar cpu2}
  164. ${color2}${offset 30}CPU Core 3:${color} ${alignr}${offset -10}${cpu cpu3}%${alignr}${cpubar cpu3}
  165. ${color2}${offset 30}CPU Core 4:${color} ${alignr}${offset -10}${cpu cpu4}%${alignr}${cpubar cpu4}
  166. ${color2}${offset 30}CPU Core 5:${color} ${alignr}${offset -10}${cpu cpu5}%${alignr}${cpubar cpu5}
  167. ${color2}${offset 30}CPU Core 6:${color} ${alignr}${offset -10}${cpu cpu6}%${alignr}${cpubar cpu6}
  168. ${color2}${offset 30}CPU Core 7:${color} ${alignr}${offset -10}${cpu cpu7}%${alignr}${cpubar cpu7}
  169. ${color2}${offset 30}CPU Core 8:${color} ${alignr}${offset -10}${cpu cpu8}%${alignr}${cpubar cpu8}
  170. ${color2}Top Processes${goto 222}cpu%${goto 274}mem%${color}
  171. ${voffset 4} 1 - ${top name 1}${alignr}${goto 170} ${goto 222}${top cpu 1} ${goto 274}${top mem 1}
  172. 2 - ${top name 2}${alignr} ${goto 222}${top cpu 2} ${goto 274}${top mem 2}
  173. 3 - ${top name 3}${alignr} ${goto 222}${top cpu 3} ${goto 274}${top mem 3}
  174. 4 - ${top name 4}${alignr} ${goto 222}${top cpu 4} ${goto 274}${top mem 4}
  175. 5 - ${top name 5}${alignr} ${goto 222}${top cpu 5} ${goto 274}${top mem 5}
  176.  
  177. ${color5}${font Roboto:size=10}M E M O R Y ${hr 2}${font}${color}
  178. ${color2}${offset 30}RAM: ${color}${alignr}${offset -10}${mem} / ${memmax}${alignr}${membar}
  179. ${color2}${offset 30}Swap:${color} ${alignr}${offset -10}${swap} / ${swapmax}${alignr}${swapbar}
  180. ${color2}Top Processes${goto 222}cpu%${goto 274}mem%${color}
  181. ${voffset 4} 1 - ${top_mem name 1}${alignr}${goto 170} ${goto 222}${top_mem cpu 1} ${goto 274}${top_mem mem 1}
  182. 2 - ${top_mem name 2}${alignr}${goto 170} ${goto 222}${top_mem cpu 2} ${goto 274}${top_mem mem 2}
  183. 3 - ${top_mem name 3}${alignr}${goto 170} ${goto 222}${top_mem cpu 3} ${goto 274}${top_mem mem 3}
  184. 4 - ${top_mem name 4}${alignr}${goto 170} ${goto 222}${top_mem cpu 4} ${goto 274}${top_mem mem 4}
  185. 5 - ${top_mem name 5}${alignr}${goto 170} ${goto 222}${top_mem cpu 5} ${goto 274}${top_mem mem 5}
  186. ${color5}${font Roboto:size=10}D R I V E S ${hr 2}${font}${color}
  187. ${offset 30}${color2}SSD:${color} ${alignr}${offset -10}${fs_used /} / ${fs_size /}${alignr}${fs_bar}
  188. ${offset 30}${color2}I/O Read:${color} ${alignr}${offset -10}${diskio_read /dev/nvme0n1p3}${alignr}${diskiograph_read nvme0n1p3 8,100}
  189. ${offset 30}${color2}I/O Write:${color} ${alignr}${offset -10}${diskio_write /dev/nvme0n1p3}${alignr}${diskiograph_write nvme0n1p3 8,100}
  190.  
  191. #${offset 30}${color2}Home :${color} ${alignr}${offset -10}${fs_used /home}/ ${fs_size /home}${alignr}${fs_bar /home}
  192. #${offset 30}${color2}I/O Read:${color} ${alignr}${offset -10}${diskio_read /dev/nvme0n1p7}${alignr}${diskiograph_read nvme0n1p 8,100}
  193. #${offset 30}${color2}I/O Write:${color} ${alignr}${offset -10}${diskio_write /dev/nvme0n1p7}${alignr}${diskiograph_write nvme0n1p7 8,100}
  194.  
  195. ${color5}${color5}${font Roboto:size=10}N E T W O R K ${hr 2}${font}${color}
  196. ${color2}${offset 30}IP Address: ${color} ${alignr}${offset -10$}${addrs wlo1}
  197. ${color2}${offset 30}Wirless Up:${color} ${alignr}${offset -10$}${upspeed wlo1}${alignr}${upspeedgraph wlo1 8,100}
  198. ${color2}${offset 30}Wireless Down:${color} ${alignr}${offset -10$}${downspeed wlo1}${alignr}${downspeedgraph wlo1 8,100}
  199. ${color5}${font Roboto:size=10}N V I D I A ${hr 2}${font}
  200. ${color2}${font Roboto:size=10,weight:bold}${color2}${execp nvidia-smi --query-supported-clocks=gpu_name --format=csv,noheader}${font Roboto:size=5}
  201. ${color2}${font StyleBats:size=20}u${font}${offset 12}${voffset -12}GPU Temp ${alignr}${execi 60 nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader} °C
  202. ${color2}${offset 30}Fan Speed ${alignr}${execi 60 nvidia-settings -q [fan:0]/GPUCurrentFanSpeed -t} %
  203. ${color2}${offset 30}GPU Clock ${alignr}${execi 60 nvidia-settings -q GPUCurrentClockFreqs | grep -m 1 Attribute | awk '{print $4}' | sed -e 's/\.//' | cut -d, -f1} MHz
  204. #${color2}${offset 30}Mem Clock ${alignr}${execi 86400 nvidia-settings -q all| grep -m 1 GPUCurrentProcessorClockFreqs | awk '{print $4}' | sed 's/.$//'} MHz
  205. ${color2}${offset 30}Mem Used ${alignr}${execi 60 nvidia-settings -q [gpu:0]/UsedDedicatedGPUMemory -t} / ${exec nvidia-settings -q [gpu:0]/TotalDedicatedGPUMemory -t} MiB0
  206. ]];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement