Make HEY the default mailto handler (#1822)

This commit is contained in:
Ryan Hughes
2025-10-05 12:18:22 -04:00
committed by GitHub
parent a079af948b
commit c7aa0f570a
3 changed files with 15 additions and 1 deletions

11
bin/omarchy-webapp-handler-hey Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
url="$1"
web_url="https://app.hey.com"
# Handle mailto: URLs
if [[ $url =~ ^mailto: ]]; then
email=$(echo "$url" | sed 's/mailto://')
web_url="https://app.hey.com/messages/new?to=$email"
fi
exec omarchy-launch-webapp "$web_url"