fix email widget script

This commit is contained in:
streetturtle 2019-02-04 20:10:00 -05:00
parent 86ab5aea40
commit 7bab821f20
2 changed files with 4 additions and 17 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/python
import imaplib
import email
import re
M=imaplib.IMAP4_SSL("mail.teenagemutantninjaturtles.com", 993)
M.login("mickey@tmnt.com","cowabunga")
@ -9,7 +9,7 @@ M.login("mickey@tmnt.com","cowabunga")
status, counts = M.status("INBOX","(MESSAGES UNSEEN)")
if status == "OK":
unread = counts[0].split()[4][:-1]
unread = re.search(r'UNSEEN\s(\d+)', counts[0].decode('utf-8')).group(1)
else:
unread = "N/A"

View File

@ -1,13 +0,0 @@
#!/usr/bin/env bash
#RES=$(xrandr --current | grep '*' | uniq | awk '{print $1}')
RNDM=$(uuidgen)
IMAGE="/tmp/i3lock-$RNDM.png"
## blur
#ffmpeg -loglevel panic -f x11grab -video_size 1920x1060 -y -i :0.0+0,20 -filter_complex "boxblur=9" -vframes 1 $IMAGE
## pixelate
ffmpeg -loglevel panic -f x11grab -video_size 1920x1060 -y -i :0.0+$1,20 -vf frei0r=pixeliz0r -vframes 1 $IMAGE
echo $RNDM