Guest User

Untitled

a guest
Feb 27th, 2017
1,050
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.  
  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 yes # 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_size 0 4 # Specify a default width and height for bars.
  20. default_gauge_size 25 25 # Specify a default width and height for gauges.
  21. default_graph_size 0 20 # Specify a default width and height for graphs.
  22. default_outline_color green # Default border and text outline color
  23. default_shade_color yellow # Default border and text shading color
  24.  
  25. # --- predefined colors - http://www.kgym.jp/freesoft/xrgb.html --- #
  26. color0 FFFFFF # white
  27. color1 FFA500 # orange
  28. color2 B22222 # firebrick
  29. color3 696969 # dim gray
  30. color4 D3D3D3 # light gray
  31. color5 2F4F4F # dark slate gray
  32. color6 FFEC8B # light golden rod
  33. color7 54FF9F # sea green
  34. color8 FF8C69 # salmon
  35. color9 FFE7BA # wheat
  36.  
  37. # --- window layout & options --- #
  38. own_window yes # Conky creates its own window instead of using desktop
  39. own_window_class Conky
  40. own_window_type normal # If own_window is yes, use type normal, desktop, or override
  41. own_window_transparent no # Use pseudo transparency with own_window?
  42. own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
  43. own_window_argb_visual true
  44. own_window_argb_value 102
  45. own_window_colour black # If own_window_transparent is no, set the background colour
  46. double_buffer yes # Use double buffering (reduces flicker)
  47. use_spacer right # Adds spaces to stop object from moving
  48. maximum_width 242 # Maximum width of window in pixels
  49.  
  50. # --- window placment --- #
  51. alignment top_right
  52.  
  53. # --- borders, margins, and outlines --- #
  54. draw_graph_borders yes # Do you want to draw borders around graphs
  55. border_inner_margin 5 # Window's inner border margin (in pixels)
  56. border_outer_margin 5 # Window's outer border margin (in pixels)
  57. gap_x 10 # Gap between borders of screen and text (on x-axis)
  58. gap_y 35 # Gap between borders of screen and text (on y-axis)
  59. border_width 5 # Window's border width (in pixels)
  60.  
  61. # --- Text --- #
  62. draw_outline no # Do you want ot draw outlines
  63. draw_shades no # Do you want to draw shades
  64. draw_borders no # Do you want to draw borders around text
  65. uppercase no # set to yes if you want all text to be in uppercase
  66. use_xft yes # use the X FreeType interface library (anti-aliased font)
  67. xftfont Monospace:size=7:weight=bold # Xft font to be used
  68.  
  69. # -------------------- Conky's Displayed System Monitoring Parameters -------------------- #
  70. TEXT
  71. ## General system information
  72. ${color1}SYSTEM INFORMATION ${hr 1}$color
  73. ${color0}System: $color$nodename $machine ${execi 99999 grep Serial /proc/cpuinfo | awk '{ print $3 }'}
  74. ${color0}Kernel: $color$kernel ${color0}Uptime: $color$uptime
  75.  
  76. ${color1}CLOCK SPEED ${hr 1}$color
  77. ${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}' }
  78. ${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}' }
  79. ${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}' }
  80. ${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}' }
  81.  
  82. ${color1}VOLTAGE ${hr 1}$color
  83. ${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}' }
  84. #${color4}${font Arial:size=7}${execi 20 /home/ktb83/scripts/picoStatus.py }$font$color
  85.  
  86. ${color1}PROCESSORS ${hr 1}$color
  87. ${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
  88. #${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
  89. ${color0}Freq: $color$freq MHz ${color0}Avg. Load: $color$loadavg
  90. $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}
  91. ##${cpugraph cpu0 12,0 0000ff 00ff00}$color
  92. ##${cpugraph cpu1 12,0 0000ff 00ff00}$color
  93. ##${cpugraph cpu2 12,0 0000ff 00ff00}$color
  94. ##${cpugraph cpu3 12,0 0000ff 00ff00}$color
  95.  
  96. ${color1}MEMORY & SWAP ${hr 1}$color
  97. ${color0}RAM Usage: ${color}$mem / $memmax $memperc% ${color6}${membar 2,42}$color
  98. ##${stippled_hr 1}
  99. ${color0}Swap Usage: ${color}$swap / $swapmax $swapperc% ${color6}${swapbar 2,42}$color
  100. ${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}' }
  101.  
  102. ${color1}FILE SYSTEM ${hr 1}$color
  103. ${color0}SD Card:$color ${fs_used /} / ${fs_size /} ${fs_type /} ${fs_used_perc /}% ${color8}${fs_bar 2,42 /}$color
  104. ##${stippled_hr 1}
  105. ${color0}Reads: $color$diskio_read/s ${color0}Writes: $color$diskio_write/s
  106. ##${color8}${diskiograph_read 12,100 33FF00 FF3333 scale -t}$color${alignr}${color8}${diskiograph_write 12,100 33FF00 FF3333 scale -t}$color
  107.  
  108. ${color1}NETWORKING ${hr 1}$color
  109. ${color0}Wired (${addr eth0}) ${color0}MAC: $color${execi 99999 cat /sys/class/net/eth0/address }
  110. ${color0}Down:$color ${downspeed eth0}/s (${totaldown eth0}) ${color0}Up:$color ${upspeed eth0}/s (${totalup eth0})
  111. ##${color0}${downspeedgraph eth0 12,120 000000 00ff00} ${alignr}${upspeedgraph eth0 12,120 000000 ff0000}$color
  112. ${stippled_hr 1}
  113. ${color0}Wireless (${addr wlan0}) ${color0}MAC: $color${execi 99999 cat /sys/class/net/wlan0/address }
  114. ${color0}Down:$color ${downspeed wlan0}/s (${totaldown wlan0}) ${color0}Up:$color ${upspeed wlan0}/s (${totalup wlan0})
  115. ##${color0}${downspeedgraph wlan0 12,120 000000 00ff00} ${alignr}${upspeedgraph wlan0 12,120 000000 ff0000}$color
  116.  
  117. ${color1}LOG FILES ${hr 1}$color
  118. ${color0}Linux Message Log$color
  119. #${color4}${font Arial:size=6}${execi 30 /bin/journalctl -n3 -o cat | fold -w50}$color$font
  120. ${color4}${font Arial:size=6}${execi 30 tail /var/log/messages -n3 | fold -w75}$color$font
  121.  
  122. ${color4}${font Arial:size=6}${top_io name 1} ${top_io io_perc 1} ${top_io cpu 1} ${top_io mem 1}$color$font
  123. ${color4}${font Arial:size=6}${top_io name 2} ${top_io io_perc 2} ${top_io cpu 2} ${top_io mem 2}$color$font
  124. ${color4}${font Arial:size=6}${top_io name 3} ${top_io io_perc 3} ${top_io cpu 3} ${top_io mem 3}$color$font
RAW Paste Data