Skip to content

Instantly share code, notes, and snippets.

@kimmoli
Created June 10, 2015 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kimmoli/cb6aea9835994b00060e to your computer and use it in GitHub Desktop.
Save kimmoli/cb6aea9835994b00060e to your computer and use it in GitHub Desktop.
Tohid
dbus-monitor --system "type=signal, interface=org.freedesktop.DBus.Properties, member=PropertiesChanged" |
while read -r line;
do
if echo $line | grep "TOHID" > /dev/null
then
read -r idline
if echo $idline | grep "string" > /dev/null
then
echo $idline | cut -d "\"" -f 2
fi
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment