Advertisement
arcolinux

conky top for arcolinuxb openbox

Apr 1st, 2019
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.14 KB | None | 0 0
  1. --[[
  2. #=====================================================================================
  3. # arcolinux
  4. # Date : package-date
  5. # Author : Erik Dubois at http://www.erikdubois.be
  6. # Version : package-version
  7. # License : Distributed under the terms of GNU GPL version 2 or later
  8. # Documentation : http://erikdubois.be
  9. #======================================================================================
  10. # CONKY
  11. # For commands in conky.config section:
  12. # http://conky.sourceforge.net/config_settings.html
  13. #
  14. # For commands in conky.text section:
  15. # http://conky.sourceforge.net/variables.html
  16. #
  17. # A PDF with all variables is provided
  18. #=====================================================================================
  19. # FONTS
  20. # To avoid copyright infringements you will have to download
  21. # and install the fonts yourself sometimes.
  22. #=====================================================================================
  23. # GENERAL INFO ABOUT FONTS
  24. # Go and look for a nice font on sites like http://www.dafont.com/
  25. # Download and unzip - double click the font to install it (font-manager must be installed)
  26. # No font-manager then put fonts in ~/.fonts
  27. # Change the font name in the conky
  28. # The name can be known with a command in the terminal: fc-list | grep "part of name"
  29. # Change width and height of the conky according to font
  30. # Reboot your system or fc-cache -fv in terminal
  31. # Enjoy
  32. #=====================================================================================
  33. # FONTS FOR THIS CONKY
  34. # no extra font(s) needed
  35. #======================================================================================
  36.  
  37.  
  38. ]]
  39.  
  40. conky.config = {
  41.  
  42. --Various settings
  43.  
  44. background = true, -- forked to background
  45. cpu_avg_samples = 2, -- The number of samples to average for CPU monitoring.
  46. diskio_avg_samples = 10, -- The number of samples to average for disk I/O monitoring.
  47. double_buffer = true, -- Use the Xdbe extension? (eliminates flicker)
  48. if_up_strictness = 'address', -- how strict if testing interface is up - up, link or address
  49. net_avg_samples = 2, -- The number of samples to average for net data
  50. no_buffers = true, -- Subtract (file system) buffers from used memory?
  51. temperature_unit = 'celsius', -- fahrenheit or celsius
  52. text_buffer_size = 2048, -- size of buffer for display of content of large variables - default 256
  53. update_interval = 1, -- update interval
  54. imlib_cache_size = 0, -- disable image cache to get a new spotify cover per song
  55.  
  56.  
  57. --Placement
  58.  
  59. alignment = 'top_middle', -- top_left,top_middle,top_right,bottom_left,bottom_middle,bottom_right,
  60. -- middle_left,middle_middle,middle_right,none
  61. --Arch Duoscreen
  62. --gap_x = -1910,
  63. gap_x = 0, -- pixels between right or left border
  64. gap_y = 40, -- pixels between bottom or left border
  65. minimum_height = 10, -- minimum height of window
  66. minimum_width = 900, -- minimum height of window
  67. maximum_width = 900, -- maximum height of window
  68.  
  69. --Graphical
  70.  
  71. border_inner_margin = 5, -- margin between border and text
  72. border_outer_margin = 5, -- margin between border and edge of window
  73. border_width = 0, -- border width in pixels
  74. default_bar_width = 280, -- default is 0 - full width
  75. default_bar_height = 10, -- default is 6
  76. default_gauge_height = 25, -- default is 25
  77. default_gauge_width =40, -- default is 40
  78. default_graph_height = 40, -- default is 25
  79. default_graph_width = 153, -- default is 0 - full width
  80. default_shade_color = '#000000', -- default shading colour
  81. default_outline_color = '#000000', -- default outline colour
  82. draw_borders = false, -- draw borders around text
  83. draw_graph_borders = true, -- draw borders around graphs
  84. draw_shades = false, -- draw shades
  85. draw_outline = false, -- draw outline
  86. stippled_borders = 0, -- dashing the border
  87.  
  88. --Textual
  89.  
  90. extra_newline = false, -- extra newline at the end - for asesome's wiboxes
  91. format_human_readable = true, -- KiB, MiB rather then number of bytes
  92. font = 'Ubuntu Mono:bold:size=10', -- font for complete conky unless in code defined
  93. max_text_width = 0, -- 0 will make sure line does not get broken if width too smal
  94. max_user_text = 16384, -- max text in conky default 16384
  95. override_utf8_locale = true, -- force UTF8 requires xft
  96. short_units = true, -- shorten units from KiB to k
  97. top_name_width = 21, -- width for $top name value default 15
  98. top_name_verbose = false, -- If true, top name shows the full command line of each process - Default value is false.
  99. uppercase = false, -- uppercase or not
  100. use_spacer = 'none', -- adds spaces around certain objects to align - default none
  101. use_xft = true, -- xft font - anti-aliased font
  102. xftalpha = 1, -- alpha of the xft font - between 0-1
  103.  
  104. --Windows
  105.  
  106. own_window = true, -- create your own window to draw
  107. own_window_argb_value = 0, -- real transparency - composite manager required 0-255
  108. own_window_argb_visual = true, -- use ARGB - composite manager required
  109. own_window_class = 'Conky', -- manually set the WM_CLASS name for use with xprop
  110. own_window_colour = '#000000', -- set colour if own_window_transparent no
  111. own_window_hints = 'undecorated,below,above,sticky,skip_taskbar,skip_pager', -- if own_window true - just hints - own_window_type sets it
  112. own_window_transparent = true, -- if own_window_argb_visual is true sets background opacity 0%
  113. own_window_title = 'system_conky', -- set the name manually - default conky "hostname"
  114. own_window_type = 'desktop', -- if own_window true options are: normal/override/dock/desktop/panel
  115.  
  116.  
  117. --Colours
  118.  
  119. default_color = '#FFFFFF', -- default color and border color
  120. color1 = '#FFFFFF',
  121. color2 = '#AAAAAA',
  122. color3 = '#cccccc',
  123. color4 = '#BDBDBD',
  124. color5 = '#CCCCCC',
  125. color6 = '#aa0000',
  126.  
  127. --Signal Colours
  128. color7 = '#1F7411', --green
  129. color8 = '#FFA726', --orange
  130. color9 = '#F1544B', --firebrick
  131.  
  132.  
  133. --Lua
  134.  
  135.  
  136. };
  137.  
  138. conky.text = [[
  139. ${execi 6000 lsb_release -d | grep 'Descr'|awk {'print $2'}} ${execi 6000 lsb_release -a | grep 'Release'|awk {'print $2""$3""$4""$5'}}\
  140. /Root ${if_match ${fs_used_perc /} < 10} ${fs_used_perc /}\
  141. ${else}${if_match ${fs_used_perc /} < 90} ${fs_used_perc /}\
  142. ${else}${color9}${fs_used_perc /}${color}${endif}${endif}% \
  143. of ${fs_size /}\
  144. ${goto 380}/Home ${if_match ${fs_used_perc /home} < 10} ${fs_used_perc /home}\
  145. ${else}${if_match ${fs_used_perc /home} < 90} ${fs_used_perc /home}\
  146. ${else}${color9}${fs_used_perc} /home}${color}${endif}${endif}% \
  147. of ${fs_size /home}\
  148. ${goto 520}CPU ${if_match ${cpu cpu0} < 10} ${cpu cpu0}\
  149. ${else}${if_match ${cpu cpu0} < 100} ${cpu cpu0}\
  150. ${else}${color9}${cpu cpu0}${color}${endif}${endif}% @ ${freq_g}Ghz\
  151. ${goto 650}RAM ${if_match ${memperc} < 10} ${memperc}\
  152. ${else}${if_match ${memperc} < 100} ${memperc}\
  153. ${else}${color9}${memperc}${color}${endif}${endif}% of ${memmax}\
  154. ${goto 780}Read ${diskio_read}\
  155. ${goto 850}Write ${diskio_write}\
  156. ${alignr}${uptime_short} \
  157. ]];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement