Browse Source

Move status hooks to common hook file

Alois Mahdal 9 years ago
parent
commit
e80bcd28c2
2 changed files with 11 additions and 11 deletions
  1. 11
    0
      dotfiles/saturnin/hook.ini
  2. 0
    11
      dotfiles/saturnin/iam.ini

+ 11
- 0
dotfiles/saturnin/hook.ini View File

@@ -1,2 +1,13 @@
1 1
 [hook.au]
2 2
     post = killall -SIGUSR1 i3status
3
+
4
+
5
+[hook.iam]
6
+    log_afk      = echo "$(date -Iseconds) | afk one time" >> ~/.saturnin-iam.log
7
+    log_atk      = echo "$(date -Iseconds) | apparently knowing my password" >> ~/.saturnin-iam.log
8
+    log_gone     = echo "$(date -Iseconds) | gone one time" >> ~/.saturnin-iam.log
9
+    log_back     = echo "$(date -Iseconds) | back again" >> ~/.saturnin-iam.log
10
+    say_afk      = pidof hexchat && hexchat -e -c 'away afk'
11
+    say_atk      = pidof hexchat && hexchat -e -c 'back'
12
+    say_gone     = pidof hexchat && hexchat -e -c 'nick amahdal|gone'
13
+    say_back     = pidof hexchat && hexchat -e -c 'nick amahdal'

+ 0
- 11
dotfiles/saturnin/iam.ini View File

@@ -1,15 +1,4 @@
1 1
 
2
-[iam.saying.like.this]
3
-    afk         = pidof hexchat && hexchat -e -c 'away afk'
4
-    atk         = pidof hexchat && hexchat -e -c 'back'
5
-    gone        = pidof hexchat && hexchat -e -c 'nick amahdal|gone'
6
-    back        = pidof hexchat && hexchat -e -c 'nick amahdal'
7
-
8
-    afk         = echo "$(date -Iseconds) | afk one time" >> ~/.saturnin-iam.log
9
-    atk         = echo "$(date -Iseconds) | apparently knowing my password" >> ~/.saturnin-iam.log
10
-    gone        = echo "$(date -Iseconds) | gone one time" >> ~/.saturnin-iam.log
11
-    back        = echo "$(date -Iseconds) | back again" >> ~/.saturnin-iam.log
12
-
13 2
 [iam.using]
14 3
     if = em1
15 4