Changement conky

This commit is contained in:
Breizh 2019-02-17 18:22:29 +01:00
parent 13c97134cc
commit de99c3c5ef
3 changed files with 169 additions and 0 deletions

5
.config/conky/conky_mount Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
for dir in /run/media/breizh/*
do
[[ -d "$dir" ]] && echo -e "\${template3 $dir $(basename $dir)}\n\n"
done

86
.config/conky/conkyrc1 Normal file
View File

@ -0,0 +1,86 @@
conky.config = {
alignment = 'top_right',
background = true,
xinerama_head = 1,
double_buffer = true,
font = 'xos4 Terminus:size=8',
draw_graph_borders = true,
minimum_width = 260,
maximum_width = 260,
minimum_height = 900,
gap_x = 5,
gap_y = 5,
no_buffers = true,
own_window = true,
own_window_class = Conky,
own_window_type = 'override',
own_window_transparent = false,
own_window_colour = '#000000',
update_interval = 2.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,
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>85}${color F2777A}$else${if_match $fs_used_perc>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 ${diskio_read sda}${goto 140}Écriture ${diskio_write sda}
${diskiograph_read sda 26,125}$alignr${diskiograph_write sda 26,125}
${template2 1}
${template2 2}
${template2 3}
${template2 4}
${template2 5}
${color2}${font2}Espace disque $hr${font}${color}
${voffset 2}${template3 / /}
${template3 /home /home}
${template3 /tmp /tmp}
${execpi 5 /home/breizh/.config/conky/conky_mount}${color2}${font2}$hr${font}${color}
]]

78
.config/conky/conkyrc2 Normal file
View File

@ -0,0 +1,78 @@
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,
minimum_width = 260,
maximum_width = 260,
minimum_height = 900,
gap_x = 275,
gap_y = 5,
no_buffers = true,
own_window = true,
own_window_class = Conky,
own_window_type = 'override',
own_window_transparent = false,
own_window_colour = '#000000',
update_interval = 2.0,
use_xft = true,
default_color = 'A09F93',
format_human_readable = true,
short_units = true,
if_up_strictness = 'link',
use_spacer = left,
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}
${color2}${font2}Températures $hr$font$color${voffset 2}
Disque dur${goto 140}${if_match ${hddtemp /dev/sda}>50}${color F2777A}$endif${hddtemp /dev/sda}°C$color
${color2}${font2}Système $hr$font$color${voffset 2}
Kernel${goto 140}$kernel
Uptime${goto 140}$uptime
${color2}${font2}Notes $hr$font$color${voffset 2}
${catp /home/breizh/notes}
${color2}${font2}$hr${font}${color}
]]