✨ Added pug default expansion script/espanso alias
This commit is contained in:
parent
68441f2e59
commit
bc02d53d49
2 changed files with 24 additions and 0 deletions
|
|
@ -216,6 +216,7 @@ matches:
|
||||||
- trigger: ";mem"
|
- trigger: ";mem"
|
||||||
replace: "about:memory"
|
replace: "about:memory"
|
||||||
|
|
||||||
|
# Calling Bash Scripts
|
||||||
# Returns public ip address
|
# Returns public ip address
|
||||||
- trigger: ";ip"
|
- trigger: ";ip"
|
||||||
replace: "{{output}}"
|
replace: "{{output}}"
|
||||||
|
|
@ -225,6 +226,15 @@ matches:
|
||||||
params:
|
params:
|
||||||
cmd: "curl ifconfig.me ; echo ''"
|
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
|
# returns current time in US format
|
||||||
- trigger: ";btime"
|
- trigger: ";btime"
|
||||||
replace: "{{output}}"
|
replace: "{{output}}"
|
||||||
|
|
|
||||||
14
scripts/pug5
Executable file
14
scripts/pug5
Executable 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue