mirror of
https://github.com/GRFreire/dotfiles.git
synced 2026-01-10 04:19:38 +00:00
espanso: add espanso config
This commit is contained in:
parent
d388f7805a
commit
4b39928e24
28
.config/espanso/default.yml
Normal file
28
.config/espanso/default.yml
Normal 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}'"
|
||||||
Loading…
Reference in New Issue
Block a user