Added pug default expansion script/espanso alias

This commit is contained in:
z3rOR0ne 2023-06-03 01:57:19 -07:00
parent 68441f2e59
commit bc02d53d49
2 changed files with 24 additions and 0 deletions

View file

@ -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}}"

14
scripts/pug5 Executable file
View file

@ -0,0 +1,14 @@
#!/usr/bin/env bash
# Utilize in conjunction with espanso, call ;pug5
cat <<EOM
doctype html
html(lang = "en")
head
title html page
meta(charset='utf-8')
meta(name='viewport' content='width=device-width, initial-scale=1')
link(rel="icon" type="image/x-icon" href="favicon.png")
link(rel='stylesheet' type='text/css' href='css/style.css')
body
script(src="./index.js" default)
EOM