diff options
-rwxr-xr-x | xsessionrc.dot.link | 8 |
1 files changed, 8 insertions, 0 deletions
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" |