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>
7 lines
360 B
Bash
Executable File
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"
|