Skip to content

Instantly share code, notes, and snippets.

View smeech's full-sized avatar

Stephen Meech smeech

View GitHub Profile
@dougpagani
dougpagani / add-espanso-entry-new.sh
Last active January 20, 2025 17:11
Dylan's Espanso script, before and after
#!/bin/bash
FORM_OUTPUT=$(zenity --forms \
--add-entry "trigger:" \
--add-entry "replacement:" \
--add-combo "word:" --combo-values="false|true" \
--add-combo "propagate case:" --combo-values="true|false")
TRIGGER=$(echo $FORM_OUTPUT | cut -d "|" -f1 | tr -d '[:space:]')
REPLACE=$(echo $FORM_OUTPUT | cut -d "|" -f2 | tr -d '[:space:]')