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 <