dotfiles/.config/conky/conkyrc2
2020-05-12 18:25:43 +02:00

87 lines
3.7 KiB
Text

conky.config = {
alignment = 'top_right',
background = true,
cpu_avg_samples = 4,
xinerama_head = 1,
double_buffer = true,
font = 'xos4 Terminus:size=8',
draw_graph_borders = true,
draw_outline = true,
minimum_width = 260,
maximum_width = 260,
minimum_height = 0,
gap_x = 5,
gap_y = 5,
no_buffers = true,
own_window = true,
own_window_class = Conky,
own_window_type = 'override',
own_window_transparent = true,
own_window_colour = '#000000',
update_interval = 1.0,
use_xft = true,
default_color = 'A09F93',
format_human_readable = true,
short_units = true,
if_up_strictness = 'link',
use_spacer = left,
text_buffer_size = 2048,
color2 = 'F2F0EC',
font2 = 'xos4 Terminus:size=12',
template0 = [[${top_mem pid \1} ${top_mem name \1}${alignr}${top_mem mem_res \1} ${top_mem mem \1}%]]
};
conky.text = [[
${color 6699CC}$alignc${font xos4 Terminus:size=14}${time %A %d %B %Y}$font$color
${color2}${font2}Mémoire $hr$font$color
${memgraph}
${goto 140}${color 747369}${memwithbuffersbar}${color}${voffset -12}
RAM : $memperc%${goto 140}${if_match $memperc>85}${color F2777A}$else${if_match $memperc>70}${color FFCC66}$else${color 99CC99}$endif$endif${membar}$color
Util.: ${mem}${goto 140}Dispo.: ${memeasyfree}
Cache: ${cached}${goto 140}Libre : ${memfree}
Buff.: ${buffers}${goto 140}Total : ${memmax}
Swap : $swapperc%${goto 140}${if_match $swapperc>85}${color F2777A}$else${if_match $swapperc>70}${color FFCC66}$else${color 99CC99}$endif$endif${swapbar}$color
Util.: ${swap}${goto 140}Dispo.: ${swapfree}
${template0 1}
${template0 2}
${template0 3}
${template0 4}
${template0 5}
#${template0 6}
#${template0 7}
#${template0 8}
#${template0 9}
#${template0 10}
${color2}${font2}Réseau $hr$font$color
${voffset 2}Téléchargement ${downspeed enp6s0}${goto 140}Téléversement ${upspeed enp6s0}
${downspeedgraph enp6s0 25,125}${alignr}${upspeedgraph enp6s0 25,125}
Téléchargé ${totaldown enp6s0}${goto 140}Téléversé ${totalup enp6s0}
$alignc${addrs enp6s0}
$alignc${scroll left 39 2 1 ${v6addrs enp6s0 -n -s}}
$alignc${curl ifconfig.co/ip}${if_up tun0}
${color2}${font2}VPN $hr$font$color
${voffset 2}Téléchargement ${downspeed tun0}${goto 140}Téléversement ${upspeed tun0}
${downspeedgraph tun0 25,125}${alignr}${upspeedgraph tun0 25,125}
Téléchargé ${totaldown tun0}${goto 140}Téléversé ${totalup tun0}
$alignc${addrs tun0}
$alignc${scroll left 39 2 1 ${v6addrs tun0 -n -s}}
${endif}
${color2}${font2}Capteurs $hr$font$color${voffset 2}
Disque dur${goto 140}${if_match ${hddtemp}>50}${color F2777A}$endif${hddtemp}°C$color
CPU${goto 140}${if_match ${execi 5 sensors -j | jq '."k10temp-pci-00c3"."Tdie"."temp1_input"'}>70}${color F2777A}$endif${execi 5 sensors -j | jq '."k10temp-pci-00c3"."Tdie"."temp1_input"' | cut -d. -f1}°C${color}
GPU Temp${goto 140}${if_match ${execi 5 sensors -j | jq '."amdgpu-pci-0900"."edge"."temp1_input"'}>70}${color F2777A}$endif${execi 5 sensors -j | jq '."amdgpu-pci-0900"."edge"."temp1_input"' | cut -d. -f1}°C${color}
GPU Conso${goto 140}${if_match ${execi 5 sensors -j | jq '."amdgpu-pci-0900"."power1"."power1_average"'}>180}${color F2777A}$endif${execi 5 sensors -j | jq '."amdgpu-pci-0900"."power1"."power1_average"' | cut -d. -f1} W${color}
GPU Ventilo${goto 140}${if_match ${execi 5 sensors -j | jq '."amdgpu-pci-0900"."fan1"."fan1_input"'}>3000}${color F2777A}$endif${execi 5 sensors -j | jq '."amdgpu-pci-0900"."fan1"."fan1_input"' | cut -d. -f1} RPM${color}
Pièce${goto 140}${if_match ${execi 5 sensors -j | jq '."it8792-isa-0a60"."temp2"."temp2_input"'}>=25}${color F2777A}$endif${execi 5 sensors -j | jq '."it8792-isa-0a60"."temp2"."temp2_input"' | cut -d. -f1}°C${color}
${color2}${font2}Notes $hr$font$color${voffset 2}
${catp /home/breizh/notes}
]]