aboutsummaryrefslogtreecommitdiff
path: root/profile
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2017-06-05 07:22:17 +0200
committerKarel Kočí <karel.koci@nic.cz>2017-06-05 07:22:17 +0200
commit704dfec4a151169187fb24108413fe7dc43a33eb (patch)
treeab450a9287f5659648c0cdc6adf88aed79b90ead /profile
parentd37ca99f25cc745db3bed37a81952235613fa731 (diff)
downloadmyconfigs-704dfec4a151169187fb24108413fe7dc43a33eb.tar.gz
myconfigs-704dfec4a151169187fb24108413fe7dc43a33eb.tar.bz2
myconfigs-704dfec4a151169187fb24108413fe7dc43a33eb.zip
Conditionally integrate annoyme
Diffstat (limited to 'profile')
-rw-r--r--profile8
1 files changed, 7 insertions, 1 deletions
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