From 4fe97d7a39b34ce2a2762c57136e505096b1fb23 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 1 Oct 2017 21:39:39 -0300 Subject: Kill powerline-awesome on startup --- xsessionrc.dot.link | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xsessionrc.dot.link b/xsessionrc.dot.link index 2d54b25..d50d7e2 100755 --- a/xsessionrc.dot.link +++ b/xsessionrc.dot.link @@ -136,6 +136,14 @@ if [ -x "/usr/bin/unclutter" ]; then /usr/bin/unclutter & 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`" +if [ ! -z "$POWERLINE_PID" ]; then + kill $POWERLINE_PID +fi +unset POWERLINE_PID + # Custom SSH_ASKPASS config # See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=606934 #export SSH_ASKPASS="/usr/bin/ssh-askpass-fullscreen" -- cgit v1.2.3