wfxr
9/14/2016 - 1:34 PM

show-indicators-list.sh

#!/bin/sh

# See http://www.slblog.net/2014/05/change-the-order-of-indicators-in-ubuntu-indicators-applet/
dbus-send --type=method_call --print-reply --dest=com.canonical.indicator.application /com/canonical/indicator/application/service com.canonical.indicator.application.service.GetApplications | grep "string" > /tmp/indicators.txt
 
c=$(wc -l < /tmp/indicators.txt)
i=$((c / 8))
s=6
 
while [ "$i" != "0" ]; do
    echo $(awk -v n=$s '/string/ && !--n {getline; print; exit}' /tmp/indicators.txt)
    s=$(( $s + 8 ))
    i=$(( $i - 1 ))
done