mirror of https://github.com/einverne/dotfiles.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.2 KiB
52 lines
1.2 KiB
# espanso configuration file |
|
|
|
# This is the default configuration file, change it as you like it |
|
# You can refer to the official documentation: |
|
# https://espanso.org/docs/ |
|
|
|
# Matches are the substitution rules, when you type the "trigger" string |
|
# it gets replaced by the "replace" string. |
|
matches: |
|
# Simple text replacement |
|
- trigger: ":espanso" |
|
replace: "Hi there!" |
|
- trigger: ":blog" |
|
replace: "https://blog.einverne.info" |
|
- trigger: ":photo" |
|
replace: "https://photo.einverne.info" |
|
- trigger: ":homer" |
|
replace: "https://homer.einverne.info" |
|
- trigger: ":ev" |
|
replace: "einverne" |
|
- trigger: ":name" |
|
replace: "einverne" |
|
word: true |
|
- trigger: ":div" |
|
replace: "<div>$|$</div>" |
|
- trigger: ":pve" |
|
replace: "Proxmox VE" |
|
|
|
# Dates |
|
- trigger: ":date" |
|
replace: "{{mydate}}" |
|
vars: |
|
- name: mydate |
|
type: date |
|
params: |
|
format: "%m/%d/%Y" |
|
- trigger: ":now" |
|
replace: "{{mytime}}" |
|
vars: |
|
- name: mytime |
|
type: date |
|
params: |
|
format: "%H:%M" |
|
|
|
# Shell commands |
|
- trigger: ":ip" |
|
replace: "{{output}}" |
|
vars: |
|
- name: output |
|
type: shell |
|
params: |
|
cmd: "curl 'ip.gs'"
|
|
|