SUP3R-US3R

My-Conky-Colors+Nvidia

Mar 11th, 2016
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Conky-By-Magno-Tutor#
  2. #### SETUP ####
  3. # For this conky configuration to work, you have to install:
  4. # - lm_sensors
  5. # - conky-colors (AUR)
  6. # - conky-nvidia (AUR)
  7. # - nvidia-smi
  8. ###############
  9.  
  10.  
  11. ######################
  12. # - Conky settings - #
  13. ######################
  14. update_interval 2
  15. total_run_times 0
  16. net_avg_samples 1
  17. cpu_avg_samples 1
  18.  
  19. imlib_cache_size 0
  20. double_buffer yes
  21. no_buffers yes
  22. background yes
  23.  
  24. #####################
  25. # - Text settings - #
  26. #####################
  27. use_xft yes
  28. xftfont Ubuntu:size=10
  29. override_utf8_locale yes
  30. text_buffer_size 2048
  31.  
  32. #############################
  33. # - Window specifications - #
  34. #############################
  35. own_window_class Conky
  36. own_window yes
  37. own_window_type normal
  38. own_window_transparent yes
  39. own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
  40.  
  41. alignment top_right
  42. gap_x 25
  43. gap_y 50
  44. minimum_size 200 0
  45. maximum_width 200
  46.  
  47. default_bar_size 60 8
  48.  
  49. #########################
  50. # - Graphics settings - #
  51. #########################
  52. draw_shades no
  53.  
  54. default_color cccccc
  55.  
  56. color0 white
  57. color1 E07A1F
  58. color2 white
  59.  
  60.  
  61. TEXT
  62. ${font Arial Black:size=26}${alignc}${time %H:%M}${font}
  63. ${alignc}${time %A, %B %d, %Y}
  64.  
  65. SYSTEM ${hr 2}
  66. ${goto 6}${voffset 6}${font conkycolorslogos:size=32}a${font}${goto 55}${voffset -25}$machine
  67. ${goto 55}Kernel: ${kernel}
  68. #
  69. ${voffset 8}${loadgraph F57900 FCAF3E}
  70. #
  71. ${goto 6}${voffset 4}${font conkycolors:size=16}o${font}${voffset -6}${goto 32}Uptime: ${alignr}${uptime}
  72. #
  73. ${goto 6}${voffset 6}${font conkycolors:size=16}1${font}${voffset -6}${goto 32}Battery: ${battery_short}\
  74. # Color battery bar based on percentage remaining.
  75. ${if_match ${battery_percent} < 15}${color red}${else}\
  76. ${if_match ${battery_percent} < 25}${color orange}${else}\
  77. ${if_match ${battery_percent} < 35}${color yellow}${else}\
  78. ${if_match ${battery_percent} < 90}${color white}${else}\
  79. ${color green}${endif}${endif}${endif}${endif}\
  80. ${alignr}${battery_bar 8,70}${color}
  81. #
  82. ${alignr}${battery_time}
  83.  
  84. CPU ${hr 2}
  85. ${goto 6}${voffset 4}${font conkycolors:size=16}d${font}${voffset -5}${goto 32}Frequency: ${alignr}${freq_g (1)} GHz
  86. ${goto 6}${voffset 8}${font conkycolors:size=16}8${font}${voffset -5}${goto 32}Temperature:${alignr}${color #FCAF3E}\
  87. ${execi 30 sensors | grep 'Core ' | awk '{total += $3; count++} END {print total/count}' | sed 's/+//' | sed 's/\.0//g'} °C$color
  88. ${goto 6}${voffset 9}${font conkycolors:size=16}l${font}${voffset -6}${goto 32}Usage: ${cpu}% ${alignr}${voffset -7}${cpugraph 20,85 F57900 FCAF3E -t}
  89. ${goto 32}${cpubar cpu1 8,34}  ${cpubar cpu2 8,34}  ${cpubar cpu3 8,34}  ${cpubar cpu4 8,34}
  90. ${goto 32}${cpubar cpu5 8,34}  ${cpubar cpu6 8,34}  ${cpubar cpu7 8,34}  ${cpubar cpu8 8,34}
  91.  
  92. Discrete GPU ${hr 2}
  93. ${if_match ${exec lsmod | grep 'nvidia' -c} > 0}\
  94. ${goto 6}${voffset 5}${font conkycolorslogos:size=16}n${font}${voffset -6}${goto 32}${exec nvidia-smi --query-gpu=name --format=csv,noheader}
  95. ${goto 6}${voffset 5}${font conkycolors:size=16}8${font}${voffset -6}${goto 32}\
  96. Temperature: ${alignr}${color #FCAF3E}${exec nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits} °C$color
  97. ${goto 6}${voffset 5}${font conkycolors:size=16}e${font}${voffset -6}${goto 32}\
  98. Memory:${alignr}${exec nvidia-smi --query-gpu=memory.used --format=csv,noheader} / ${exec nvidia-smi --query-gpu=memory.total --format=csv,noheader}
  99. ${else}\
  100. ${goto 6}${voffset 5}${font conkycolors:size=16}r${font}${voffset -6}${goto 32}OFF
  101. ${endif}\
  102.  
  103. General ${hr 2}
  104. ${goto 6}${voffset 4}${font conkycolors:size=16}g${font}${voffset -6}${goto 32}RAM: ${mem} ${alignr}${membar 8,60}
  105. #
  106. ${if_match "$swapperc" != "No swap"}\
  107. ${goto 6}${voffset 4}${font conkycolors:size=16}i${font}${voffset -4}${goto 32}Swap: ${swapperc}% ${alignr}${swapbar 8,60}
  108. ${endif}\
  109. #
  110. ${goto 6}${voffset 4}${font conkycolors:size=16}C${font}${voffset -6}${goto 32}Processes: ${alignr}$processes ($running_processes running)
  111. ${voffset 4}${goto 32}Threads: ${alignr}$threads ($running_threads running)
  112. ${goto 32}${voffset 4}Highest: ${alignr 22}CPU${alignr}RAM
  113. ${goto 32}${voffset -5.5}${hr 1}
  114. ${voffset -1}${goto 32}${top name 1} ${goto 124}${top cpu 1}${alignr}${top mem 1}
  115. ${voffset -1}${goto 32}${top name 2} ${goto 124}${top cpu 2}${alignr}${top mem 2}
  116. ${voffset -1}${goto 32}${top name 3} ${goto 124}${top cpu 3}${alignr}${top mem 3}
  117. ${voffset -1}${goto 32}${top name 4} ${goto 124}${top cpu 4}${alignr}${top mem 4}
  118. ${voffset -1}${goto 32}${top name 5} ${goto 124}${top cpu 5}${alignr}${top mem 5}
  119.  
  120. Disk ${hr 2}
  121. ${voffset 4}${font conkycolors:size=16}l${font}${voffset -6}${goto 32}I/O: ${diskio}${alignr}${diskiograph 8,60 F57900 FCAF3E}
  122. ${voffset 4}${font conkycolors:size=16}i${font} ${voffset -5} ${fs_used /} / ${fs_size /} ${alignr}${fs_bar 8,60 /}
  123.  
  124. Network ${hr 2}
  125. ${if_up enp0s20u5}\
  126. ${voffset 2} Ethernet ${hr 1}
  127. ${voffset 15}${font conkycolors:size=14}x${font}${goto 32}${voffset -15}Up: ${upspeed enp0s20u5}${font} ${alignr}${upspeedgraph enp0s20u5 20,60 F57900 FCAF3E}
  128. ${goto 32}${voffset -15}Total: ${totalup enp0s20u5}
  129. #
  130. ${voffset 15}${font conkycolors:size=14}w${font}${goto 32}${voffset -15}Down: ${downspeed enp0s20u5}${font} ${alignr}${downspeedgraph enp0s20u5 20,60 F57900 FCAF3E}
  131. ${goto 32}${voffset -15}Total: ${totaldown enp0s20u5}
  132. #
  133. ${voffset 8}${font conkycolors:size=13}A${font}${goto 32}${voffset -4}Local IP: ${alignr}${addr enp0s20u5}
  134. #
  135. ${else}\
  136. ${if_up wlo1}\
  137. ${voffset 2} Wireless ${hr 1}
  138. ${voffset 10}${font conkycolors:size=14}k${font}${goto 32}${voffset -12}SSID: ${wireless_essid wlo1}
  139. ${goto 32}Signal: ${wireless_link_qual_perc wlo1}% ${alignr}${wireless_link_bar 8,60 wlo1}
  140. #
  141. ${voffset 15}${font conkycolors:size=14}x${font}${goto 32}${voffset -15}Up: ${upspeed wlo1}${font} ${alignr}${upspeedgraph wlo1 20,60 F57900 FCAF3E}
  142. ${goto 32}${voffset -15}Total: ${totalup wlo1}
  143. #
  144. ${voffset 15}${font conkycolors:size=14}w${font}${goto 32}${voffset -15}Down: ${downspeed wlo1}${font} ${alignr}${downspeedgraph wlo1 20,60 F57900 FCAF3E}
  145. ${goto 32}${voffset -15}Total: ${totaldown wlo1}
  146. #
  147. ${voffset 8}${font conkycolors:size=13}A${font}${goto 32}${voffset -4}Local IP: ${alignr}${addr wlo1}
  148. #
  149. ${else}\
  150. ${voffset 4}${font conkycolors:size=14}qwe${font}${goto 32}Network Unavailable
  151. ${endif}\
  152. ${endif}\
  153.  
  154.  
  155. ${hr 2}
Advertisement
Add Comment
Please, Sign In to add comment