bar-protonmail-1.0.0
توضیحات
Waybar/Polybar module for notifications and unread messages count from ProtonMail
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | bar-protonmail-1.0.0 |
| نام | bar-protonmail |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Vyacheslav Konovalov |
| ایمیل نویسنده | crabvk@protonmail.com |
| آدرس صفحه اصلی | https://github.com/crabvk/bar-protonmail |
| آدرس اینترنتی | https://pypi.org/project/bar-protonmail/ |
| مجوز | MIT |
# 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
```json
"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
```css
#custom-protonmail.unread {
color: white;
}
#custom-protonmail.inaccurate {
color: darkorange;
}
#custom-protonmail.error {
color: darkred;
}
```
## Polybar config example
```ini
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:
```shell
ls /usr/share/sounds/freedesktop/stereo/
```
without extension, for example `-s message-new-instant`.
نیازمندی
| مقدار | نام |
|---|---|
| >=0.7.1 | proton-client |
| >=2.1.0 | dnspython |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl bar-protonmail-1.0.0:
pip install bar-protonmail-1.0.0.whl
نصب پکیج tar.gz bar-protonmail-1.0.0:
pip install bar-protonmail-1.0.0.tar.gz