From 69f986ba17e6f871a19ddff9a03f93988d070422 Mon Sep 17 00:00:00 2001 From: "thomas.kopp" Date: Thu, 19 Nov 2026 18:51:53 +0100 Subject: [PATCH] =?UTF-8?q?feat(desktop):=20open=20tel:=20links=20in=20t?= =?UTF-8?q?=C3=BCit=20X?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .local/bin/tueitx-tel | 6 ++++++ .local/share/applications/tueitx-tel.desktop | 9 +++++++++ 2 files changed, 15 insertions(+) create mode 100755 .local/bin/tueitx-tel create mode 100644 .local/share/applications/tueitx-tel.desktop diff --git a/.local/bin/tueitx-tel b/.local/bin/tueitx-tel new file mode 100755 index 0000000..0bd9c18 --- /dev/null +++ b/.local/bin/tueitx-tel @@ -0,0 +1,6 @@ +#!/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" diff --git a/.local/share/applications/tueitx-tel.desktop b/.local/share/applications/tueitx-tel.desktop new file mode 100644 index 0000000..ce547c5 --- /dev/null +++ b/.local/share/applications/tueitx-tel.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Type=Application +Name=tüit X Telefon +Comment=tel:-Links in tüit X öffnen +Exec=/home/templis/.local/bin/tueitx-tel %u +Icon=call-start +Terminal=false +NoDisplay=true +MimeType=x-scheme-handler/tel;x-scheme-handler/callto;