dotfiles/.config/conky/conky_mount
2020-01-09 21:17:01 +01:00

16 lines
433 B
Bash
Executable file

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