From edb35d72c2fc4475bf73ed9d7436a96738e3aeed Mon Sep 17 00:00:00 2001 From: jornmann Date: Sat, 9 Apr 2022 14:32:31 +0300 Subject: [PATCH] remove gmail module --- config.sh | 1 - modules.sh | 6 ------ 2 files changed, 7 deletions(-) diff --git a/config.sh b/config.sh index 9c5f972..d47794d 100755 --- a/config.sh +++ b/config.sh @@ -20,5 +20,4 @@ #module_cpu "CPU: " " | " #module_battery "Battery: " " | " #module_todo "TODO: " " | " -#module_gmail "Unread: " " | " module_date "Date: " "" diff --git a/modules.sh b/modules.sh index 30c1a1e..8b606e0 100755 --- a/modules.sh +++ b/modules.sh @@ -59,9 +59,3 @@ module_todo() { todooutput="$(head -n 1 ~/.todo.txt)" [ "$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}" -}