149 lines
2.9 KiB
YAML
149 lines
2.9 KiB
YAML
# espanso configuration file
|
|
# https://espanso.org/docs/
|
|
|
|
matches:
|
|
# Simple replacements
|
|
- trigger: ":grue"
|
|
replace: "Grüße,\nJanek"
|
|
|
|
- trigger: ":gree"
|
|
replace: "Best,\nJanek"
|
|
|
|
- trigger: ":date"
|
|
replace: "{{mydate}}"
|
|
vars:
|
|
- name: mydate
|
|
type: date
|
|
params:
|
|
format: "%Y-%m-%d"
|
|
|
|
# Shell commands
|
|
- trigger: ":ip"
|
|
replace: "{{output}}"
|
|
vars:
|
|
- name: output
|
|
type: shell
|
|
params:
|
|
cmd: "curl 'https://api.ipify.org'"
|
|
|
|
# Sensitive data through pass
|
|
- trigger: ":ep"
|
|
replace: "{{output}}"
|
|
vars:
|
|
- name: output
|
|
type: shell
|
|
params:
|
|
cmd: "pass information/email/personal"
|
|
|
|
- trigger: ":ec"
|
|
replace: "{{output}}"
|
|
vars:
|
|
- name: output
|
|
type: shell
|
|
params:
|
|
cmd: "pass information/email/church"
|
|
|
|
- trigger: ":eu"
|
|
replace: "{{output}}"
|
|
vars:
|
|
- name: output
|
|
type: shell
|
|
params:
|
|
cmd: "pass information/email/uni"
|
|
|
|
- trigger: ":eaur"
|
|
replace: "{{output}}"
|
|
vars:
|
|
- name: output
|
|
type: shell
|
|
params:
|
|
cmd: "pass information/email/aur"
|
|
|
|
- trigger: ":a0"
|
|
replace: "{{output}}"
|
|
vars:
|
|
- name: output
|
|
type: shell
|
|
params:
|
|
cmd: "pass information/address | head -1"
|
|
|
|
- trigger: ":a1"
|
|
replace: "{{output}}"
|
|
vars:
|
|
- name: output
|
|
type: shell
|
|
params:
|
|
cmd: "pass information/address | head -2 | tail -1"
|
|
|
|
- trigger: ":as"
|
|
replace: "{{output}}"
|
|
vars:
|
|
- name: output
|
|
type: shell
|
|
params:
|
|
cmd: "pass information/address | head -2 | tail -1 | cut -d' ' -f1"
|
|
|
|
- trigger: ":a2"
|
|
replace: "{{output}}"
|
|
vars:
|
|
- name: output
|
|
type: shell
|
|
params:
|
|
cmd: "pass information/address | tail -1"
|
|
|
|
- trigger: ":tel"
|
|
replace: "{{output}}"
|
|
vars:
|
|
- name: output
|
|
type: shell
|
|
params:
|
|
cmd: "pass information/phone"
|
|
|
|
- trigger: ":add"
|
|
replace: "{{output}}"
|
|
vars:
|
|
- name: output
|
|
type: shell
|
|
params:
|
|
cmd: "pass information/address"
|
|
|
|
- trigger: ":tax"
|
|
replace: "{{output}}"
|
|
vars:
|
|
- name: output
|
|
type: shell
|
|
params:
|
|
cmd: "pass information/tax-id | head -1"
|
|
|
|
- trigger: ":ss"
|
|
replace: "{{output}}"
|
|
vars:
|
|
- name: output
|
|
type: shell
|
|
params:
|
|
cmd: "pass information/social-security | head -1"
|
|
|
|
- trigger: ":ep"
|
|
replace: "{{output}}"
|
|
vars:
|
|
- name: output
|
|
type: shell
|
|
params:
|
|
cmd: "pass information/email/personal"
|
|
|
|
- trigger: ":sign"
|
|
replace: "{{output}}"
|
|
vars:
|
|
- name: output
|
|
type: shell
|
|
params:
|
|
cmd: "pass information/signature"
|
|
|
|
- trigger: ":iban"
|
|
replace: "{{output}}"
|
|
vars:
|
|
- name: output
|
|
type: shell
|
|
params:
|
|
cmd: "pass information/banking/dkb | head -1"
|