Browse Source

lazy update

master
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 @@
#!/bin/bash

STATUS=$(dropbox status)
STATUS=$(dropbox-cli status)

if [ "$STATUS" == "Dropbox isn't running!" ]; then
START=$(dropbox start)
START=$(dropbox-cli start)
fi

COUNT_DONE=1
while true
do
STATUS=$(dropbox status)
STATUS=$(dropbox-cli status)
if [ "$STATUS" == "Up to date" ]; then
COUNT_DONE=`expr $COUNT_DONE + 1`
if [ $COUNT_DONE -gt 10 ]
then
STOP=$(dropbox stop)
STOP=$(dropbox-cli stop)
break;
fi
fi

+ 7
- 2
mailnotify.sh View File

@@ -3,7 +3,12 @@
# FILE: mailnotify.sh
# ROLE: TODO (some explanation)
# CREATED: 2014-12-21 18:17:0
# MODIFIED: 2014-12-21 19:14:43
# MODIFIED: 2015-02-19 02:22:11

#count linuxlite mail for every maildir
maildirlite="$HOME/Maildir/lite/INBOX/new/"
lite="$(find $maildirlite -type f | wc -l)"


#count teknik mail for every maildir
maildirtek="$HOME/Maildir/teknik/INBOX/new/"
@@ -15,4 +20,4 @@ gmail="$(find $maildirgmail -type f | wc -l)"


export DISPLAY=:0; export XAUTHORITY=~/.Xauthority;
notify-send -t 5000 -i /home/shaggy/bin/icons/smileicon.png -a "New Mail" "Gmail: $gmail Teknik: $teknik"
notify-send -t 5000 -i /home/shaggy/bin/icons/smileicon.png -a "New Mail" "Gmail: $gmail Teknik: $teknik Linuxlite: $lite"

Loading…
Cancel
Save