diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-10-01 21:39:39 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-10-01 21:39:39 -0300 |
commit | 4fe97d7a39b34ce2a2762c57136e505096b1fb23 (patch) | |
tree | a5d645c4f546cb611d97e7178c343cf46f7f4b2a | |
parent | 0d0af33515390a4143f3635e87b8f704427c1e54 (diff) | |
download | xsession-4fe97d7a39b34ce2a2762c57136e505096b1fb23.tar.gz xsession-4fe97d7a39b34ce2a2762c57136e505096b1fb23.tar.bz2 |
Kill powerline-awesome on startup
-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" |