Advertisement
delvin-fil

Untitled

Mar 21st, 2018
736
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 7.38 KB | None | 0 0
  1. conky.config = {
  2.     format_human_readable = true,
  3.     background = false,  
  4.     disable_auto_reload = false,
  5.     temperature_unit = celsius,
  6.     use_xft = true,
  7.     font = 'Droid Sans:size=10',
  8.     text_buffer_size=8192,
  9.     xftalpha = 0,
  10.     update_interval = 1,
  11.     total_run_times = 0,
  12.     max_text_width = 200,
  13.     -- min_text_width = 220,
  14.     -- minimum_size = 200, 0,
  15.     maximum_width = 200,
  16.     own_window = false,
  17.     own_window_type = 'desktop',    
  18.     own_window_transparent = true,
  19.     own_window_hints = undecorate,sticky,below,skip_taskbar,skip_pager,
  20.     own_window_argb_visual = true,
  21.     own_window_argb_value = 120,
  22.     double_buffer = true,
  23.     draw_shades = false,
  24.     draw_outline = false,
  25.     draw_borders = false,
  26.     draw_graph_borders = false,
  27.     stippled_borders = 0,
  28.     border_width = 1,
  29.     default_color = white,
  30.     own_window_colour = white,
  31.     default_shade_color = grey,
  32.     alignment = 'top_right',
  33.     gap_x = 8,
  34.     gap_y = -30,
  35.     uppercase = false,
  36.     cpu_avg_samples = 2,
  37.     net_avg_samples = 2,
  38.     override_utf8_locale = trye,
  39.     use_spacer = 'none',
  40.     imlib_cache_size=8192,
  41.     show_graph_scale = false,
  42.     show_graph_range = false
  43. }
  44.  
  45. conky.text = [[
  46. ${color Yellow}${voffset 22}${font zekton:size=36:bold}${time %H}${voffset -18}${font Droid Sans:size=24}:${time %M}${font Droid Sans:size=15}${voffset -8}${color 00FFFF}:${time %S}${font Droid Sans:size=10}${voffset -8}
  47. ${color FFD700}${alignr}${font Droid Sans:size=10}${voffset -11}Мск: ${tztime Europe/Moscow %H:%M}
  48. ${offset 130}${font Droid Sans:size=10}Н-т: ${tztime Asia/Yekaterinburg %H:%M}
  49. ${offset 130}${font Droid Sans:size=10}В-л: ${tztime Asia/Vladivostok %H:%M}
  50. ${color FFFFFF}${voffset -2}${hr 2}
  51. ${voffset -18}${alignc}${execp  python3 /home/fil/codding/cal.py}
  52. #${voffset -1}${alignc}${execp /home/fil/codding/proby/wind.py}
  53. #${color FF8C00}${voffset -15}${alignc}${font Monospace:size=10}${execp ~/progs/gotext}
  54. ${color FFFFFF}${voffset -18}${hr 2}
  55. ${voffset -5}${color FFFF00}${font Monospace:size=12:bold}Инет: ${color red}${execp python3 /home/fil/progs/pens.py 7}
  56. #${color FFFF00}${color FF4444}${alignr}${execi 3000 /home/fil/codding/meg.py}
  57. #----------------Processor & temp
  58. ${color ffffff}${font ConkyColors:size=16}8${voffset -5}${hr 2}
  59. ${voffset -3}${font Droid Sans:size=12:bold}${color 00ffff}${execi 5 sensors |grep 'Core 0'|awk '{print $3}'}${alignc -30}${color FFFF00}${execi 5 sensors |grep temp1|awk '{print $2}'}${alignr}${color ff0000}${execi 5 sensors |grep 'Core 2'|awk '{print $3}'}
  60. #${voffset -3}${font Droid Sans:size=12:bold}${color 00ffff} +${hwmon 0 temp 2}°C${alignc -30}${color FFFF00}+${execp nvidia-settings -query GPUCoreTemp |grep "Attribute 'GPUCoreTemp'"|sed q|awk '{print $4}'|tr -d "."}°C${alignr}${color ff0000}+${hwmon 0 temp 4}°C
  61. ${voffset -1}${color AAAAAA}${font Magistral:size=15:bold}Uptime:${alignr}${uptime}${font}
  62. #----------------Memory
  63. ${color ffffff}${font}${font Poky:size=16}a${font}${voffset -7}${hr 2}
  64. #${color FF8C00}Ram used: ${alignr}${offset -10}${memperc}%
  65. ${voffset 2}${color FF8C00}RAM${offset 10}${mem}/${memmax}${alignr}${memperc}%${alignr}${voffset 1}${membar 8,30}${color}
  66. ${voffset -3}${color 60ff60}SWP${offset 10}${swap}/${swapmax}${alignr}${swapperc}%${alignr}${voffset 1}${swapbar 8,30}
  67. #----------------Internet
  68. ${voffset -2}${color ffffff}${font ConkyColors:size=16}l${voffset -4}${hr 2}${font}
  69. ${font Droid Sans:size=12}${color ADFF2F}Down: ${downspeed eth0}${alignr}${color FFA07A}Up: ${upspeed eth0}${color}
  70. ${voffset -3}${color ffffff}Sum: ${execi 300 python3.6 /home/fil/codding/parsjson.py}${alignr}Sum: ${execi 5 vnstat -i eth0 | grep "today" | awk '{print $5 $6}'}
  71. #----------------POGODA
  72. ${voffset -5}${font Heydings Icons:size=18}U${voffset -3}${hr 2}
  73. ${voffset -10}${execpi 300 /home/fil/codding/pogoda/mon2ubi.py}
  74. #${font Droid Sans:size=12}${color ffff00}Tele2 потрачено : ${color}${execpi 3600 sshpass -p 'delvin' ssh mumsic@192.168.0.2 /home/mumsic/codding/tele2.py}
  75. #----------------Sound volume
  76. ${voffset -3}${color ffffff}${font Poky:size=16}l${voffset -7}${hr 2}
  77. ${voffset -10}${if_running audacious}${font Droid Sans:size=11}${color B22222}${exec audtool current-song-length}${color
  78. 00ffff}-${color
  79. ffff00}${exec audtool current-song-output-length}${alignr}${color B22222}${endif}${alignr}${if_running audacious}${exec audtool playback-status}${endif}
  80. ${voffset -18}${alignc}${font Open 24 Display St:size=12}    ${font Open 24 Display St:size=36}${color red}${offset 20}${execi 2 sudo  amixer -c /dev/snd/by-path/pci-0000:00:1b.0 get Master | grep "Mono: Playback" | awk '{print $4}'| tr -d '[]'}${voffset -2}${font}
  81. ${voffset -5}${font Droid Sans:size=11}${if_running emerge}${color 00ffff}Build: ${color A0FFA0}${alignr}${execp qlop -c |tail -n 1 |awk '{print $2,$3,$4,$5}'}${endif}
  82. ${voffset -5}${font Droid Sans:size=11}${if_running emerge}${color FFA07A}${alignr}${execp sudo tail /var/log/emerge.log|grep emerge | awk -F' ' '{print $4, $5, $6, $7}' |tail -1}${endif}
  83. #----------------Disks
  84. ${voffset -8}${color ffffff}${font Poky:size=16}y${font}${voffset -7}${hr 2}
  85. ${voffset 0}${font Droid Sans:size=10}${color 00ffff}/root${color FFD700}${offset 11}${fs_free  /}/${fs_size /}${color}${alignr}${color 00ffff}${fs_bar 8,50 /}
  86. ${voffset -3}${color 00ffff}/home${color FFD700}${offset 5}${fs_free /home/}/${fs_size /home/}${color}${alignr}${color 00ffff}${fs_bar 8,50 /home/}
  87. ${voffset -3}${color 00ffff}mumic${color FFD700}${offset 5}${fs_free /home/fil/music}/${fs_size /home/fil/music}${color}${alignr}${color 00ffff}${fs_bar 8,50 /home/fil/music}
  88. ${voffset -3}${color 00ffff}gentoo${color FFD700}${offset 5}${fs_free /mnt/gentoo}/${fs_size /mnt/gentoo}${color}${alignr}${color 00ffff}${fs_bar 8,50 /mnt/gentoo}
  89. #${if_mounted /mnt/ssh}${voffset -3}${color 00ffff}SSH${color FFD700}${offset 18}${fs_free /mnt/ssh}/${fs_size /mnt/ssh}${color}${alignr}${color 00ffff}${fs_bar 8,50 /mnt/ssh}${endif}
  90. #${voffset -3}${color 00ffff}Music${color FFD700}${offset 20}${fs_free /home/fil/music}/${fs_size /home/fil/music}${color}${alignr}${color 00ffff}${fs_bar 8,50 /home/fil/music}
  91. #-------------------------------PROCS
  92. #${color ffffff}${font Poky:size=14}x${voffset -3}${hr 2}${font}
  93. ${voffset -3}${color ffff00}${top_mem name 1}${goto 1810}${color FF0000}${top_mem mem 1} Mb${alignr}${top cpu 1}%
  94. ${voffset -3}${color ffff00}${top_mem name 2}${goto 1810}${color FF0000}${top_mem mem 2} Mb${alignr}${top cpu 2}%
  95. #${voffset -3}${color ffff00}${top_mem name 3}${goto 1810}${color FF0000}${top_mem mem 3} Mb${alignr}${top cpu 3}%
  96. #${color ffffff}${voffset -5}${hr 1}${font}
  97. #${font ConkyColors:size=14}E
  98. #${color FFA07A}${font Droid Sans:size=10}${tcp_portmon 1 65535 rhost  0}${color 00ff00}${alignr 1}${tcp_portmon 1 65535 rport  0}
  99. #${voffset -4}${color FFA07A}${tcp_portmon 1 65535 rhost  1}${color 00ff00}${alignr 1}${tcp_portmon 1 65535 rport  1}
  100. #${voffset -4}${color FFA07A}${tcp_portmon 1 65535 rhost  2}${color 00ff00}${alignr 1}${tcp_portmon 1 65535 rport  2}
  101. #${color ffffff}${voffset -8}${font ConkyColors:size=14}n${hr 2}${font}
  102. #${execp /home/fil/progs/num-ubu.py}
  103. #{voffset -13}${font Droid Sans:size=12}${execpi 1800 /home/fil/codding/pogoda/naw-pag.py}
  104. #----------------IP INFO
  105. ${color ffffff}${voffset -5}${font Poky:size=16}w${voffset -8}${font}${hr 2}
  106. ${voffset 2}${font Droid Sans:size=12}${color ffff00}${if_running tor}Tor: ${color}${execpi 600 /home/fil/progs/tor.py}${endif}${font}
  107. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement