Advertisement
mrneilypops

conkyRAM

Jul 20th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.07 KB | None | 0 0
  1. -- Informant Conky
  2.  
  3. -- By Addy
  4. -- https://plus.google.com/+AdhiPambudi
  5. -- http://addy-dclxvi.deviantart.com/
  6. -- https://github.com/addy-dclxvi
  7.  
  8.  
  9. -- For commands above TEXT check:
  10. -- http://conky.sourceforge.net/config_settings.html
  11.  
  12. -- For commands available below TEXT check:
  13. -- http://conky.sourceforge.net/variables.html
  14.  
  15.  
  16. conky.config = {
  17. --## Begin Window Settings #####################
  18. own_window = true,
  19. own_window_type = 'desktop',
  20. own_window_transparent = true,
  21. own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky',
  22. own_window_colour = '#000000',
  23. own_window_class = 'Conky',
  24. own_window_title = 'ARCHLabs Top Conky',
  25. --## ARGB can be used for real transparency
  26. --## NOTE that a composite manager is required for real transparency.
  27. --## This option will not work as desired (in most cases) in conjunction with
  28. --## own_window_type normal
  29. -- own_window_argb_visual yes # Options: yes or no
  30.  
  31. --## When ARGB visuals are enabled, this use this to modify the alpha value
  32. --## Use: own_window_type normal
  33. --## Use: own_window_transparent no
  34. --## Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
  35. -- own_window_argb_value 50
  36.  
  37. minimum_width = 300,
  38. minimum_height = 250,
  39. maximum_width = 400,
  40.  
  41. gap_x = 50,--## left | right
  42. gap_y = 50,--## up | down
  43.  
  44. alignment = 'top_right',
  45. --###################### End Window Settings ###
  46. --## Font Settings #############################
  47. -- Use Xft (anti-aliased font and stuff)
  48. use_xft = true,
  49. --# Requires mono font for spacing reasons
  50. --xftfont Liberation Mono:bold:size=9
  51. font = 'Roboto:size=10',
  52.  
  53.  
  54. -- Alpha of Xft font. Must be a value at or between 1 and 0 ###
  55. xftalpha = 1,
  56. -- Force UTF8? requires XFT ###
  57. override_utf8_locale = true,
  58.  
  59. uppercase = false,
  60. --######################## End Font Settings ###
  61. --## Colour Settings ###########################
  62. draw_shades = false,--yes
  63. default_shade_color = 'black',
  64.  
  65. draw_outline = false,-- amplifies text if yes
  66. default_outline_color = 'black',
  67.  
  68. --default_color 656667 # Waldorf original colour
  69. --default_color 7a7a7a # Flame & Bunsen Grey
  70. --default_color 929292 # Labs Grey
  71. default_color = '#90a4ae',-- paper
  72. color0 = '#ffffff',-- purewhite
  73. color1 = '#777777',-- Gray
  74. color2 = '#D8BFD8',-- Thistle
  75. color3 = '#9ACD32',-- YellowGreen
  76. color4 = '#FFA07A',-- LightSalmon
  77. color5 = '#FFDEAD',-- NavajoWhite
  78. color6 = '#00BFFF',-- DeepSkycyan
  79. color7 = '#5F9EA0',-- Cadetcyan
  80. color8 = '#BDB76B',-- DarkKhaki
  81. color9 = '#CD5C5C',-- IndianRed
  82. --###################### End Colour Settings ###
  83. --## Borders Section ###########################
  84. draw_borders = false,
  85. -- Stippled borders?
  86. stippled_borders = 5,
  87. -- border margins
  88. border_inner_margin = 5,
  89. border_outer_margin = 0,
  90. -- border width
  91. border_width = 2,
  92. -- graph borders
  93. draw_graph_borders = true,--no
  94. --default_graph_size 15 40
  95. --####################### End Borders Secton ###
  96. --## Miscellaneous Section #####################
  97. -- Boolean value, if true, Conky will be forked to background when started.
  98. background = true,
  99. -- Adds spaces around certain objects to stop them from moving other things
  100. -- around, this only helps if you are using a mono font
  101. -- Options: right, left or none
  102. use_spacer = 'none',
  103.  
  104. -- Default and Minimum size is 256 - needs more for single commands that
  105. -- "call" a lot of text IE: bash scripts
  106. --text_buffer_size 6144
  107.  
  108. -- Subtract (file system) buffers from used memory?
  109. no_buffers = true,
  110.  
  111. -- change GiB to G and MiB to M
  112. short_units = true,
  113.  
  114. -- Like it says, ot pads the decimals on % values
  115. -- doesn't seem to work since v1.7.1
  116. pad_percents = 2,
  117.  
  118. -- Imlib2 image cache size, in bytes. Default 4MiB Increase this value if you use
  119. -- $image lots. Set to 0 to disable the image cache.
  120. imlib_cache_size = 0,
  121.  
  122. -- Use the Xdbe extension? (eliminates flicker)
  123. -- It is highly recommended to use own window with this one
  124. -- so double buffer won't be so big.
  125. double_buffer = true,
  126.  
  127. -- Maximum size of user text buffer, i.e. layout below TEXT line in config file
  128. -- (default is 16384 bytes)
  129. -- max_user_text 16384
  130.  
  131. -- Desired output unit of all objects displaying a temperature. Parameters are
  132. -- either "fahrenheit" or "celsius". The default unit is degree Celsius.
  133. -- temperature_unit Fahrenheit
  134. --################ End Miscellaneous Section ###
  135.  
  136. update_interval = 1,
  137. times_in_seconds = true,
  138. };
  139.  
  140. conky.text = [[
  141. #${font Roboto:Light:size=72}$alignr${time %H}${color0}:${time %M}${font}${color}
  142. ${font Hyperbola:Light:size=72}$alignr${mem}${font}${color}
  143. #${font Roboto:Light:size=24}${voffset 12}$alignr${color0}${execi 300 LANG=${template9} LC_TIME=${template9} date +"%A"}${color},\
  144. # ${execi 300 LANG=${template9} LC_TIME=${template9} date +"%d"}\
  145. #${color0} ${execi 300 LANG=${template9} LC_TIME=${template9} date +"%B"}${font}${voffset 2}
  146. ${hr}${color}${voffset 4}
  147. ${font Prime:pixelsize=12}${alignr} USER: ${color0}${execi 5000 whoami}${color} ${color1}I${color} MACHINE: ${color0}$nodename${color} ${color1}I${color} UPTIME: ${color0}${format_time $uptime_short "\hh\mm"} ${color}
  148. ${font Prime:pixelsize=12}${alignr} DISTRIBUTION: ${color0}${execi 6000 awk -F'=' '/DESCRIPTION/ {print $2}' /etc/lsb-release |sed 's/"//g'}${color} ${color1}I${color} VERSION: ${color0}${execi 6000 awk -F'=' '/DISTRIB_RELEASE=/ {printf $2" "} /CODENAME/ {print $2}' /etc/lsb-release}${color}
  149. ${font Prime:pixelsize=12}${alignr} ARCHITECTURE: ${color0}${machine}${color} ${color1}I${color} KERNEL: ${color0}${kernel}${color}
  150. #${font Prime:pixelsize=14}${alignr} ROOT: ${color0}${fs_used /}${color} / ${color0}${fs_size /}${color} ${color1}I${color} HOME: ${color0}${fs_used /home}${color} / ${color0}${fs_size /home}${color}
  151. #${font Prime:pixelsize=14}${alignr} CPU: ${color0}${cpu cpu0}%${color} ${color1}I${color} RAM: ${color0}$mem / $memmax${color} HD: ${color0}${fs_used_perc}%${color}
  152. #${font Roboto:pixelsize=13}${alignr} SWAP: ${color0}${swap} / ${swapmax}${color} ${color1}I${color} SYS TEMP: ${color0}${hwmon temp 1}°C${color}
  153. #${font Prime:pixelsize=12}${alignr} YOU CAN INSTALL ${color0}${execpi 12000 checkupdates | wc -l} UPDATE(S)${color}
  154. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement