Автор: funk2256@funk2256-manjaro-pc, 4 Дней назад, написана на языке Plain Text.
Встраивание на сайт
  1. conky.config = {
  2.         alignment = 'top_right',
  3.         background = true,
  4.         color2 = '5D7B86',
  5.         cpu_avg_samples = 2,
  6.         default_color = 'F9FAF9',
  7.         double_buffer = true,
  8.         font = 'Bitstream Vera Sans:size=10',
  9.         draw_shades = false,
  10.         gap_x = 25,
  11.         gap_y = 13,
  12.         minimum_width = 200,
  13.         no_buffers = true,
  14.         own_window = true,
  15.         own_window_type = 'override',
  16.         own_window_transparent = true,
  17.         update_interval = 1.0,
  18.         use_xft = true,
  19. }
  20. conky.text = [[
  21. #leet chars: ┤┤└└┴┴┐┐││┘┘┌┌├├┬┬┼┼┴┴── ││ ▽▼△▲▵▴▾▿
  22. ${alignc}${offset 86}${font xftfont montserrat:size=10} ${font}
  23. ${alignr}${offset -6}
  24. ${alignr}${offset -6}──────────┐
  25. ${alignr}${offset -6}${font Roboto:pixelsize=12}${execi 130000 awk -F= '/ID=/{printf $2" "} /RELEASE=/{printf $2" "} /NAME=/{print $2}' /etc/lsb-release} ${machine}
  26. ${alignr}${offset -6}< ${kernel} > Kernel  
  27. ${alignr}${offset -6}< ${uptime} > ${font StyleBats:size=10}q${font}Uptime ─┤   │
  28. ${alignr}${offset -6}< ${color1}${color}>  ─┤   │
  29. ${alignr}${offset -6}< ${color1}${color} ${exec pacman -Q xorg-server} > XORG ─┤   │
  30. ${alignr}${offset -6}< ${color1}${color} ${exec cat /etc/pacman-mirrors.conf | grep -i ^branch} > REPO ─┤   │
  31. ${alignr}${offset -6}< ${color}${execi 108000 ls -lct --time-style=+"%d-%m-%Y" /etc | tail -1 | awk '{print $6}'} > Система установлена ─┤   │
  32. ${alignr}${offset -6}│
  33. ${alignr}${offset -6}system ─┤
  34. ${alignr}${offset -6}${execi 1000 cat /proc/cpuinfo|grep 'model name'|sed -e 's/model name.*: //'| uniq | cut -c 18-39} CPU ─┤   │
  35. ${alignr}${offset -6}│   │   │
  36. ${alignr}${offset -6} ${freq 0} MHz  used ─┤   │   │
  37. ${alignr}${offset -6}< ${cpu cpu 1}% >${cpubar cpu1 7,60} cpu1 ─┤   │   │   │
  38. ${alignr}${offset -6}< ${cpu cpu 2}% >${cpubar cpu2 7,60} cpu2 ─┤   │   │   │
  39. ${alignr}${offset -6}< ${cpu cpu 3}% >${cpubar cpu3 7,60} cpu3 ─┤   │   │   │
  40. ${alignr}${offset -6}< ${cpu cpu 4}% >${cpubar cpu4 7,60} cpu4 ─┤   │   │   │
  41. ${alignr}${offset -6}< ${cpu cpu 5}% >${cpubar cpu5 7,60} cpu5 ─┤   │   │   │
  42. ${alignr}${offset -6}< ${cpu cpu 6}% >${cpubar cpu6 7,60} cpu6 ─┤   │   │   │
  43. ${alignr}${offset -6}< ${cpu cpu 7}% >${cpubar cpu7 7,60} cpu7 ─┤   │   │   │
  44. ${alignr}${offset -6}< ${cpu cpu 8}% >${cpubar cpu8 7,60} cpu8 ─┘   │   │   │
  45. ${alignr}${offset -6}│   │   │
  46. ${alignr}${offset -6}< $loadavg > load ─┤   │   │
  47. ${alignr}${offset -6}* ${top name 1} ${top cpu 1}   ─┤   │   │
  48. ${alignr}${offset -6}* ${top name 2} ${top cpu 2}   ─┤   │   │
  49. ${alignr}${offset -6}* ${top name 3} ${top cpu 3}   ─┤   │   │
  50. ${alignr}${offset -6}* ${top name 4} ${top cpu 4}   ─┤   │   │
  51. ${alignr}${offset -6}* ${top name 5} ${top cpu 5}   ─┘   │   │
  52. ${alignr}${offset -6}│   │
  53. ${alignr}${offset -6}Process OS ─┤   │
  54. ${alignr}${offset -6}< $processes > ─ < $running_processes > ─┘   │   │
  55. ${alignr}${offset -6}│   │
  56. ${alignr}${offset -6}Temperatura ─┤   │
  57. ${alignr}${offset -6}< ${execi 5 sensors|grep 'Package id 0:'| awk -F'+' '{print $2}' | awk -F'.' '{print $1}'} °C > cpu ─┤   │   │
  58. ${alignr}${offset -6}< ${execi 5 nvidia-settings -t -q [gpu]/GPUCoreTemp} °C > gpu ─┤   │   │
  59. ${alignr}${offset -6}│   │
  60. ${alignr}${offset -6}Memori ─┤   │
  61. ${alignr}${offset -6}< $memperc% > used ─┤   │   │
  62. ${alignr}${offset -6}< $mem/$memmax > ─┘    │   │   │
  63. ${alignr}${offset -6}* ${top name 1} ${top mem 1}   ─┤   │   │
  64. ${alignr}${offset -6}* ${top name 2} ${top mem 2}   ─┤   │   │
  65. ${alignr}${offset -6}* ${top name 3} ${top mem 3}   ─┤   │   │
  66. ${alignr}${offset -6}* ${top name 4} ${top mem 4}   ─┤   │   │
  67. ${alignr}${offset -6}* ${top name 5} ${top mem 5}   ─┘   │   │
  68. ${alignr}${offset -6}│   │
  69. ${alignr}${offset -6}Disc Used ─┘   │
  70. ${alignr}${offset -6}< $diskio_read >  Read ─┤       │
  71. ${alignr}${offset -6}< $diskio_write > Write ─┤       │
  72. ${alignr}${offset -6}< ${fs_used /}/${fs_size /} > root ─┤       │
  73. ${alignr}${offset -6}< ${fs_bar 9,108 /} > ─┘     │       │
  74. ${alignr}${offset -6}< ${fs_used /home/funk2256}/${fs_size /home/funk2256} > HD ─┘       │
  75. ${alignr}${offset -6}< ${fs_bar 9,110 /home} > ─┘             │
  76. ${offset 240}< ${tcp_portmon 1 65535 count} >${alignr}${offset -6} Network ─┘
  77. ${alignr}${offset -32}${font StyleBats:size=10}i${font} $nodename > hostname ─┤
  78. ${alignr}${offset -32}< ${execi 500 wget -qO- http://www.icanhazip.com/} > Wan ─┤
  79. ${alignr}${offset -32}< ${addr enp5s0} > Lan ─┤
  80. ${alignr}${offset -32}<${downspeed enp5s0}> download ────┤
  81. ${alignr}${offset -32}< ${downspeedgraph enp5s0 12,120 136311 11B014} > ─┘    │
  82. ${alignr}${offset -32}<${upspeed enp5s0}> upload ──────┘
  83. ${alignr}${offset -55}< ${upspeedgraph enp5s0 12,120 BA0B0B FC0707} > ─┘
  84.  
  85.  
  86.  #${offset 300} ${voffset -16} ${font Roboto:pixelsize=11}${execi 60 vnstat -i wlp2s0 --oneline | cut -d\; -f11}
  87.  ${offset 17}${alignc}${color b30505}${font :BOLD:size=9}${offset -30}${execi 200 vnstat -i wlp2s0 | grep total:}
  88.  
  89. # ${image ~/.config/conky/img/trafic.png -s 16x16 -p 288,826}
  90.  #${image ~/.config/conky/img/manjaro-logo1.png -p 200,0 50x50}
  91. # #${image ~/.config/conky/img/intel3.png -p 228,0 35x17}
  92. # ${image ~/.config/conky/img/cpu2.png -p 299,164 20x19}
  93.  ${image ~/.config/conky/img/spacer.png -p 180,153 194x4}
  94.  ${image ~/.config/conky/img/spacer.png -p 120,959 194x4}
  95.  ${image ~/.config/conky/img/spacer.png -p 120,1032 194x4}
  96. # ${image ~/.config/conky/img/seta1.png -p 129,31 15x13}
  97.  
  98.  
  99. ]];