Màj conky

This commit is contained in:
Breizh 2019-12-11 00:44:07 +01:00
parent ff3aa6c556
commit 32c4102cdd
3 changed files with 19 additions and 10 deletions

View File

@ -1,5 +1,15 @@
#!/bin/bash
for dir in /run/media/breizh/*
do
[[ -d "$dir" ]] && echo -e "\${template3 $dir $(basename $dir)}\n\n"
done
if [[ "$1" == "es" ]]
then
for disk in /dev/sd?
do
echo '${voffset 2}Lecture '$(basename $disk)' ${diskio_read '$(basename $disk)'}${goto 140}Écriture '$(basename $disk)' ${diskio_write '$(basename $disk)'}'
echo '${diskiograph_read '$(basename $disk)' 26,125}$alignr${diskiograph_write '$(basename $disk)' 26,125}'
done
else
for dir in /run/media/breizh/*
do
[[ -d "$dir" ]] && echo -e "\${template3 $dir $(basename $dir)}\n\n"
done
fi

View File

@ -1,5 +1,5 @@
conky.config = {
alignment = 'top_right',
alignment = 'top_left',
background = true,
xinerama_head = 1,
double_buffer = true,
@ -14,7 +14,7 @@ conky.config = {
own_window = true,
own_window_class = Conky,
own_window_type = 'override',
own_window_transparent = false,
own_window_transparent = true,
own_window_colour = '#000000',
update_interval = 1.0,
use_xft = true,
@ -67,8 +67,7 @@ ${template1 5}
#${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}
${execpi 5 /home/breizh/.config/conky/conky_mount es}
${template2 1}
${template2 2}
${template2 3}

View File

@ -1,5 +1,5 @@
conky.config = {
alignment = 'top_right',
alignment = 'top_left',
background = true,
cpu_avg_samples = 4,
xinerama_head = 1,
@ -15,7 +15,7 @@ conky.config = {
own_window = true,
own_window_class = Conky,
own_window_type = 'override',
own_window_transparent = false,
own_window_transparent = true,
own_window_colour = '#000000',
update_interval = 1.0,
use_xft = true,