Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nearhuscarl/polybar-gmail-module
https://github.com/nearhuscarl/polybar-gmail-module
gmail polybar polybar-gmail
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/nearhuscarl/polybar-gmail-module
- Owner: NearHuscarl
- License: bsd-3-clause
- Created: 2017-11-09T20:54:18.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-30T22:01:26.000Z (about 7 years ago)
- Last Synced: 2024-11-09T10:44:16.689Z (about 2 months ago)
- Topics: gmail, polybar, polybar-gmail
- Language: Python
- Size: 3.91 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Polybar Gmail Module
Custom module for [polybar](https://github.com/jaagr/polybar) that count unread mails from gmail## Dependency:
* google-api-python-client
* [font awesome](https://github.com/FortAwesome/Font-Awesome)## Installation
```
cd ~/.config/polybar
git clone https://github.com/NearHuscarl/polybar-gmail-module gmail
cd ~/.config/polybar/gmail/ && ./gmail.py
```## Add to polybar
```
[module/gmail]
type = custom/script
interval = 600exec = $HOME/.config/polybar/gmail/gmail.py
click-left = xdg-open https://mail.google.com
```
![default color](https://raw.githubusercontent.com/NearHuscarl/polybar-gmail-module/master/screenshot/default.png)```
[module/gmail]
type = custom/script
interval = 600exec = $HOME/.config/polybar/gmail/gmail.py --icon-color=#00ff00 --text-color=#ff00ff
click-left = xdg-open https://mail.google.com
```
![custom color](https://raw.githubusercontent.com/NearHuscarl/polybar-gmail-module/master/screenshot/custom.png)## Parameters
```
Display gmail unread count on polybaroptional arguments:
-h, --help show this help message and exit
-pe [PREFIX_ERROR], --prefix-error [PREFIX_ERROR]
prefix when an error occurs
-p [PREFIX], --prefix [PREFIX]
module prefix, preferably an icon
-ec [ICON_ERROR_COLOR], --icon-error-color [ICON_ERROR_COLOR]
foreground color for error icon
-ic [ICON_COLOR], --icon-color [ICON_COLOR]
foreground color for mail icon
-tc [TEXT_COLOR], --text-color [TEXT_COLOR]
foreground color for text
```