Created
June 10, 2015 18:19
-
-
Save kimmoli/cb6aea9835994b00060e to your computer and use it in GitHub Desktop.
Tohid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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