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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file bar-protonmail-1.0.0.tar.gz.

File metadata

  • Download URL: bar-protonmail-1.0.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for bar-protonmail-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6d78da22037042ff12013f4713cbff065d976e3c88275b47cef95be2095c08c1
MD5 14bdc14df63a5c86833a7198d8b3bec3
BLAKE2b-256 9f7d69f9ee93bf90ca9ae8ab158c373d3506748f5ac453e3d9aa872ddaf12ae1

See more details on using hashes here.

File details

Details for the file bar_protonmail-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: bar_protonmail-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for bar_protonmail-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 862484788b94abea41f0245423f4170cbf179e015133c1081b034ef4758bc6e4
MD5 c481973d380e478138e05231497c9bbd
BLAKE2b-256 a6bb240ec70729c221dd3f69236a08cc252bd66119f39b1fbacbd0ab8e55ae18

See more details on using hashes here.

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