]> gitweb.fluxo.info Git - rhatto/dotfiles/xsession.git/commitdiff
Fix POWERLINE_PID evaluation
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 3 Oct 2017 14:49:02 +0000 (11:49 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 3 Oct 2017 14:49:02 +0000 (11:49 -0300)
xsessionrc.dot.link

index d50d7e20d45227efb7f5dd68a60a4cc8478ba1bf..e9e7e2836843b9902118d84f8c0af9e22321f7cc 100755 (executable)
@@ -138,7 +138,9 @@ fi
 
 # Kill any previous powerline-awesome instance
 # A window manager like Awesome may later start a new instance so it can appear at the wibar
-POWERLINE_PID="`ps -o pid,command | grep powerline-awesome.py | cut -d ' ' -f 1`"
+#POWERLINE_PID="`ps -ax -o pid,command | grep 'powerline-awesome.py' | grep -v grep | awk '{ print $1 }'`"
+#POWERLINE_PID="`ps -x -o pid,command | grep '^/usr/bin/python /usr/share/powerline/bindings/awesome/powerline-awesome.py' | cut -d ' ' -f 1`"
+POWERLINE_PID="`pidof -x /usr/share/powerline/bindings/awesome/powerline-awesome.py`"
 if [ ! -z "$POWERLINE_PID" ]; then
   kill $POWERLINE_PID
 fi