From bc02d53d497df1e488a0aa300eafed6d99a4d87a Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Sat, 3 Jun 2023 01:57:19 -0700 Subject: [PATCH] :sparkles: Added pug default expansion script/espanso alias --- .config/espanso/match/base.yml | 10 ++++++++++ scripts/pug5 | 14 ++++++++++++++ 2 files changed, 24 insertions(+) create mode 100755 scripts/pug5 diff --git a/.config/espanso/match/base.yml b/.config/espanso/match/base.yml index c310177e..19eb2715 100644 --- a/.config/espanso/match/base.yml +++ b/.config/espanso/match/base.yml @@ -216,6 +216,7 @@ matches: - trigger: ";mem" replace: "about:memory" + # Calling Bash Scripts # Returns public ip address - trigger: ";ip" replace: "{{output}}" @@ -225,6 +226,15 @@ matches: params: cmd: "curl ifconfig.me ; echo ''" + # returns default html5 layout in pug + - trigger: ";pug5" + replace: "{{output}}" + vars: + - name: output + type: shell + params: + cmd: "~/scripts/pug5 ; echo ''" + # returns current time in US format - trigger: ";btime" replace: "{{output}}" diff --git a/scripts/pug5 b/scripts/pug5 new file mode 100755 index 00000000..8931ea18 --- /dev/null +++ b/scripts/pug5 @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +# Utilize in conjunction with espanso, call ;pug5 +cat <