Browse Source

Don't speak to non-alive processes

Alois Mahdal 5 years ago
parent
commit
782fb95c6a
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      dotfiles/config/bmo/be.ini

+ 6
- 6
dotfiles/config/bmo/be.ini View File

11
 
11
 
12
 [be.def.spot.role:afk]
12
 [be.def.spot.role:afk]
13
     shape = bounce
13
     shape = bounce
14
-    enter = clementine-pause
14
+    enter = bmo_beh__if -P clementine /usr/bin/clementine --pause
15
     spike = bmo kb home && slock
15
     spike = bmo kb home && slock
16
 
16
 
17
 [be.def.axis.role]
17
 [be.def.axis.role]
26
 [be.def.spot.role:gone]
26
 [be.def.spot.role:gone]
27
     shape = bounce
27
     shape = bounce
28
     enter = ssh-add -D 2>&1 && notify-send "all identities removed"
28
     enter = ssh-add -D 2>&1 && notify-send "all identities removed"
29
-    enter = weechat-fifo -s \*/disconnect -all gone
29
+    enter = bmo_beh__if -P weechat weechat-fifo -s \*/disconnect -all gone
30
     spike = bmo kb home && slock
30
     spike = bmo kb home && slock
31
-    leave = weechat-fifo -s \*/connect -all
31
+    leave = bmo_beh__if -P weechat weechat-fifo -s \*/connect -all
32
     leave = bmo nag -R
32
     leave = bmo nag -R
33
 
33
 
34
 [be.def.spot.role:zleeping]
34
 [be.def.spot.role:zleeping]
35
     shape = bounce
35
     shape = bounce
36
     enter = bmo_beh__if -P mocp --then mocp --pause
36
     enter = bmo_beh__if -P mocp --then mocp --pause
37
-    enter = clementine-pause
37
+    enter = bmo_beh__if -P clementine /usr/bin/clementine --pause
38
     enter = ssh-add -D 2>&1 && notify-send "all identities removed"
38
     enter = ssh-add -D 2>&1 && notify-send "all identities removed"
39
-    enter = weechat-fifo -s \*/disconnect -all offline
39
+    enter = bmo_beh__if -P weechat weechat-fifo -s \*/disconnect -all offline
40
     spike = bmo kb home && slock systemctl suspend -i
40
     spike = bmo kb home && slock systemctl suspend -i
41
-    leave = weechat-fifo -s \*/connect -all
41
+    leave = bmo_beh__if -P weechat weechat-fifo -s \*/connect -all
42
 
42
 
43
 [be.def.spot.role:presenting]
43
 [be.def.spot.role:presenting]
44
     important = true
44
     important = true