diff options
author | Giuseppe | 2017-06-12 17:59:31 +0200 |
---|---|---|
committer | Giuseppe | 2017-06-12 18:00:15 +0200 |
commit | 47f9f4cae318306114d8fd43f6d0d138f0145453 (patch) | |
tree | 9c3f3d719a3259b2137dfec79e1c722dd06c7620 | |
parent | c3bac3a155294631c9d524c5dc212c34fdc4a554 (diff) | |
download | aur-47f9f4cae318306114d8fd43f6d0d138f0145453.tar.gz |
Make sourceable script checking if i3 is running.
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | nwd-i3-git.install | 5 |
2 files changed, 4 insertions, 3 deletions
@@ -1,6 +1,6 @@ pkgbase = notify-when-done-i3-git pkgdesc = Get notifications when commands in non-focused i3's window finish. - pkgver = r31.3d3de01 + pkgver = r30.7b8990f pkgrel = 1 url = https://github.com/giuscri/notify-when-done-i3 install = nwd-i3-git.install diff --git a/nwd-i3-git.install b/nwd-i3-git.install index fbbb5ad5c622..04cce04f2178 100644 --- a/nwd-i3-git.install +++ b/nwd-i3-git.install @@ -1,6 +1,7 @@ post_install() { - echo "==> To complete installation, add the following line to your bashrc" - echo '==> [[ -f /usr/share/nwd/preexec.sh ]] && . /usr/share/nwd/preexec.sh' + echo "==> To complete installation, add the following lines to your bashrc" + echo ' [[ -S /run/user/$USER/i3/ipc-socket.$(pidof i3) && -f /usr/share/nwd/preexec.sh ]] \' + echo ' && . /usr/share/nwd/preexec.sh' echo '==> and restart bash' } |