Автор: funk2256, 1 Год назад, написана на языке Plain Text.
Встраивание на сайт
  1.         ----------------------- Заполнить персональными настройками --------------------
  2.         template0 = '/run/timeshift/backup/timeshift/snapshots', --каталог снапшотов таймшифт, если нет оставить как е
  3.         template1 = '/run/media/kostya/manjarousb', --каталог устройства хранения,
  4.         template2 = '/dev/sdb2', -- устройство хранения, если нет оставить как есть,
  5.         template3 = '/dev/sdb2', -- устройство с root дистрибутива,
  6.         template4 = 'FAFA04', --цвет графа io дисков read
  7.  
  8. #---------------------------------------------
  9. ${alignr}${offset -6}${color}Timeshift ─┤
  10. ${alignr}${offset -6}${color}Последний бэкап: ${texeci 600 ls -d /run/timeshift/backup/timeshift/snapshots/*/ | cut -c43-52 | tail -n1} ─┘
  11. ${voffset 4}${goto 10}${font Cadillac Sans:size=9}${goto 250}${color #fff}Read${font}${if_match ${texeci 600 test -e ${template0};echo $?}==0}${goto 230}${texeci 600 find ${template0} -mindepth 1 -maxdepth 1 -name $(date --date='2 days ago' +%F)* -type d -printf '%P\n' | sort -r | head -n 1}${endif}${color}${goto 240}${font}${voffset -7}${diskiograph_read ${template3} 15,100 00ff1a ${template4} -t}${goto 350}${diskiograph_read ${template2} 15,100 00ff1a ${template4} -t}${voffset -10}${offset -6}
  12. ${voffset 7}${goto 100}${font Cadillac Sans:size=9}${goto 250}Write${font}${if_match ${texeci 600 test -e ${template0};echo $?}==0}${goto 230}${texeci 600 find ${template0} -mindepth 1 -maxdepth 1 -name $(date --date='1 days ago' +%F)* -type d -printf '%P\n' | sort -r | head -n 1}${endif}${color}${goto 240}${font}${voffset -7}${diskiograph_write ${template3} 15,100 00ff1a ${template4} -t}${goto 350}${diskiograph_write ${template2} 15,100 00ff1a ${template4} -t}
  13. #---------------------------------------------
  14.  
  15.