kasak730

Conky

Jul 19th, 2021
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.51 KB | None | 0 0
  1. ]]
  2.  
  3. conky.config = {
  4.  
  5.  
  6. --Various settings
  7.  
  8. background = true, -- forked to background
  9. cpu_avg_samples = 4, -- The number of samples to average for CPU monitoring.
  10. diskio_avg_samples = 10, -- The number of samples to average for disk I/O monitoring.
  11. double_buffer = true, -- Use the Xdbe extension? (eliminates flicker)
  12. if_up_strictness = 'address', -- how strict if testing interface is up - up, link or address
  13. net_avg_samples = 2, -- The number of samples to average for net data
  14. no_buffers = true, -- Subtract (file system) buffers from used memory?
  15. temperature_unit = 'celsius', -- fahrenheit or celsius
  16. text_buffer_size = 2048, -- size of buffer for display of content of large variables - default 256
  17. update_interval = .7, -- update interval
  18. imlib_cache_size = 0, -- disable image cache to get a new spotify cover per song
  19.  
  20. --Placement
  21.  
  22. alignment = 'middle_right', -- top_left,top_middle,top_right,bottom_left,bottom_middle,bottom_right,
  23. -- middle_left,middle_middle,middle_right,none
  24. --Arch Duoscreen
  25. --gap_x = -1910,
  26. gap_x = 10, -- pixels between right or left border
  27. gap_y = -10, -- pixels between bottom or left border
  28. minimum_height = 300, -- minimum height of window
  29. maximin_height = 500,
  30. minimum_width = 230, -- minimum height of window
  31. maximum_width = 230, -- maximum height of window
  32.  
  33. --Graphical
  34.  
  35. border_inner_margin = 10, -- margin between border and text
  36. border_outer_margin = 1, -- margin between border and edge of window
  37. border_width = 0, -- border width in pixels
  38. default_bar_width = 230, -- default is 0 - full width
  39. default_bar_height = 10, -- default is 6
  40. default_gauge_height = 25, -- default is 25
  41. default_gauge_width =40, -- default is 40
  42. default_graph_height = 40, -- default is 25
  43. default_graph_width = 153, -- default is 0 - full width
  44. default_shade_color = '#79FFFE', -- default shading colour
  45. default_outline_color = '#70FFFE', -- default outline colour
  46. draw_borders = false, -- draw borders around text
  47. draw_graph_borders = true, -- draw borders around graphs
  48. draw_shades = false, -- draw shades
  49. draw_outline = false, -- draw outline
  50. stippled_borders = 0, -- dashing the border
  51.  
  52. --Textual
  53.  
  54. extra_newline = false, -- extra newline at the end - for asesome's wiboxes
  55. format_human_readable = true, -- KiB, MiB rather then number of bytes
  56. font = 'SourceSansPro-ExtraLight:size=11:bold', -- font for complete conky unless in code defined
  57. max_text_width = 0, -- 0 will make sure line does not get broken if width too smal
  58. max_user_text = 16384, -- max text in conky default 16384
  59. override_utf8_locale = true, -- force UTF8 requires xft
  60. short_units = true, -- shorten units from KiB to k
  61. top_name_width = 21, -- width for $top name value default 15
  62. top_name_verbose = true, -- If true, top name shows the full command line of each process - Default value is false.
  63. uppercase = false, -- uppercase or not
  64. use_spacer = 'none', -- adds spaces around certain objects to align - default none
  65. use_xft = true, -- xft font - anti-aliased font
  66. xftalpha = 1, -- alpha of the xft font - between 0-1
  67.  
  68. --Windows
  69.  
  70. own_window = true, -- create your own window to draw
  71. own_window_argb_value =75, -- real transparency - composite manager required 0-255
  72. own_window_argb_visual = true, -- use ARGB - composite manager required
  73. own_window_class = 'Conky', -- manually set the WM_CLASS name for use with xprop
  74. own_window_colour = '#000000', -- set colour if own_window_transparent no
  75. own_window_hints = 'undecorated,below,above,sticky,skip_taskbar,skip_pager', -- if own_window true - just hints - own_window_type sets it
  76. own_window_transparent = false, -- if own_window_argb_visual is true sets background opacity 0%
  77. own_window_title = 'system_conky', -- set the name manually - default conky "hostname"
  78. own_window_type = 'override', -- if own_window true options are: normal/override/dock/desktop/panel
  79.  
  80.  
  81. --Colours
  82.  
  83. default_color = '#fa6969', -- default color and border color
  84. color1 = '#bbbbbb', --grey
  85. color2 = '#79FFFE', --baby blue
  86. color3 = '#2EEF0B', --bright green
  87. color4 = '#B53BED', --purple
  88. color5 = '#ED3B59', --light red
  89. color6 = '#FF1439', --red
  90.  
  91. --Signal Colours
  92. color7 = '#FFDA14', --alert orange
  93. color8 = '#FEF900', --bright yellow
  94. color9 = '#79FFFE', --baby blue
  95.  
  96. --Lua
  97.  
  98. };
  99.  
  100.  
  101. conky.text = [[
  102. ${color1}${font AlexBrush-Regular.ttf:size=28}${color2}${execi 6000 lsb_release -d | grep 'Descr'|awk {'print $2 " " $3" " $4" " $5'}}
  103. ${color6}${hr 2}
  104. ${voffset -10}${color1}${font SourceSansPro-ExtraLight:size=10:weight:bold:italic}${color5}$sysname $kernel ${alignr}${execi 6000 lsb_release -a | grep 'Release'|awk {'print $2""$3""$4""$5'}}${color}
  105. ${color4}${font SourceSansPro-ExtraLight:size=12:weight:bold}Uptime ${alignr}${color5} $uptime
  106. ${color4}SSD${alignr}${color5}${fs_free}${color} of ${color6}${fs_size}${color}
  107. ${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 -20}${endif}
  108. ${color4}Packages Upgrades${alignr}${color5}${execi 3600 checkupdates | wc -l}
  109. ${color4}${font SourceSansPro-ExtraLight:size=12:weight:bold}Cpu Temp ${alignr}${color5}${execi 10 sensors | grep 'Core 0' | awk {'print $3'}}
  110. ${color6}${hr 2}
  111. ${font SourceSansPro-ExtraLight size=12:weight:bold}${color2}CPU
  112. ${font SourceSansPro-ExtraLight size=8:weight:italic}${color2}${execi 6000 cat /proc/cpuinfo | grep -i 'Model name' -m 1 | cut -c14-43}${font}
  113. ${color1}${cpugraph 40,230 0418f4 FF0000 -t}
  114. ${offset 30}${font SourceSansPro-ExtraLight:size=12:weight:bold}${color5}${top name 1}${alignr}${color5}${top cpu 1}%${font}
  115. ${offset 30}${color7}${top name 2}${alignr}${color7}${top cpu 2}%
  116. ${offset 30}${color2}${top name 3}${alignr}${color7}${top cpu 3}%
  117. ${offset 30}${color2}${top name 4}${alignr}${color8}${top cpu 4}%
  118. ${offset 30}${color2}${top name 5}${alignr}${color3}${top cpu 5}%
  119. ${offset 30}${color2}${top name 6}${alignr}${color3}${top cpu 6}%
  120. ${color1}${color7}Cpu Freq ${alignr}${color5}${freq_g} Ghz
  121. ${font SourceSansPro-ExtraLight size=12 weight:bold}${color5}CPU Usage${alignr}${if_match ${cpu cpu0} > 80}${color1}${else}${if_match ${cpu cpu0} > 50}${color8}${else}${color6}${endif}${endif}${cpu cpu0}%
  122. ${color6}${hr 2}${font}${color}
  123. ${color2}${font SourceSansPro-ExtraLight:size=12:weight:bold}Memory
  124. ${color1}${memgraph 40,230 0418f4 FF0000 -t}
  125. ${offset 30}${font SourceSansPro-ExtraLight:size=12:weight:bold}${color5}${top_mem name 1}${alignr}${alignr}${color5}${top_mem mem 1}${font}
  126. ${offset 30}${color7}${top_mem name 2}${alignr}${alignr}${color7}${top_mem mem 2}
  127. ${offset 30}${color2}${top_mem name 3}${alignr}${alignr}${color7}${top_mem mem 3}
  128. ${offset 30}${color2}${top_mem name 4}${alignr}${alignr}${color8}${top_mem mem 4}
  129. ${offset 30}${color2}${top_mem name 5}${alignr}${alignr}${color3}${top_mem mem 5}
  130. ${offset 30}${color2}${top_mem name 6}${alignr}${alignr}${color3}${top_mem mem 6}
  131. ${offset 0}${color5}Memory Percentage ${alignr}${color3}${memperc}%
  132. ${offset 0}${color5}${color1}Memory used${alignr}${color6}${mem}
  133. ${offset 0}${color6}Total Memory${alignr}${color3}${memmax}
  134. ${color6}${hr 2}
  135. ]]
  136.  
Advertisement
Add Comment
Please, Sign In to add comment