dotfiles/.config/espanso/default.yml

157 lines
3.1 KiB
YAML
Raw Normal View History

2021-06-04 11:36:21 +00:00
# espanso configuration file
# https://espanso.org/docs/
matches:
# Simple replacements
2021-09-18 20:03:34 +00:00
- trigger: ":grue"
2021-07-02 16:37:50 +00:00
replace: "Grüße,\nJanek"
2021-09-18 20:03:34 +00:00
- trigger: ":gree"
replace: "Best,\nJanek"
2021-06-04 11:36:21 +00:00
- 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"
2021-09-18 20:03:34 +00:00
- trigger: ":eaur"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: "pass information/email/aur"
2021-06-04 11:36:21 +00:00
- 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"
2021-07-02 16:37:50 +00:00
- trigger: ":as"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: "pass information/address | head -2 | tail -1 | cut -d' ' -f1"
2021-06-04 11:36:21 +00:00
- trigger: ":a2"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: "pass information/address | tail -1"
- trigger: ":ap"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: "pass information/address | tail -1 | cut -d' ' -f1"
- trigger: ":ac"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: "pass information/address | tail -1 | cut -d' ' -f2"
2021-09-18 20:03:34 +00:00
- trigger: ":tel"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: "pass information/phone"
2021-06-04 11:36:21 +00:00
- 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"
2021-07-02 16:37:50 +00:00
- trigger: ":sign"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: "pass information/signature"
2021-07-17 20:48:33 +00:00
- trigger: ":iban"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: "pass information/banking/dkb | head -1"