1
0
Fork 0
mirror of https://github.com/Horhik/dotfiles.git synced 2024-11-08 01:43:13 +00:00
Dotfiles/.config/polybar/polybar-scripts/inbox-imap-pythongpg
2020-07-27 07:59:00 +03:00
..
screenshots add all dotfiles 2020-07-27 07:59:00 +03:00
inbox-imap-python.py add all dotfiles 2020-07-27 07:59:00 +03:00
README.md add all dotfiles 2020-07-27 07:59:00 +03:00

Script: inbox-imap-pythongpg

A script that shows if there are unread mails in your IMAPs inbox. Passwords are encrypted with gpg.

inbox-imap-pythongpg

Configuration

You must have a gpg key to secure your password in configuration files. Encrypt your password using your gpg key like this.

echo 'your password' > /tmp/imappass
gpg -er 'your gpg keyid' /tmp/imappass
mv /tmp/imappass.gpg ~/.imappass.gpg
shred /tmp/imappass && rm /tmp/imappass

For Gmail, you must allow less secure apps.

Module

[module/inbox-imap-pythongpg]
type = custom/script
exec = ~/polybar-scripts/inbox-imap-pythongpg.py
interval = 60