diff --git a/.config/conky/conky_mount b/.config/conky/conky_mount index 454d2a5..91bdc17 100755 --- a/.config/conky/conky_mount +++ b/.config/conky/conky_mount @@ -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 diff --git a/.config/conky/conkyrc1 b/.config/conky/conkyrc1 index 2cba7dd..b3f25fe 100644 --- a/.config/conky/conkyrc1 +++ b/.config/conky/conkyrc1 @@ -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} diff --git a/.config/conky/conkyrc2 b/.config/conky/conkyrc2 index 7de5ffb..ff40b8d 100644 --- a/.config/conky/conkyrc2 +++ b/.config/conky/conkyrc2 @@ -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,