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;