Skip to content

Instantly share code, notes, and snippets.

@madrzejewski
Created July 18, 2018 11:40
Show Gist options
  • Save madrzejewski/13ae27b7b7dc84227ecb868709e72ddf to your computer and use it in GitHub Desktop.
Save madrzejewski/13ae27b7b7dc84227ecb868709e72ddf to your computer and use it in GitHub Desktop.
#!/bin/sh
# https://blog.madrzejewski.com/rediger-texte-raccourcis-clavier-linux-xbindkeys-xdotool
case $1 in
# Exemple : signature d'un email
'majf1')
xdotool key --delay 110 Return
xdotool type --delay 0 "Si vous avez d'autres questions, je reste à votre écoute."
xdotool key --delay 1 Return
xdotool key --delay 1 Return
xdotool type --delay 0 'Merci de votre confiance,'
xdotool key --delay 1 Return
xdotool type --delay 0 'Agréable journée,'
xdotool key --delay 1 Return
xdotool type --delay 0 'Alexis'
;;
# Exemple : une autre version de la signature
'majf2')
xdotool key --delay 110 Return
xdotool type --delay 0 "Cordialement,"
xdotool key --delay 1 Return
xdotool type --delay 0 'Alexis'
;;
*)
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment