Guest User

.conkyrc

a guest
Jul 26th, 2013
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 8.19 KB | None | 0 0
  1. use_spacer none
  2. background no
  3. use_xft yes
  4. xftfont ubuntu:size=8
  5. xftalpha 1
  6. update_interval 1:0
  7.  
  8. own_window yes
  9. own_window_colour black
  10. own_window_type override
  11. own_window_argb_visual no
  12. own_window_transparent yes
  13. own_window_argb_value 250
  14. own_window_hints undecorated,below,stickly,skip_taskbar,skip_pager
  15. minimum_size 270 (1200)
  16.  
  17. double_buffer yes
  18. draw_shades no
  19. draw_outline no #yes
  20. draw_borders no
  21. stippled_borders 0
  22. border_width 1
  23.  
  24. draw_graph_borders no
  25. show_graph_scale no
  26. show_graph_range no
  27.  
  28. default_color gray60
  29.  default_shade_color gray60
  30.  default_outline_color black
  31. color0 red
  32. color7 42c112 # middle level
  33. color8 da0000 # damage level
  34.  
  35. alignment tr
  36. gap_x 10
  37. gap_y 10
  38.  
  39. no_buffers yes
  40. uppercase no
  41.  
  42. default_bar_size 120 6
  43. default_graph_size 120 30
  44.  
  45. TEXT
  46. ${font prosto:size=14}TIME:${alignr}${time %H:%M}${font}
  47. ${hr 2}
  48. ${font prosto:size=14}BATTERY:${font}\
  49. ${alignr}\
  50. \
  51. ${color}\
  52. ${if_match ${battery_percent BAT1}<50}${color7}${endif}\
  53. ${if_match ${battery_percent BAT1}<20}${color8}${endif}\
  54. \
  55. ${battery_bar 10, 120 BAT1}${color}
  56. ${battery BAT1}
  57. \
  58. \
  59. \
  60. ${if_match ${battery_percent BAT1}<2}${exec sudo poweroff}${else}\
  61. ${if_match ${battery_percent BAT1}<5}${execi 10 notify-send -t 5 "Осталось менее 5% заряда батареи!"}${else}\
  62. ${if_match ${battery_percent BAT1}<20}${execi 300 notify-send "Осталось менее 20% заряда батареи"}${endif}\
  63. ${endif}\
  64. ${endif}\
  65. \
  66. \
  67. \
  68. \
  69.  
  70. ${font prosto:size=14}CPU_1:${font}\
  71. ${alignr}\
  72. \
  73. ${color}\
  74. ${if_match ${cpu cpu1}>30}${color7}${endif}\
  75. ${if_match ${cpu cpu1}>75}${color8}${endif}\
  76. \
  77. ${cpubar cpu1 10, 120}${color}
  78. ${cpu cpu1}% (\
  79. \
  80. ${color}\
  81. ${if_match ${hwmon 0 temp 1}>65}${color7}${endif}\
  82. ${if_match ${hwmon 0 temp 1}>75}${color8}${endif}\
  83. \
  84. ${hwmon 0 temp 1} °C\
  85. ${color})
  86.  
  87. ${font prosto:size=14}CPU_2:${font}\
  88. ${alignr}\
  89. \
  90. ${color}\
  91. ${if_match ${cpu cpu2}>30}${color7}${endif}\
  92. ${if_match ${cpu cpu2}>75}${color8}${endif}\
  93. \
  94. ${cpubar cpu2 10, 120}${color}
  95. ${cpu cpu2}% (\
  96. \
  97. ${color}\
  98. ${if_match ${hwmon 1 temp 1}>65}${color7}${endif}\
  99. ${if_match ${hwmon 1 temp 1}>75}${color8}${endif}\
  100. \
  101. ${hwmon 1 temp 1} °C\
  102. ${color})
  103. ${alignr}${cpugraph cpu0 30, 200 252525 ffffff}\
  104.  
  105. ${font prosto:size=14}MEMORY:${font}\
  106. ${alignr}\
  107. \
  108. ${color}\
  109. ${if_match ${memperc}>50}${color7}${endif}\
  110. ${if_match ${memperc}>75}${color8}${endif}\
  111. \
  112. ${membar 10, 120 BAT1}${color}
  113. ${mem} / ${memmax}
  114.  
  115. ${font prosto:size=14}SWAP:${font}\
  116. ${alignr}${membar 10, 120 BAT1}
  117. ${swap}/ ${swapmax}
  118.  
  119. ${font prosto:size=14}HDD:${font}\
  120. ${alignr}${fs_bar 10, 120 /home/ditsi}
  121. ${voffset 0}${fs_used /home} / ${fs_size /home}
  122. ${alignr}${diskiograph /dev/sda 30, 200 252525 ffffff}\
  123.  
  124. ${font prosto:size=14}SSD:${font}\
  125. ${alignr}${fs_bar 10, 120 /}
  126. ${voffset 0}${fs_used /} / ${fs_size /}
  127. ${alignr}${diskiograph /dev/sdb 30, 200 252525 ffffff}\
  128.  
  129. IP (eth0):
  130. ${addr eth0}
  131. ${voffset -35}${alignr}${downspeedgraph eth0 30, 120}\
  132. #${if_up ppp0}\
  133. #
  134. #
  135. #IP (${color0}ppp0${color}):${goto 125}U: ${totalup ppp0}
  136. #${color0}${addr ppp0}${color} ${goto 125}D: ${totaldown ppp0}
  137. #${endif}\
  138. #\
  139. #${if_up wlan0}\
  140. #
  141. #
  142. #IP (${color0}wlan0${color}):${goto 125}U: ${totalup wlan0}
  143. #${color0}${addr wlan0}${color} ${goto 125}D: ${totaldown wlan0}
  144. #${endif}\
  145. #\
  146. #
  147. #PROCESSES:${alignr +20}${color0}CPU, %${color}${alignr}MEM, Mb
  148. #
  149. #          ${top name 1}${goto 167}${top cpu 1}$alignr${top mem_res 1}
  150. #          ${top name 2}${goto 167}${top cpu 2}$alignr${top mem_res 2}
  151. #          ${top name 3}${goto 167}${top cpu 3}$alignr${top mem_res 3}
  152. #
  153. #${alignr +20}CPU, %${alignr}${color0}MEM, Mb${color}
  154. #
  155. #          ${top_mem name 1}${goto 167}${top_mem cpu 1}$alignr${top_mem mem_res 1}
  156. #          ${top_mem name 2}${goto 167}${top_mem cpu 2}$alignr${top_mem mem_res 2}
  157. #          ${top_mem name 3}${goto 167}${top_mem cpu 3}$alignr${top_mem mem_res 3}
  158. #
  159.  
  160. ${if_existing /dev/sdc}\
  161.  
  162. ${hr 1}
  163.  
  164. ${color0}DEVICES:${color}
  165.  
  166. ${endif}\
  167. \
  168. ${if_existing /dev/sdc}\
  169. ${if_mounted /media/sdc}${color0}${endif}\
  170. ${goto 30}/dev/sdc (7)\
  171. ${if_mounted /media/sdc}${color}${endif}\
  172. ${if_mounted /media/sdc} ${alignr}${fs_bar 8 /media/sdc}${endif}
  173. ${endif}\
  174. \
  175. ${if_existing /dev/sdc1}\
  176. ${if_mounted /media/sdc1}${color0}${endif}\
  177. ${goto 30}/dev/sdc1 (1)\
  178. ${if_mounted /media/sdc1}${color}${endif}\
  179. ${if_mounted /media/sdc1} ${alignr}${fs_bar 8 /media/sdc1}${endif}
  180. ${endif}\
  181. \
  182. ${if_existing /dev/sdc2}\
  183. ${if_mounted /media/sdc2}${color0}${endif}\
  184. ${goto 30}/dev/sdc2 (4)\
  185. ${if_mounted /media/sdc2}${color}${endif}\
  186. ${if_mounted /media/sdc2} ${alignr}${fs_bar 8 /media/sdc2}${endif}
  187. ${endif}\
  188. \
  189. ${if_existing /dev/sdd}\
  190. ${if_mounted /media/sdd}${color0}${endif}\
  191. ${goto 30}/dev/sdd (8)\
  192. ${if_mounted /media/sdd}${color}${endif}\
  193. ${if_mounted /media/sdd} ${alignr}${fs_bar 8 /media/sdd}${endif}
  194. ${endif}\
  195. \
  196. ${if_existing /dev/sdd1}\
  197. ${if_mounted /media/sdd1}${color0}${endif}\
  198. ${goto 30}/dev/sdd1 (2)\
  199. ${if_mounted /media/sdd1}${color}${endif}\
  200. ${if_mounted /media/sdd1} ${alignr}${fs_bar 8 /media/sdd1}${endif}
  201. ${endif}\
  202. \
  203. ${if_existing /dev/sdd2}\
  204. ${if_mounted /media/sdd2}${color0}${endif}\
  205. ${goto 30}/dev/sdd2 (5)\
  206. ${if_mounted /media/sdd2}${color}${endif}\
  207. ${if_mounted /media/sdd2} ${alignr}${fs_bar 8 /media/sdd2}${endif}
  208. ${endif}\
  209. \
  210. ${if_existing /dev/sde}\
  211. ${if_mounted /media/sde}${color0}${endif}\
  212. ${goto 30}/dev/sde (9)\
  213. ${if_mounted /media/sde}${color}${endif}\
  214. ${if_mounted /media/sde} ${alignr}${fs_bar 8 /media/sde}${endif}
  215. ${endif}\
  216. \
  217. ${if_existing /dev/sde1}\
  218. ${if_mounted /media/sde1}${color0}${endif}\
  219. ${goto 30}/dev/sde1 (3)\
  220. ${if_mounted /media/sde1}${color}${endif}\
  221. ${if_mounted /media/sde1} ${alignr}${fs_bar 8 /media/sde1}${endif}
  222. ${endif}\
  223. \
  224. ${if_existing /dev/sde2}\
  225. ${if_mounted /media/sde2}${color0}${endif}\
  226. ${goto 30}/dev/sde2 (6)\
  227. ${if_mounted /media/sde2}${color}${endif}\
  228. ${if_mounted /media/sde2} ${alignr}${fs_bar 8 /media/sde2}${endif}
  229. ${endif}
  230.  
  231. #
  232. #\
  233. #${color}\
  234. #${if_match ${cpu cpu1}>30}${color7}${endif}\
  235. #${if_match ${cpu cpu1}>50}${color8}${endif}\
  236. #\
  237.  
  238. ${font prosto:size=14}Moscow weather:${font}
  239.  
  240. ${execi 600 bash $HOME/.accuweather_conky/accuw_script}\
  241. \
  242. ${font conkyweather:size=30}${execi 600  sed -n '2p' ~/.accuweather_conky/curr_cond}${font}${goto 75}${voffset -40}NOW: ${execpi 600 sed -n '4p' $HOME/.accuweather_conky/curr_cond}°C
  243. ${goto 75}${execpi 600 sed -n '3p' $HOME/.accuweather_conky/curr_cond|fold -w30}
  244.  
  245.  
  246. ${font conkyweather:size=30}${execi 600  sed -n '2p' ~/.accuweather_conky/tod_ton}${font}${goto 75}${voffset -40}${execpi 600 sed -n '1p' $HOME/.accuweather_conky/tod_ton}: >${execpi 600 sed -n '5p' $HOME/.accuweather_conky/tod_ton}°C
  247. ${goto 75}${execpi 600 sed -n '3p' $HOME/.accuweather_conky/tod_ton|fold -w30}
  248.  
  249.  
  250. ${font conkyweather:size=30}${execi 600  sed -n '7p' ~/.accuweather_conky/tod_ton}${font}${goto 75}${voffset -40}${execpi 600 sed -n '6p' $HOME/.accuweather_conky/tod_ton}: ${execpi 600 sed -n '9p' $HOME/.accuweather_conky/tod_ton}°C/${execpi 600 sed -n '10p' $HOME/.accuweather_conky/tod_ton}°C
  251. ${goto 75}${execpi 600 sed -n '8p' $HOME/.accuweather_conky/tod_ton|fold -w30}
  252.  
  253.  
  254. ${font conkyweather:size=30}${execi 600  sed -n '12p' ~/.accuweather_conky/tod_ton}${font}${goto 75}${voffset -40}${execpi 600 sed -n '11p' $HOME/.accuweather_conky/tod_ton}: ${execpi 600 sed -n '14p' $HOME/.accuweather_conky/tod_ton}°C/${execpi 600 sed -n '15p' $HOME/.accuweather_conky/tod_ton}°C
  255. ${goto 75}${execpi 600 sed -n '13p' $HOME/.accuweather_conky/tod_ton|fold -w30}
  256.  
  257.  
  258. ${font conkyweather:size=30}${execi 600  sed -n '17p' ~/.accuweather_conky/tod_ton}${font}${goto 75}${voffset -40}${execpi 600 sed -n '16p' $HOME/.accuweather_conky/tod_ton}: ${execpi 600 sed -n '19p' $HOME/.accuweather_conky/tod_ton}°C/${execpi 600 sed -n '20p' $HOME/.accuweather_conky/tod_ton}°C
  259. ${goto 75}${execpi 600 sed -n '18p' $HOME/.accuweather_conky/tod_ton|fold -w30}
  260.  
  261.  
  262. ${font conkyweather:size=30}${execi 600  sed -n '22p' ~/.accuweather_conky/tod_ton}${font}${goto 75}${voffset -40}${execpi 600 sed -n '21p' $HOME/.accuweather_conky/tod_ton}: ${execpi 600 sed -n '24p' $HOME/.accuweather_conky/tod_ton}°C/${execpi 600 sed -n '25p' $HOME/.accuweather_conky/tod_ton}°C
  263. ${goto 75}${execpi 600 sed -n '23p' $HOME/.accuweather_conky/tod_ton|fold -w30}
Advertisement
Add Comment
Please, Sign In to add comment