Paste #228359

   
pasted on 20.10.2021 13:58
  • Edit to this paste
  • Print
  • Raw
  • The following pastes replied to this paste:  # 240829
  • Show paste tree
  • Compare with paste
    #  
  • Toggle line numbers
  • Syntax highlighting  
Text paste
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
conky.config = {
--jd-note

--Default Fonts
	use_xft = true,
	font = 'DejaVu Sans:size=8',
	override_utf8_locale = true,

-- Performance Settings
	update_interval = 1,
	total_run_times = 0,
	double_buffer = true,
--	no_buffers = true,
	net_avg_samples = 2,
	text_buffer_size = 2048,
--	if_up_strichness = 'addres',

-- Window Settings
	own_window = true,
	own_window_transparent = true,
	own_window_class = 'Conky',
--	own_window_type = 'normal',
--	own_window_type = 'desktop',
	own_window_type = 'dock',
--	own_window_type = 'panel',
--	own_window_type = 'override',
--	own_window_type = 'conky',
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
--        own_window_hints = 'undecorate,above,sticky,skip_taskbar,skip_pager',
--	own_window_argb_value = 190,

-- xcompmgr
	own_window_argb_visual = true,
--	own_window_argb_visual = false,

        background = false,
-- Window border
	border_width = 0,
	draw_borders = false,
	draw_shades = false,
	draw_outline = false,

-- Default Color
	default_color = '#E0DFDE',
	color1 = '#0097E3',  --blue
	color2 = '#E0DFDE',  --grey
	color3 = '#FF5A45',  --red
	color4 = '#E0DFDE',  --grey
-- Color Title.
	color0 = '#0097E3',

-- Size and position
--minimum_size 210 200
	minimum_width = 1,
	gap_x = 2,
	gap_y = 5,
	alignment = 'top_right',
--	alignment = 'top_left',
--	alignment = 'middle_right',
--	alignment = 'bottom_right',
	maximum_width = 126,

};

conky.text = [[


${font DejaVu Sans Mono:size=8}${execpi 6000 DJS=`date +%_d`; cal | sed s/"\(^\|[^0-9]\)$DJS"'\b'/'\1${color 0097E3}'"$DJS"'$color'/}
#${color2}${font DejaVu Sans Mono:size=8}${execpi 6000 cal |sed '/\(20[0-9][0-9]\)/!s/^.*$/${font DejaVu Sans Mono:size=8}${color4} &/;/\(20[0-9][0-9]\)/!s/.\{8\}$/${color3}&/;s/${color3} '"`date +%_d`"' /${color1} '"`date +%_d`"'${color3} /;/color1/!s/ '"`date +%_d`"'$c/${color1} '"`date +%_d`"'$c/;/color1/!s/ '"`date +%_d`"' /${color1} '"`date +%_d`"'${color2} /'}${color}
${color2}${font DejaVu Sans Mono:size=8}${execpi 6000 cal |sed '/\(20[0-9][0-9]\)/!s/^.*$/${font DejaVu Sans Mono:size=8}${color4} &/;/\(20[0-9][0-9]\)/!s/.\{8\}$/${color3}&/;/color1/!s/ '"`date +%_d`"'$c/${color1} '"`date +%_d`"'$c/;/color1/!s/ '"`date +%_d`"' /${color1} '"`date +%_d`"'${color2} /'}${color}
${GOTO 3}${font DejaVu Sans:bold:size=9}Система${font}${alignr}${machine}
${GOTO 3}${kernel}
${GOTO 3}CPU0:${GOTO 45}${cpubar cpu0 11,80}${GOTO 80}${font DejaVu Sans:bold:size=8}${color 0097E3}${cpu cpu0} %${color}${font}
${if_existing /sys/bus/cpu/devices/cpu1/online 1}${GOTO 3}CPU1:${GOTO 45}${cpubar cpu1 11,80}${GOTO 80}${font DejaVu Sans:bold:size=8}${color 0097E3}${cpu cpu1} %${color}${font}
${endif}${if_existing /sys/bus/cpu/devices/cpu2/online 1}${GOTO 3}CPU2:${GOTO 45}${cpubar cpu2 11,80}${GOTO 80}${font DejaVu Sans:bold:size=8}${color 0097E3}${cpu cpu2} %${color}${font}
${endif}${if_existing /sys/bus/cpu/devices/cpu3/online 1}${GOTO 3}CPU3:${GOTO 45}${cpubar cpu3 11,80}${GOTO 80}${font DejaVu Sans:bold:size=8}${color 0097E3}${cpu cpu3} %${color}${font}
${endif}${if_existing /sys/bus/cpu/devices/cpu4/online 1}${GOTO 3}CPU4:${GOTO 45}${cpubar cpu4 11,80}${GOTO 80}${font DejaVu Sans:bold:size=8}${color 0097E3}${cpu cpu4} %${color}${font}
${endif}${if_existing /sys/bus/cpu/devices/cpu5/online 1}${GOTO 3}CPU5:${GOTO 45}${cpubar cpu5 11,80}${GOTO 80}${font DejaVu Sans:bold:size=8}${color 0097E3}${cpu cpu5} %${color}${font}
${endif}#${GOTO 36}CPU2:${GOTO 120}${cpubar cpu3 10,110} ${cpu cpu3} %
${GOTO 3}Память:${GOTO 55}${membar 11,70}${GOTO 70}${font DejaVu Sans:bold:size=8}${color 0097E3} ${mem}${color}${font}
${GOTO 3}Uptime:${alignr}${uptime}
#${GOTO 3}${fs_bar 11 /dev/disk/by-uuid/3fecd32a-1f3b-4c41-a639-f0bac9905404}
${GOTO 3}${fs_bar 11 /}${GOTO 20}${font DejaVu Sans:bold:size=8}${color 0097E3}${fs_used /}/${fs_size /}${color}
${GOTO 3}${font DejaVu Sans:bold:size=9}Температура${font}
#${GOTO 3}acpi:${alignr}${acpitemp} °C
${GOTO 3}CPU:${alignr}${execi 4 sensors | grep -A 0 'Current CPU Casing Temperature' | cut -c35-38} °C
#${GOTO 3}CPU:${alignr}${execi 4 sensors | grep -A 0 'CPU Temperature' | cut -c22-25} °C
${GOTO 3}Board:${alignr}${execi 4 sensors | grep -A 0 'Current System Temperature' | cut -c35-38} °C
${GOTO 3}GPU:${alignr}${execi 4 sensors | grep -A 0 'GPU temp' | cut -c16-19} °C
#${GOTO 3}thrm:${alignr}${execi 4 sensors | grep -A 0 'temp1' | cut -c16-19} °C
#${GOTO 36}:${execi 10 netcat localhost 7634 | cut -b30-55} °C
${GOTO 3}sda:${alignr}${execi 10 nc 127.0.0.1 7634 | cut -c33-34} °C
${GOTO 3}sdb:${alignr}${execi 10 nc 127.0.0.1 7634 | cut -c70-71} °C
#${GOTO 3}Hdd:${alignr}${execi 10 hddtemp -l 127.0.0.1 -p 7634 /dev/sda | cut -c30-40}
${GOTO 3}CPU Fan:${alignr}${execi 4 sensors | grep -A 0 'CPU_FAN' | cut -c33-36} RPM
${GOTO 3}SYS Fan:${alignr}${execi 4 sensors | grep -A 0 'SYS_FAN1' | cut -c33-36} RPM
${GOTO 3}${font DejaVu Sans:bold:size=9}Сеть${font}
${if_existing /sys/class/net/eth0/operstate up}${GOTO 3}Ethernet${alignr}${addr eth0}
${GOTO 3}Up:${GOTO 45}${upspeedgraph eth0 11,80 B7B2AD B7B2AD}${GOTO 60}${color 00DFFF}${upspeed eth0}${color}
${GOTO 3}Down:${GOTO 45}${downspeedgraph eth0 11,80 B7B2AD B7B2AD}${GOTO 60}${color 00FF62}${downspeed eth0}${color}
${GOTO 3}Отправлено:${alignr}${totalup eth0}
${GOTO 3}Загружено:${alignr}${totaldown eth0}
${endif}${if_existing /sys/class/net/enp1s0/operstate up}${GOTO 3}Ethernet${alignr}${addr enp1s0}
${GOTO 3}Up:${GOTO 45}${upspeedgraph enp1s0 11,80 B7B2AD B7B2AD}${GOTO 60}${color 00DFFF}${upspeed enp1s0}${color}
${GOTO 3}Down:${GOTO 45}${downspeedgraph enp1s0 11,80 B7B2AD B7B2AD}${GOTO 60}${color 00FF62}${downspeed enp1s0}${color}
${GOTO 3}Отправлено:${alignr}${totalup enp1s0}
${GOTO 3}Загружено:${alignr}${totaldown enp1s0}
${endif}${if_existing /sys/class/net/wlan0/operstate up}${GOTO 3}WiFi${alignr}${addr wlan0}
${GOTO 3}Up:${GOTO 45}${upspeedgraph wlan0 11,80 B7B2AD B7B2AD}${GOTO 60}${color 00DFFF}${upspeed wlan0}${color}
${GOTO 3}Down:${GOTO 45}${downspeedgraph wlan0 11,80 B7B2AD B7B2AD}${GOTO 60}${color 00FF62}${downspeed wlan0}${color}
${GOTO 3}Отправлено:${alignr}${totalup wlan0}
${GOTO 3}Загружено:${alignr}${totaldown wlan0}
${endif}]];
Add Comment
Author