#!/bin/sh dir=~/screenshots/compiz if test ! -x /usr/bin/scrot then echo "Impossible d'éxécuter la commande '/usr/bin/scrot'" exit 1 fi if test ! -d $dir then echo "Création du répertoire "$dir mkdir -p $dir fi cd $dir scrot 'screenshot_%Y%m%d-%H%M%S_$wx$h_scrot.png' -d 5