poetician

i3 in Linux Mint 20 | conky-statusbar ver 2.0

Sep 4th, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.20 KB | None | 0 0
  1. --[[
  2. #=====================================================================================
  3. #
  4. # Author : Erik Dubois at http://www.erikdubois.be
  5. # License : Distributed under the terms of GNU GPL version 2 or later
  6. # Documentation English: http://erikdubois.be/category/linux/i3/
  7. #======================================================================================
  8.  
  9. #======================================================================================
  10. #
  11. # Source : c
  12. # alternative : sudo apt list --upgradable | wc -l
  13. #======================================================================================
  14.  
  15.  
  16. ]]
  17.  
  18. conky.config = {
  19. out_to_x = false,
  20. own_window = false,
  21. out_to_console = true,
  22. background = false,
  23. max_text_width = 0,
  24. update_interval = 1.0,
  25. total_run_times = 0,
  26. short_units = true,
  27. if_up_strictness = "address",
  28. use_spacer = "left",
  29. override_utf8_locale = false,
  30. cpu_avg_samples = 2
  31. }
  32.  
  33. conky.text = [[
  34. [
  35. {
  36. "full_text": "  ",
  37. "color": "\#cb410b",
  38. "background": "\#6c71c440",
  39. "separator": true,
  40. "separator_block_width": 0
  41. },
  42. {
  43. "full_text": " va: ${upspeed enp6s0} vient: ${downspeed enp6s0} ",
  44. "color": "\#FFD700",
  45. "background": "\#6c71c440",
  46. "separator": true,
  47. "separator_block_width": 0
  48. },
  49. {
  50. "full_text":"|",
  51. "color": "\#cd7f32",
  52. "background": "\#cd7f3280",
  53. "separator": true,
  54. "separator_block_width": 0
  55. },
  56. {
  57. "full_text": "  ",
  58. "color": "\#cb410b",
  59. "background": "\#6c71c440",
  60. "separator": true,
  61. "separator_block_width": 0
  62. },
  63. {
  64. "full_text": "Mint 20 $kernel ",
  65. "color": "\#FFD700",
  66. "background": "\#6c71c440",
  67. "separator": true,
  68. "separator_block_width": 0
  69. },
  70. {
  71. "full_text":"|",
  72. "color": "\#cd7f32",
  73. "background": "\#cd7f3280",
  74. "separator": true,
  75. "separator_block_width": 0
  76. },
  77. {
  78. "full_text": "  ",
  79. "color": "\#cb410b",
  80. "background": "\#6c71c440",
  81. "separator": true,
  82. "separator_block_width": 0
  83. },
  84. {
  85. "full_text": "${cpu cpu0}%, ${execi 5 sensors|grep 'Core 0'|awk '{print $3}'} ",
  86. "color": "\#FFD700",
  87. "background": "\#6c71c440",
  88. "separator": true,
  89. "separator_block_width": 0
  90. },
  91. {
  92. "full_text":"|",
  93. "color": "\#cd7f32",
  94. "background": "\#cd7f3280",
  95. "separator": true,
  96. "separator_block_width": 0
  97. },
  98. {
  99. "full_text": "  ",
  100. "color": "\#cb410b",
  101. "background": "\#6c71c440",
  102. "separator": true,
  103. "separator_block_width": 0
  104. },
  105. {
  106. "full_text": "${mem}/${memmax} (${memperc}%) ",
  107. "color": "\#FFD700",
  108. "background": "\#6c71c440",
  109. "separator": true,
  110. "separator_block_width": 0
  111. },
  112. {
  113. "full_text": " | ",
  114. "color": "\#cd7f32",
  115. "background": "\#6c71c440",
  116. "separator": true,
  117. "separator_block_width": 0
  118. },
  119. {
  120. #"full_text": "  ${texeci 1800 sleep 5; aptitude search '~U' | wc -l} updates ",
  121. "full_text": "  ${texeci 1800 sleep 5; checkupdates | wc -l} mis-à-jours",
  122. "color": "\#FFDF00",
  123. "background": "\#6c71c440",
  124. "separator": true,
  125. "separator_block_width": 0
  126. },
  127. {
  128. "full_text": "  ",
  129. "color": "\#cb410b",
  130. "background": "\#6c71c440",
  131. "separator": true,
  132. "separator_block_width": 0
  133. },
  134. {
  135. #linux mint
  136. "full_text": " ${exec amixer get Master | grep % | awk '{print $4}' | sed 's/[^0-9\%]//g' | head -n1} ",
  137. #arch linux
  138. #"full_text": " ${exec amixer get Master | grep % | awk '{print $5}' | sed 's/[^0-9\%]//g' | head -n1} ",
  139. "color": "\#FFD700",
  140. "background": "\#6c71c440",
  141. "separator": true,
  142. "separator_block_width": 0
  143. },
  144. {
  145. "full_text":"|",
  146. "color": "\#cd7f32",
  147. "background": "\#cd7f3280",
  148. "separator": true,
  149. "separator_block_width": 0
  150. },
  151. {
  152. "full_text": "  ",
  153. "color": "\#cb410b",
  154. "background": "\#6c71c440",
  155. "separator": true,
  156. "separator_block_width": 0
  157. },
  158. {
  159. "full_text": "${time %a, %d/%m/%y} ",
  160. "color": "\#FFD700",
  161. "background": "\#6c71c440",
  162. "separator": true,
  163. "separator_block_width": 0
  164. },
  165. {
  166. "full_text":"|",
  167. "color": "\#cd7f32",
  168. "background": "\#cd7f3280",
  169. "separator": true,
  170. "separator_block_width": 0
  171. },
  172. {
  173. "full_text": "  ",
  174. "color": "\#cb410b",
  175. "background": "\#6c71c440",
  176. "separator": true,
  177. "separator_block_width": 0
  178. },
  179. {
  180. "full_text": "${time %H:%M:%S} ",
  181. "color": "\#FFD700",
  182. "background": "\#6c71c440",
  183. "separator": true,
  184. "separator_block_width": 0
  185. },
  186. {
  187. "full_text": " | ",
  188. "color": "\#cd7f32",
  189. "background": "\#6c71c440",
  190. "separator": true,
  191. "separator_block_width": 0
  192. }
  193. ],
  194. ]]
  195.  
Add Comment
Please, Sign In to add comment