From af48c4139ed1ff33a12664360e86ce5bf1f68af6 Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Sat, 3 Jun 2023 02:10:05 -0700 Subject: [PATCH] :sparkles: Added html5 layout as well --- .config/espanso/match/base.yml | 9 +++++++++ scripts/html5 | 18 ++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100755 scripts/html5 diff --git a/.config/espanso/match/base.yml b/.config/espanso/match/base.yml index 19eb2715..7eedd9cd 100644 --- a/.config/espanso/match/base.yml +++ b/.config/espanso/match/base.yml @@ -226,6 +226,15 @@ matches: params: cmd: "curl ifconfig.me ; echo ''" + # returns default html5 layout + - trigger: ";html5" + replace: "{{output}}" + vars: + - name: output + type: shell + params: + cmd: "~/scripts/html5 ; echo ''" + # returns default html5 layout in pug - trigger: ";pug5" replace: "{{output}}" diff --git a/scripts/html5 b/scripts/html5 new file mode 100755 index 00000000..77410073 --- /dev/null +++ b/scripts/html5 @@ -0,0 +1,18 @@ +#!/usr/bin/env bash +# Utilize in conjunction with espanso, call ;html5 +cat < + + + html page + + + + + + + + + + +EOM