Skip to content

Instantly share code, notes, and snippets.

View smeech's full-sized avatar

Stephen Meech smeech

View GitHub Profile
@smeech
smeech / toggle.yml
Created April 7, 2026 22:24
[Toggle package] Two triggers to enable/disable a particular package. #espanso #bash
- trigger: ":sitelen_on"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: |
dir="$HOME/.config/espanso/match/packages/sitelen-pona"
if [ -f "$dir/_package.yml" ]; then
mv "$dir/_package.yml" "$dir/package.yml" && echo "sitelen pona enabled"
@smeech
smeech / package.yml
Created May 16, 2026 10:04
[password-gen-win package] A rewrite of https://github.com/espanso/hub/pull/226 to play with streamlining the repetitive code. #espanso #powershell
# yaml-language-server: $schema=https://raw.githubusercontent.com/espanso/espanso/dev/schemas/match.schema.json
global_vars:
- name: alpha
type: echo
params:
echo: 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
- name: numbers
type: echo
params:
@smeech
smeech / super.yml
Last active May 18, 2026 14:06
[Superscripts] #espanso #python
# Triggered by ":sup(some text)"
- regex: :sup\((?P<text>.+)\)
replace: "{{superscript}}"
vars:
- name: superscript
type: script
params:
args:
- python3