Initial Commit, move from a symlink farm to yadm
This commit is contained in:
26
.config/espanso/match/packages/wttr/package.yml
Normal file
26
.config/espanso/match/packages/wttr/package.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
# wttr package
|
||||
|
||||
matches:
|
||||
- trigger: ":wttrin"
|
||||
replace: "{{output}}"
|
||||
vars:
|
||||
- name: output
|
||||
type: shell
|
||||
params:
|
||||
cmd: 'curl https://wttr.in?format="%l:+%c+%t\n"'
|
||||
|
||||
- trigger: ":moonphase"
|
||||
replace: "{{output}}"
|
||||
vars:
|
||||
- name: output
|
||||
type: shell
|
||||
params:
|
||||
cmd: 'curl https://wttr.in?format="%m\n"'
|
||||
|
||||
- regex: ":wttrat/(?P<location>.*)/"
|
||||
replace: "{{output}}"
|
||||
vars:
|
||||
- name: output
|
||||
type: shell
|
||||
params:
|
||||
cmd: 'curl https://wttr.in/{{location}}?format="%l:+%c+%t\n"'
|
||||
Reference in New Issue
Block a user