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 -