dotfiles/.config/conky/conkyrc1
2020-09-15 02:45:25 +02:00

105 lines
4.2 KiB
Text

conky.config = {
alignment = 'top_left',
background = true,
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,
top_name_width = 25,
top_cpu_separate = true,
text_buffer_size = 1024,
color2 = 'F2F0EC',
font2 = 'xos4 Terminus:size=12',
--template0 = [[${cpubar cpu\1 6,60}${offset 5}]],
template0 = [[${cpubar cpu\1 6,125}${goto 140}${cpubar cpu\2}]],
template1 = [[${top pid \1} ${top name \1}$alignr${top cpu \1}%]],
template2 = [[${top_io pid \1} ${top_io name \1}$alignr${top_io io_perc \1}%]],
template3 = [[${scroll wait 20 1 2 \2} ${goto 140}${if_match ${fs_used_perc \1}>85}${color F2777A}$else${if_match ${fs_used_perc \1}>70}${color FFCC66}$else${color 99CC99}$endif$endif${fs_bar \1}${color}\nUtilisé : ${fs_used \1}${goto 140}Libre: ${fs_free \1}\nTaux ut.: ${fs_used_perc \1}%${goto 140}Total: ${fs_size \1}]]
};
conky.text = [[
${color 6699CC}$alignc${font xos4 Terminus:size=14}Arch Linux$font$color
${color2}${font2}Processeur $hr${font}${color}
${cpugraph}
Utilisation: $cpu%${goto 140}${if_match $cpu>90}${color F2777A}$else${if_match $cpu>70}${color FFCC66}$else${color 99CC99}$endif$endif${cpubar}$color
#${template0 1}${template0 2}${template0 3}${template0 4}
#${freq 1} MHz${goto 70}${freq 2} Mhz${goto 135}${freq 3} MHz${goto 200}${freq 4} MHz
#${template0 5}${template0 6}${template0 7}${template0 8}
#${freq 5} MHz${goto 70}${freq 6} Mhz${goto 135}${freq 7} MHz${goto 200}${freq 8} MHz
#${template0 9}${template0 10}${template0 11}${template0 12}
#${freq 9} MHz${goto 70}${freq 10} Mhz${goto 135}${freq 11} MHz${goto 200}${freq 12} MHz
${template0 1 7}
${template0 2 8}
${template0 3 9}
${template0 4 10}
${template0 5 11}
${template0 6 12}
${template1 1}
${template1 2}
${template1 3}
${template1 4}
${template1 5}
#${template1 6}
#${template1 7}
#${template1 8}
#${template1 9}
#${template1 10}
${color2}${font2}Disque E/S $hr${font}${color}
${voffset 2}Lecture SSD ${diskio_read /dev/disk/by-id/wwn-0x5002538e39c2174e}${goto 140}Écriture SSD ${diskio_write /dev/disk/by-id/wwn-0x5002538e39c2174e}
${diskiograph_read /dev/disk/by-id/wwn-0x5002538e39c2174e 26,125}$alignr${diskiograph_write /dev/disk/by-id/wwn-0x5002538e39c2174e 26,125}
Lecture HDD ${diskio_read /dev/disk/by-id/wwn-0x50014ee0af38f135}${goto 140}Écriture HDD ${diskio_write /dev/disk/by-id/wwn-0x50014ee0af38f135}
${diskiograph_read /dev/disk/by-id/wwn-0x50014ee0af38f135 26,125}$alignr${diskiograph_write /dev/disk/by-id/wwn-0x50014ee0af38f135 26,125}
${template2 1}
${template2 2}
${template2 3}
${template2 4}
${template2 5}
${color2}${font2}Carte graphique $hr${font}${color}
${voffset 2}Usage${goto 140}${texeci 3 conky_radeon}%
VRAM: ${texeci 3 conky_radeon vram mb}M${goto 140}${texeci 3 conky_radeon vram}%
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}
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}
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}
${color2}${font2}Système $hr$font$color${voffset 2}
Kernel${goto 140}$kernel
Uptime${goto 140}$uptime
${color2}${font2}Espace disque $hr${font}${color}
${voffset 2}${template3 / /}
${template3 /home /home}
${template3 /mnt/data /mnt/data}
${template3 /tmp /tmp}
${template3 /dev/shm /dev/shm}
${execpi 5 /home/breizh/.config/conky/conky_mount}#${color2}${font2}$hr${font}${color}
]]