Guest User

Untitled

a guest
May 10th, 2018
70
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[
  2. #=====================================================================================
  3. # aureola
  4. # Date : 27/01/2018
  5. # Author : Erik Dubois at http://www.erikdubois.be
  6. # Version : v2.0.3
  7. # License : Distributed under the terms of GNU GPL version 2 or later
  8. # Documentation : http://erikdubois.be/category/linux/aureola/
  9. #======================================================================================
  10.  
  11. #======================================================================================
  12. #
  13. # Source : conky-sys-info V5 by +WillemO 25-june-16
  14. #
  15. #======================================================================================
  16.  
  17.  
  18. ]]
  19.  
  20. conky.config = {
  21.  
  22. --Various settings
  23.  
  24. background = true, -- forked to background
  25. cpu_avg_samples = 2,
  26. diskio_avg_samples = 10,
  27. double_buffer = true,
  28. if_up_strictness = 'address',
  29. net_avg_samples = 2,
  30. no_buffers = true,
  31. temperature_unit = 'fahrenheit',
  32. text_buffer_size = 2048,
  33. update_interval = 1,
  34. imlib_cache_size = 0, --spotify cover
  35.  
  36. --Placement
  37.  
  38. alignment = 'top_right',
  39. gap_x = 10,
  40. gap_y = 0,
  41. minimum_height = 400,
  42. minimum_width = 260,
  43. maximum_width = 280,
  44.  
  45. --Graphical
  46.  
  47. border_inner_margin = 10, -- margin between border and text
  48. border_outer_margin = 0, -- margin between border and edge of window
  49. border_width = 0, -- border width in pixels
  50. default_bar_width = 280,
  51. default_bar_height = 10,
  52. default_gauge_height = 25,
  53. default_gauge_width =40,
  54. default_graph_height = 40,
  55. default_graph_width = 153,
  56. default_shade_color = '#000000',
  57. default_outline_color = '#000000',
  58. draw_borders = false, --draw borders around text
  59. draw_graph_borders = true,
  60. draw_shades = false,
  61. draw_outline = false,
  62. stippled_borders = 0,
  63.  
  64. --Textual
  65.  
  66. extra_newline = false,
  67. format_human_readable = true,
  68. font = 'SourceSansPro-ExtraLight:size=8:oblique',
  69. max_text_width = 0,
  70. max_user_text = 16384,
  71. override_utf8_locale = true,
  72. short_units = true,
  73. top_name_width = 21,
  74. top_name_verbose = false,
  75. uppercase = false,
  76. use_spacer = 'none',
  77. use_xft = true,
  78. xftalpha = 1,
  79.  
  80. --Windows
  81.  
  82. own_window = true,
  83. own_window_argb_value = 150,
  84. own_window_argb_visual = true,
  85. own_window_class = 'Conky',
  86. own_window_colour = '#000000',
  87. own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
  88. own_window_transparent = no,
  89. own_window_title = 'system_conky',
  90. own_window_type = 'normal',-- # options are: normal/override/dock/desktop/panel
  91.  
  92.  
  93. --Colours
  94.  
  95. default_color = '#000000', -- default color and border color
  96. color1 = '#047875',
  97. color2 = '#B5090B',
  98. color3 = '#DA9306',
  99. color4 = '#78A604',
  100. color5 = '#CCCCCC',
  101. color6 = '#FFFFFF',
  102.  
  103. --Signal Colours
  104. color7 = '#1F7411', --green
  105. color8 = '#FFA726', --orange
  106. color9 = '#F1544B', --firebrick
  107.  
  108.  
  109. --Lua
  110.  
  111.  
  112. };
  113.  
  114.  
  115. conky.text = [[
  116. ${color1}${font SourceSansPro-ExtraLight:size=10:weight:bold}Aureola Shailen${alignr}${color6}${font}v2.0.3
  117. ${color4}${hr 2}${color}
  118. ${color6}${font SourceSansPro-ExtraLight:size=12:weight:bold}${execi 6000 lsb_release -d | grep 'Descr'|awk {'print $2 " " $3" " $4" " $5'}}${color}
  119. ${color3}${font SourceSansPro-ExtraLight:size=8:weight:bold}$sysname $kernel${color}
  120. ${color1}${cpugraph 40,210 688BC6 688BC6 -t}${color}
  121. ${color3}CPU Usage over Time of ${color1}${execi 6000 cat /proc/cpuinfo | grep -i 'Model name' -m 1 | cut -c14-35}${color}
  122. ${color6}Cpu Temp ${alignr}${color6}${execi 10 sensors | grep 'Core 0' | awk {'print $3'}}${color}
  123. ${color1}${cpubar cpu0 10,150}${color1} Cpu ${alignr}${if_match ${cpu cpu0} > 80}${color9}${else}${if_match ${cpu cpu0} > 50}${color8}${else}${color6}${endif}${endif}${cpu cpu0}%${color}
  124. ${if_existing /proc/acpi/battery/BAT0/info}${if_match ${battery_percent BAT0} <= 20}${color3}${battery_bar 10,150 BAT0} Battery${alignr}${color7}${battery_percent BAT0}%${else}${color1}${battery_bar 10,150 BAT0} Battery${alignr}${color1}${battery_percent BAT0}%${endif}${else}${voffset -15}${endif}${color}
  125. ${color1}${membar 10,150} Mem ${alignr}${if_match ${memperc} > 80}${color9}${else}${color6}${endif}${color6}${memperc}%${color}
  126. ${color1}${hr 2}${color}
  127. # Showing TOP 5 CPU-consumers
  128. ${offset 30}${color2}${top name 1}${alignr}${color6}${top cpu 1}%${color}
  129. ${offset 30}${color2}${top name 2}${alignr}${color6}${top cpu 2}%${color}
  130. ${offset 30}${color2}${top name 3}${alignr}${color6}${top cpu 3}%${color}
  131. ${offset 30}${color2}${top name 4}${alignr}${color6}${top cpu 4}%${color}
  132. ${offset 30}${color2}${top name 5}${alignr}${color6}${top cpu 5}%${color}
  133. ${offset 30}${color2}${top name 6}${alignr}${color6}${top cpu 6}%${color}
  134. ${if_existing /proc/net/route en}${color6}Ethernet${color}
  135. ${offset 10}${color1}Up ${color6}${totalup enp2s0}${color1}${alignr}${color6}${totaldown enp2s0} ${color1}Down${color}
  136. ${offset 10}${color1}Up ${color6}${upspeed enp2s0}${color1}${alignr}${color6}${downspeed enp2s0} ${color1}Down${color}
  137. #${upspeedgraph enp2s0 40,300 4B1B0C FF5C2B 10000000 -l -t}${color}
  138. #${downspeedgraph enp2s0 40,300 324D23 77B753 10000000 -l -t}${color}
  139. ${else}${color6}Wireless${color}
  140. ${offset 10}${color1}Up ${color1}${totalup wlo1}${color1}${alignr}${color1}${totaldown wlo1} Down${color}
  141. ${offset 10}${color1}Up ${color1}${upspeed wlo1}${color1}${alignr}${color1}${downspeed wlo1} Down${color}
  142. #${upspeedgraph wlo1 40,300 4B1B0C FF5C2B 10000000 -l -t}${color}
  143. #${downspeedgraph wlo1 40,300 324D23 77B753 10000000 -l -t}${color}
  144. ${endif}\
  145. ${color3}${hr 2}${color}
  146. ${if_running dropbox}\
  147. ${color6}Dropbox Status : ${color}
  148. ${alignr}${color1}${execi 3 python2 ~/.config/conky/dropbox.py status}${color}
  149. ${else}\
  150. ${color4}Dropbox Status :${alignr}${color1} Offline${color}\
  151. ${endif}
  152. ${color4}Spotify Playing :${color}
  153. ${color6}${if_running spotify}\
  154. ${alignr}${color1}Title : ${color6}${execi 5 dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'|egrep -A 1 "title"|egrep -v "title"|cut -b 44-|cut -d '"' -f 1|egrep -v ^$}
  155. ${alignr}${color1}Artist : ${color6}${execi 5 dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'|egrep -A 2 "artist"|egrep -v "artist"|egrep -v "array"|cut -b 27-|cut -d '"' -f 1|egrep -v ^$}
  156. ${alignr}${color1}Album : ${color6}${execi 5 dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'|egrep -A 1 "album"|egrep -v "album"|cut -b 44-|cut -d '"' -f 1|egrep -v ^$}\
  157. ${else}\
  158. ${color1}${alignr}Spotify offline${color}\
  159. ${endif}
  160. ]]
RAW Paste Data