Skip to main content

Waybar/Polybar module for notifications and unread messages count from ProtonMail

Project description

New message notifications and unread messages count from ProtonMail (Waybar/Polybar module)

Dependencies

  • proton-client >= 0.7.1
  • libnotify
  • ttf-font-awesome (default badge )
  • libcanberra (optional, notification sound)

Waybar config example

~/.config/waybar/config

"modules-right": {
    "custom/protonmail"
}
...
"custom/protonmail": {
    "exec": "bar-protonmail",
    "return-type": "json",
    "interval": 10,
    "tooltip": false,
    "on-click": "xdg-open https://mail.protonmail.com/u/0/inbox"
}

~/.config/waybar/style.css

#custom-protonmail.unread {
    color: white;
}
#custom-protonmail.inaccurate {
    color: darkorange;
}
#custom-protonmail.error {
    color: darkred;
}

Polybar config example

modules-right = protonmail
...
[module/protonmail]
type = custom/script
exec = bar-protonmail -f polybar
interval = 10
click-left = xdg-open https://mail.protonmail.com/u/0/inbox

Script arguments

See bar-protonmail -h for the list of arguments with descriptions.
Possible values for -s, --sound can be found with:

ls /usr/share/sounds/freedesktop/stereo/

without extension, for example -s message-new-instant.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bar-protonmail-1.0.0.tar.gz (7.6 kB view hashes)

Uploaded Source

Built Distribution

bar_protonmail-1.0.0-py3-none-any.whl (8.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page