Generates responses based on a global variables and individual requests to generate responses and type them out, emulating keyboard output.
- Install required system packages
- xdotool
- rofi
- python3
- pip3
- Install required python3 packages
pip3 install -r requirements.txt
- Add any globally accessible vars you want to have for your templates to
global_vars.yml
./run.sh
- Add a
[NAME].yml
file to a directory intemplates/
(or create a new one) - add a
content
field, with jinja2 template options. Note this only supports plain-fields at the moment, no lists.- for every newline you want in the template, you must pre-fix it with an extra newline. For example, for 1 newlines, write 2. For 2 newlines, write 3, etc.
- for global variables from
global_vars.yml
, pre-face every item withglobal.
. For example,global.name
- for requested-variables each time you run a template, pre-face every item with
args.
. For example,args.user_name
- If you used any
args.
objects, add anargs
list, with bulleted items for every arg you wish to request.
content: "Hello {{ args.recipient_name }},
Thanks for you email.
Best,
{{ global.name }}
{{ global.role }}"
args:
- recipient_name
name: John Doe
role: Systems Developer