From 704dfec4a151169187fb24108413fe7dc43a33eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 5 Jun 2017 07:22:17 +0200 Subject: Conditionally integrate annoyme --- profile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'profile') diff --git a/profile b/profile index 445f471..76a201c 100644 --- a/profile +++ b/profile @@ -13,4 +13,10 @@ export EDITOR=vim ~/.service/syncthing -q status || ~/.service/syncthing start # And if we are on first terminal also automatically start x server -[ "$(tty)" = "/dev/tty1" ] && exec startx -- vt1 +if [ "$(tty)" = "/dev/tty1" ]; then + if which annoyme >/dev/null 2>&1; then # Check if we are using annoyme + sleep 1 # just little bit of time to give systemd to start tasks + ls ~/.annoyme/*.pid 2>/dev/null >&2 && annoyme + fi + exec startx -- vt1 +fi -- cgit v1.2.3