From c8467158a24e6c58a661620d4af6b5728dfa876b Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 28 Feb 2018 17:13:26 -0800 Subject: [PATCH] Add dbus-introspect.sh --- dotfiles/lib/bin/dbus-introspect.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 dotfiles/lib/bin/dbus-introspect.sh diff --git a/dotfiles/lib/bin/dbus-introspect.sh b/dotfiles/lib/bin/dbus-introspect.sh new file mode 100755 index 00000000..7365d9d2 --- /dev/null +++ b/dotfiles/lib/bin/dbus-introspect.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env zsh + +dbus-send --session \ + --dest=$1 \ + --type=method_call \ + --print-reply \ + $2 \ + org.freedesktop.DBus.Introspectable.Introspect | tail -n +2 | sed -e "s/^ *string//" | tr -d '\n' | unescape.py | xmllint --format -