Outils pour utilisateurs

Outils du site


scripts-php-bash:addscreenshooter
no way to compare when less than two revisions

Différences

Ci-dessous, les différences entre deux révisions de la page.


Révision précédente
scripts-php-bash:addscreenshooter [2019/07/17 19:24] (Version actuelle) – modification externe 127.0.0.1
Ligne 1: Ligne 1:
 +====== Addscreenshooter under FluxBox ======
  
 +
 +Permet d'ajouter une capture d'écran sous FluxBox sur une touche (ici F1)
 +
 +<code bash>#!/bin/sh
 +#
 +
 +# Script shell permettant de rajouter
 +# un screenshooter et de le 
 +# positionner sur le raccourci
 +# clavier F1
 +#
 +# Pour FLUXBOX 
 +#
 +# cyrille <cyrille@cbiot.fr> 9.X.16
 +#
 +
 +# Recuperation du USER
 +  USER=$(whoami)
 +
 +# Test de l'existence du programme de screenshooter 
 +if which xfce4-screenshooter > /dev/null; then
 +    echo "screenshooter already install. Fine."
 +else
 +    echo "xfce4-screenshooter does not exist. Go for the installation"
 +    su -c "apt-get install xfce4-screenshooter"
 +fi
 +
 +# Test de la presence de fluxbox
 +if [ -f "/home/$USER/.fluxbox/keys" ]; then
 +    echo "Fluxbox OK";
 +else
 +    echo "Fluxbox not found. This script works only with it. Install it."
 +    exit
 +fi
 +
 +# Ajouter un raccourci clavier
 +echo "# Ajout hotkey pour xfce4-screenshooter " >> /home/$USER/.fluxbox/keys
 +echo "None F1 :ExecCommand xfce4-screenshooter & " >> /home/$USER/.fluxbox/keys
 +
 +
 +# Avertissement
 +echo "Think to restart your fluxbox session."
 +
 +</code>
scripts-php-bash/addscreenshooter.txt · Dernière modification : 2019/07/17 19:24 de 127.0.0.1