I've been breaking my pick the last few days trying to figure out how to maintain two instantiations of wbar one for DISPLAY=0.0 and one for DISPLAY=1.0. The only problem I have left is that when an update occurs all wbar processes are killed off but only one is restarted. Is there a way to restart wbar for both displays?
#!/bin/sh
cd "$HOME"
if [ $(awk '/icons:/{print $2}' "$HOME"/.desktop) == wbar ]; then
WBARPID=$(pidof wbar)
[ -n "$WBARPID" ] && killall wbar
wbar -bpress -config /usr/local/tce.wbar > /dev/null &
fi
~