remove gmail module

This commit is contained in:
Emily Daemon 2022-04-09 14:32:31 +03:00
parent 444b0ad2a0
commit edb35d72c2
2 changed files with 0 additions and 7 deletions

View File

@ -20,5 +20,4 @@
#module_cpu "CPU: " " | " #module_cpu "CPU: " " | "
#module_battery "Battery: " " | " #module_battery "Battery: " " | "
#module_todo "TODO: " " | " #module_todo "TODO: " " | "
#module_gmail "Unread: " " | "
module_date "Date: " "" module_date "Date: " ""

View File

@ -59,9 +59,3 @@ module_todo() {
todooutput="$(head -n 1 ~/.todo.txt)" todooutput="$(head -n 1 ~/.todo.txt)"
[ "$todooutput" = "" ] || export bar="${bar}${1}${todooutput}${2}" [ "$todooutput" = "" ] || export bar="${bar}${1}${todooutput}${2}"
} }
module_gmail() {
export user="youruser"
export pass="yourpass"
export bar="${bar}${1}$(echo 'user = ${USER}@gmail.com:${PASS}' | curl -sf -K- -X 'STATUS INBOX (UNSEEN)' imaps://imap.gmail.com/INBOX | tr -d -c '[:digit:]')%${2}"
}