Guest User

Untitled

a guest
Feb 27th, 2017
1,009
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- --------------------------------------------------------------------------------------------- --
  2. --
  3. -- .conkyrc - derived from various examples across the 'net
  4. --
  5. -- --------------------------------------------------------------------------------------------- --
  6. conky.config = {
  7. -- -------------------- Conky's Run Time Parameters -------------------- --
  8.  
  9. update_interval = 3.0, -- Conky update interval in seconds
  10. total_run_times = 0, -- Number of updates before quitting. Set to zero to run forever.
  11. no_buffers = true, -- Subtract file system buffers from used memory?
  12. cpu_avg_samples = 1, -- Number of cpu samples to average. Set to 1 to disable averaging
  13. net_avg_samples = 1, -- Number of net samples to average. Set to 1 to disable averaging
  14.  
  15. -- -------------------- Conky's General Look & Feel -------------------- --
  16.  
  17. -- --- defualt values --- --
  18. default_color = 'grey', -- Default color and border color
  19. default_bar_width = 0, -- Specify a default width and height for bars.
  20. default_bar_height = 2,
  21. default_gauge_width = 20, -- Specify a default width and height for gauges.
  22. default_gauge_height = 20,
  23. default_graph_width = 0, -- Specify a default width and height for graphs.
  24. default_graph_height = 16,
  25. default_outline_color = 'green', -- Default border and text outline color
  26. default_shade_color = 'yellow', -- Default border and text shading color
  27.  
  28. -- --- predefined colors - http://www.kgym.jp/freesoft/xrgb.html --- --
  29. color0 = 'FFFFFF', -- white
  30. color1 = 'FFA500', -- orange
  31. color2 = 'B22222', -- firebrick
  32. color3 = '696969', -- dim gray
  33. color4 = 'D3D3D3', -- light gray
  34. color5 = '2F4F4F', -- dark slate gray
  35. color6 = 'FFEC8B', -- light golden rod
  36. color7 = '54FF9F', -- sea green
  37. color8 = 'FF8C69', -- salmon
  38. color9 = 'FFE7BA', -- wheat
  39.  
  40. -- --- window layout and options --- --
  41. own_window = true, -- Conky creates its own window instead of using desktop
  42. own_window_class = 'Conky',
  43. own_window_type = 'desktop', -- If own_window is yes, use type normal, desktop, or override
  44. own_window_transparent = true, -- Use pseudo transparency with own_window?
  45. own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
  46. own_window_argb_visual = true,
  47. own_window_argb_value = 255,
  48. own_window_colour = 'black', -- If own_window_transparent is no, set the background colour
  49. double_buffer = true, -- Use double buffering (reduces flicker)
  50. use_spacer = 'right', -- Adds spaces to stop object from moving
  51. maximum_width = 242, -- Maximum width of window in pixels
  52.  
  53. -- --- window placment --- --
  54. alignment = 'top_right',
  55.  
  56. -- --- borders, margins, and outlines --- --
  57. draw_graph_borders = true, -- Do you want to draw borders around graphs
  58. border_inner_margin = 9, -- Window's inner border margin (in pixels)
  59. border_outer_margin = 5, -- Window's outer border margin (in pixels)
  60. gap_x = 10, -- Gap between borders of screen and text (on x-axis)
  61. gap_y = 10, -- Gap between borders of screen and text (on y-axis)
  62. border_width = 10, -- Window's border width (in pixels)
  63.  
  64. -- --- Text --- --
  65. draw_outline = false, -- Do you want ot draw outlines
  66. draw_shades = false, -- Do you want to draw shades
  67. draw_borders = false, -- Do you want to draw borders around text
  68. uppercase = false, -- set to yes if you want all text to be in uppercase
  69. use_xft = true, -- use the X FreeType interface library (anti-aliased font)
  70. font = 'Monospace:size=7:weight=bold' -- Xft font to be used
  71. }
  72. -- -------------------- Conky's Displayed System Monitoring Parameters -------------------- --
  73. conky.text = [[
  74. ## General system information
  75. ${color1}SYSTEM INFORMATION ${hr 1}$color
  76. ${color0}System: $color$nodename $machine ${execi 99999 grep Serial /proc/cpuinfo | awk '{ print $3 }'}
  77. ${color0}Kernel: $color$kernel ${color0}Uptime: $color$uptime
  78. #
  79. #${color1}CLOCK SPEED ${hr 1}$color
  80. #${color0}ARM: $color${execi 60 /opt/vc/bin/vcgencmd measure_clock arm | awk -F'=' '{print $2}' } ${goto 112}${color0}H264: $color${execi 60 /opt/vc/bin/vcgencmd measure_clock h264 | awk -F'=' '{print $2}' } ${goto 200}${color0}PWM: $color${execi 999 /opt/vc/bin/vcgencmd measure_clock pwm | awk -F'=' '{print $2}' }
  81. #${color0}CORE: $color${execi 60 /opt/vc/bin/vcgencmd measure_clock core | awk -F'=' '{print $2}' } ${goto 112}${color0}ISP: $color${execi 60 /opt/vc/bin/vcgencmd measure_clock isp | awk -F'=' '{print $2}' } ${goto 200}${color0}EMMS: $color${execi 999 /opt/vc/bin/vcgencmd measure_clock emms | awk -F'=' '{print $2}' }
  82. #${color0}UART: $color${execi 999 /opt/vc/bin/vcgencmd measure_clock uart | awk -F'=' '{print $2}' } ${goto 112}${color0}V3D: $color${execi 60 /opt/vc/bin/vcgencmd measure_clock v3d | awk -F'=' '{print $2}' } ${goto 200}${color0}VEC: $color${execi 999 /opt/vc/bin/vcgencmd measure_clock vec | awk -F'=' '{print $2}' }
  83. #${color0}HDMI: $color${execi 999 /opt/vc/bin/vcgencmd measure_clock hdmi | awk -F'=' '{print $2}' } ${goto 112}${color0}PIXEL: $color${execi 999 /opt/vc/bin/vcgencmd measure_clock pixel | awk -F'=' '{print $2}' } ${goto 200}${color0}DPI: $color${execi 999 /opt/vc/bin/vcgencmd measure_clock dpi | awk -F'=' '{print $2}' }
  84. #
  85. #${color1}VOLTAGE ${hr 1}$color
  86. #${color0}Core: $color${execi 999 /opt/vc/bin/vcgencmd measure_volts core | awk -F'volt=' '{print $2}' } ${color0}SDRAM C: $color${execi 999 /opt/vc/bin/vcgencmd measure_volts sdram_c | awk -F'volt=' '{print $2}' } ${color0}I: $color${execi 999 /opt/vc/bin/vcgencmd measure_volts sdram_i | awk -F'volt=' '{print $2}' } ${color0}P: $color${execi 999 /opt/vc/bin/vcgencmd measure_volts sdram_p | awk -F'volt=' '{print $2}' }
  87. ##${color4}${font Arial:size=7}${execi 20 /home/pi/scripts/picoStatus.py }$font$color
  88.  
  89. ${color1}PROCESSORS ${hr 1}$color
  90. #${color0}VC CPU/GPU Temp: $color${execi 999 awk '{ printf "%2.1f\n", ($1/1000) }' /sys/class/thermal/thermal_zone0/temp } °C / ${execi 999 /opt/vc/bin/vcgencmd measure_temp | awk -F'temp=' '{print $2}' | awk -F\' '{print $1}' } °C ${alignr}${color0}CPU Temp: $color${acpitemp}°C
  91. ${color0}VC CPU/GPU Temp: $color${execi 999 awk '{ printf "%2.1f\n", ($1/1000) }' /sys/class/thermal/thermal_zone0/temp } °C ${alignr}${color0}CPU Temp: $color${acpitemp}°C
  92. ${color0}Freq: $color$freq MHz ${color0}Avg. Load: $color$loadavg
  93. $color ${cpu cpu0}% ${color7}${cpubar cpu0 2,33} $color${cpu cpu1}% ${color7}${cpubar cpu1 2,33} $color${cpu cpu2}% ${color7}${cpubar cpu2 2,33} $color ${cpu cpu3}% ${color7}${cpubar cpu3 2,33}
  94. ##${cpugraph cpu0 12,0 0000ff 00ff00}$color
  95. ##${cpugraph cpu1 12,0 0000ff 00ff00}$color
  96. ##${cpugraph cpu2 12,0 0000ff 00ff00}$color
  97. ##${cpugraph cpu3 12,0 0000ff 00ff00}$color
  98.  
  99. ${color1}MEMORY & SWAP ${hr 1}$color
  100. ${color0}RAM Usage: ${color}$mem / $memmax $memperc% ${color6}${membar 2,42}$color
  101. ##${stippled_hr 1}
  102. ${color0}Swap Usage: ${color}$swap / $swapmax $swapperc% ${color6}${swapbar 2,42}$color
  103. #${color0}CPU/GPU Allocation: $color${execi 999 /opt/vc/bin/vcgencmd get_mem arm | awk -F'arm=' '{print $2}' } / $color${execi 999 /opt/vc/bin/vcgencmd get_mem gpu | awk -F'gpu=' '{print $2}' }
  104.  
  105. ${color1}FILE SYSTEM ${hr 1}$color
  106. ${color0}SD Card:$color ${fs_used /} / ${fs_size /} ${fs_type /} ${fs_used_perc /}% ${color8}${fs_bar 2,42 /}$color
  107. ##${stippled_hr 1}
  108. ${color0}Reads: $color$diskio_read/s ${color0}Writes: $color$diskio_write/s
  109. ##${color8}${diskiograph_read 12,100 33FF00 FF3333 scale -t}$color${alignr}${color8}${diskiograph_write 12,100 33FF00 FF3333 scale -t}$color
  110.  
  111. ${color1}NETWORKING ${hr 1}$color
  112. ${color0}Wired (${addr eth0}) ${color0}MAC: $color${execi 99999 cat /sys/class/net/eth0/address }
  113. ${color0}Down:$color ${downspeed eth0}/s (${totaldown eth0}) ${color0}Up:$color ${upspeed eth0}/s (${totalup eth0})
  114. ##${color0}${downspeedgraph eth0 12,120 000000 00ff00} ${alignr}${upspeedgraph eth0 12,120 000000 ff0000}$color
  115. ${stippled_hr 1}
  116. ${color0}Wireless (${addr wlan0}) ${color0}MAC: $color${execi 99999 cat /sys/class/net/wlan0/address }
  117. ${color0}Down:$color ${downspeed wlan0}/s (${totaldown wlan0}) ${color0}Up:$color ${upspeed wlan0}/s (${totalup wlan0})
  118. ##${color0}${downspeedgraph wlan0 12,120 000000 00ff00} ${alignr}${upspeedgraph wlan0 12,120 000000 ff0000}$color
  119.  
  120. ${color1}LOG FILES ${hr 1}$color
  121. ${color0}Linux Message Log$color
  122. ${color4}${font Arial:size=6}${execi 30 /bin/journalctl -n3 -o cat | fold -w50}$color$font
  123. #${color4}${font Arial:size=6}${execi 30 tail /var/log/messages -n3 | fold -w75}$color$font
  124.  
  125. ${color4}${font Arial:size=6}${top_io name 1} ${top_io io_perc 1} ${top_io cpu 1} ${top_io mem 1}$color$font
  126. ${color4}${font Arial:size=6}${top_io name 2} ${top_io io_perc 2} ${top_io cpu 2} ${top_io mem 2}$color$font
  127. ${color4}${font Arial:size=6}${top_io name 3} ${top_io io_perc 3} ${top_io cpu 3} ${top_io mem 3}$color$font
  128.  
  129. ]]
RAW Paste Data