Browse Source

lazy update

John ShaggyTwoDope Jenkins 4 years ago
parent
commit
77fbdcec8b
2 changed files with 11 additions and 6 deletions
  1. 4
    4
      dropboxdoom
  2. 7
    2
      mailnotify.sh

+ 4
- 4
dropboxdoom View File

@@ -1,20 +1,20 @@
1 1
 #!/bin/bash
2 2
 
3
-STATUS=$(dropbox status)
3
+STATUS=$(dropbox-cli status)
4 4
 
5 5
 if [ "$STATUS" == "Dropbox isn't running!" ]; then
6
-    START=$(dropbox start)
6
+    START=$(dropbox-cli start)
7 7
 fi
8 8
 
9 9
 COUNT_DONE=1
10 10
 while true
11 11
 do
12
-    STATUS=$(dropbox status)
12
+    STATUS=$(dropbox-cli status)
13 13
     if [ "$STATUS" == "Up to date" ]; then
14 14
             COUNT_DONE=`expr $COUNT_DONE + 1`
15 15
             if [ $COUNT_DONE -gt 10 ]
16 16
             then
17
-                    STOP=$(dropbox stop)
17
+                    STOP=$(dropbox-cli stop)
18 18
                     break;
19 19
             fi
20 20
     fi

+ 7
- 2
mailnotify.sh View File

@@ -3,7 +3,12 @@
3 3
 # FILE:     mailnotify.sh
4 4
 # ROLE:     TODO (some explanation)
5 5
 # CREATED:  2014-12-21 18:17:0
6
-# MODIFIED: 2014-12-21 19:14:43
6
+# MODIFIED: 2015-02-19 02:22:11
7
+
8
+#count linuxlite mail for every maildir
9
+maildirlite="$HOME/Maildir/lite/INBOX/new/"
10
+lite="$(find $maildirlite -type f | wc -l)"
11
+
7 12
 
8 13
 #count teknik mail for every maildir
9 14
 maildirtek="$HOME/Maildir/teknik/INBOX/new/"
@@ -15,4 +20,4 @@ gmail="$(find $maildirgmail -type f | wc -l)"
15 20
 
16 21
 
17 22
     export DISPLAY=:0; export XAUTHORITY=~/.Xauthority; 
18
-    notify-send -t 5000 -i /home/shaggy/bin/icons/smileicon.png -a "New Mail" "Gmail: $gmail Teknik: $teknik"
23
+    notify-send -t 5000 -i /home/shaggy/bin/icons/smileicon.png -a "New Mail" "Gmail: $gmail Teknik: $teknik Linuxlite: $lite"

Loading…
Cancel
Save