dotfiles/.config/espanso/match/base.yml

163 lines
3.5 KiB
YAML
Raw Normal View History

2022-04-04 10:25:36 +00:00
# Automatically generated by espanso migration tool
# Original file: default.yml
2021-06-04 11:36:21 +00:00
matches:
2021-09-18 20:03:34 +00:00
- trigger: ":grue"
2022-04-04 10:25:36 +00:00
replace: |-
Grüße,
Janek
2021-09-18 20:03:34 +00:00
- trigger: ":gree"
2022-04-04 10:25:36 +00:00
replace: |-
Best,
Janek
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:
2022-04-04 10:25:36 +00:00
cmd: pass info/email/personal
2021-06-04 11:36:21 +00:00
- trigger: ":ec"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
2022-04-04 10:25:36 +00:00
cmd: pass info/email/church
2021-06-04 11:36:21 +00:00
- trigger: ":eu"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
2022-04-04 10:25:36 +00:00
cmd: pass info/email/uni
2021-09-18 20:03:34 +00:00
- trigger: ":eaur"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
2022-04-04 10:25:36 +00:00
cmd: pass info/email/aur
2021-06-04 11:36:21 +00:00
- trigger: ":a0"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
2022-04-04 10:25:36 +00:00
cmd: pass info/address | head -1
2021-06-04 11:36:21 +00:00
- trigger: ":a1"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
2022-04-04 10:25:36 +00:00
cmd: pass info/address | head -2 | tail -1
2021-07-02 16:37:50 +00:00
- trigger: ":as"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
2022-04-04 10:25:36 +00:00
cmd: "pass info/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:
2022-04-04 10:25:36 +00:00
cmd: pass info/address | tail -1
- trigger: ":ap"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
2022-04-04 10:25:36 +00:00
cmd: "pass info/address | tail -1 | cut -d' ' -f1"
- trigger: ":ac"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
2022-04-04 10:25:36 +00:00
cmd: "pass info/address | tail -1 | cut -d' ' -f2"
2021-09-18 20:03:34 +00:00
- trigger: ":tel"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
2022-04-04 10:25:36 +00:00
cmd: pass info/phone
2021-12-23 20:39:55 +00:00
- trigger: ":adt"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
2022-04-04 10:25:36 +00:00
cmd: pass info/address-bt
2021-06-04 11:36:21 +00:00
- trigger: ":add"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
2022-04-04 10:25:36 +00:00
cmd: pass info/address
2021-06-04 11:36:21 +00:00
- trigger: ":tax"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
2022-04-04 10:25:36 +00:00
cmd: pass info/tax-id | head -1
2021-06-04 11:36:21 +00:00
- trigger: ":ss"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
2022-04-04 10:25:36 +00:00
cmd: pass info/social-security | head -1
2021-07-02 16:37:50 +00:00
- trigger: ":sign"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
2022-04-04 10:25:36 +00:00
cmd: pass info/signature
2022-05-03 09:21:33 +00:00
- trigger: ":sigo"
replace: |-
#+ATTR_ORG: :width 200
#+ATTR_LATEX: :width 4cm :center nil
[[file:{{signature}}]] \\
{{name}}
vars:
- name: signature
type: match
params:
trigger: ":sign"
- name: name
type: match
params:
trigger: ":a0"
2021-07-17 20:48:33 +00:00
- trigger: ":iban"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
2022-04-04 10:25:36 +00:00
cmd: pass info/banking/dkb | head -1