espanso/src/res/config.yml

30 lines
707 B
YAML
Raw Normal View History

2019-09-04 18:30:38 +00:00
# espanso configuration file
# This is the default configuration file, change it as you like it
# You can refer to the official documentation:
2019-09-27 21:06:52 +00:00
# https://espanso.org/docs/
2019-09-04 18:30:38 +00:00
# Matches are the substitution rules, when you type the "trigger" string
# it gets replaced by the "replace" string.
matches:
2019-09-16 12:42:51 +00:00
# Simple text replacement
2019-09-04 18:30:38 +00:00
- trigger: ":espanso"
replace: "Hi there!"
2019-09-16 12:42:51 +00:00
# Dates
- trigger: ":date"
replace: "{{mydate}}"
vars:
- name: mydate
type: date
params:
format: "%m/%d/%Y"
# Shell commands
- trigger: ":shell"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
2019-09-27 21:06:52 +00:00
cmd: "echo Hello from your shell"