Files
dotconfs/.local/bin/tueitx-tel
T
thomas.koppandClaude Opus 5.5 69f986ba17 feat(desktop): open tel: links in tüit X
xdg handler for tel:/callto: that hands the number to the tüit X
relay page in the running Firefox. It only fills the dial field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 18:51:53 +01:00

7 lines
360 B
Bash
Executable File

#!/bin/sh
# Hand a tel: link to tüit X. /telefon/tel only fills the dial field,
# it never dials by itself. Plain firefox reuses the running instance.
[ -n "$1" ] || exit 0
enc=$(printf '%s' "$1" | python3 -I -c 'import sys,urllib.parse;print(urllib.parse.quote(sys.stdin.read(),safe=""))')
exec firefox "https://tueit-x.int.tueit.de/telefon/tel?nummer=$enc"