Use shortcut to type text : https://blog.madrzejewski.com/rediger-texte-raccourcis-clavier-linux-xbindkeys-xdotool
#!/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