Hello,

To save some time, I would like to use a keyboard shortcut to paste directly into a Firefox formular some words I am writing dozens of time on a daily basis. I discovered xdotool, and designed this function:

function Appreciation {
   Fenetre=$(xdotool search --onlyvisible --class Firefox|tail -n 1)
   echo $*|xsel -b
   exec xdotool key --window $Fenetre ctrl+v
}

This works
$ Appreciation "très bonne intervention"

So I wrote to my .cwmrc

bind-key 4-i "exec $(Appreciation "Très bonne intervention")"

but there is no input in the Firefox window when I press Windows-I.
What did I miss?

Damien

Reply via email to