Terminal Widget with configured tap actions

Script

Configure a Widget Tap Action

by Brett Terpstra

Persist tap/click actions on a widget target. Actions survive later display updates until changed or cleared with --clear-action.

Script (widget-tap-action.sh)

terminal-widget \
  --target deploy \
  --text "Open deploy dashboard" \
  --icon arrow.up.right.square \
  --action-kind open-url \
  --action-value "https://example.com/deploys"

terminal-widget \
  --target backup \
  --text "Run backup shortcut" \
  --icon externaldrive.fill \
  --action-kind run-shortcut \
  --action-value "Start Backup"

terminal-widget --target deploy --clear-action

Download script

← All recipes