Màj conky
This commit is contained in:
parent
e9d6ecad70
commit
447672d70c
3 changed files with 19 additions and 10 deletions
|
@ -1,5 +1,15 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
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/*
|
for dir in /run/media/breizh/*
|
||||||
do
|
do
|
||||||
[[ -d "$dir" ]] && echo -e "\${template3 $dir $(basename $dir)}\n\n"
|
[[ -d "$dir" ]] && echo -e "\${template3 $dir $(basename $dir)}\n\n"
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
conky.config = {
|
conky.config = {
|
||||||
alignment = 'top_right',
|
alignment = 'top_left',
|
||||||
background = true,
|
background = true,
|
||||||
xinerama_head = 1,
|
xinerama_head = 1,
|
||||||
double_buffer = true,
|
double_buffer = true,
|
||||||
|
@ -14,7 +14,7 @@ conky.config = {
|
||||||
own_window = true,
|
own_window = true,
|
||||||
own_window_class = Conky,
|
own_window_class = Conky,
|
||||||
own_window_type = 'override',
|
own_window_type = 'override',
|
||||||
own_window_transparent = false,
|
own_window_transparent = true,
|
||||||
own_window_colour = '#000000',
|
own_window_colour = '#000000',
|
||||||
update_interval = 1.0,
|
update_interval = 1.0,
|
||||||
use_xft = true,
|
use_xft = true,
|
||||||
|
@ -67,8 +67,7 @@ ${template1 5}
|
||||||
#${template1 10}
|
#${template1 10}
|
||||||
|
|
||||||
${color2}${font2}Disque E/S $hr${font}${color}
|
${color2}${font2}Disque E/S $hr${font}${color}
|
||||||
${voffset 2}Lecture ${diskio_read sda}${goto 140}Écriture ${diskio_write sda}
|
${execpi 5 /home/breizh/.config/conky/conky_mount es}
|
||||||
${diskiograph_read sda 26,125}$alignr${diskiograph_write sda 26,125}
|
|
||||||
${template2 1}
|
${template2 1}
|
||||||
${template2 2}
|
${template2 2}
|
||||||
${template2 3}
|
${template2 3}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
conky.config = {
|
conky.config = {
|
||||||
alignment = 'top_right',
|
alignment = 'top_left',
|
||||||
background = true,
|
background = true,
|
||||||
cpu_avg_samples = 4,
|
cpu_avg_samples = 4,
|
||||||
xinerama_head = 1,
|
xinerama_head = 1,
|
||||||
|
@ -15,7 +15,7 @@ conky.config = {
|
||||||
own_window = true,
|
own_window = true,
|
||||||
own_window_class = Conky,
|
own_window_class = Conky,
|
||||||
own_window_type = 'override',
|
own_window_type = 'override',
|
||||||
own_window_transparent = false,
|
own_window_transparent = true,
|
||||||
own_window_colour = '#000000',
|
own_window_colour = '#000000',
|
||||||
update_interval = 1.0,
|
update_interval = 1.0,
|
||||||
use_xft = true,
|
use_xft = true,
|
||||||
|
|
Loading…
Reference in a new issue