espanso: add espanso config

This commit is contained in:
Guilherme Rugai Freire 2021-08-13 15:43:56 -03:00
parent d388f7805a
commit 4b39928e24
No known key found for this signature in database
GPG Key ID: 0F9FE41723A8A297

View File

@ -0,0 +1,28 @@
# ____ ____ _____ _
# / ___| _ \| ___| __ ___(_)_ __ ___
# | | _| |_) | |_ | '__/ _ \ | '__/ _ \ Guilherme Rugai Freire
# | |_| | _ <| _|| | | __/ | | | __/ https://grfreire.com
# \____|_| \_\_| |_| \___|_|_| \___| https://github.com/GRFreire
#
matches:
# Simple text replacement
- trigger: ":espanso"
replace: "Hi there!"
# Dates
- trigger: ":date"
replace: "{{date}}"
vars:
- name: date
type: date
params:
format: "%m/%d/%Y"
- trigger: ":routerip"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: "ip route | awk '/default/{print $3; exit}'"