
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
bar-gmail
Advanced tools

Get notifications and unread messages count from Gmail (Waybar/Polybar module).
To display notifications you must have a notification daemon running on your system.
Use one of the following methods.
https://aur.archlinux.org/packages/bar-gmail/
pip install --user bar-gmail
~/.local/bin/bar-gmail
Depending on your system you may also need to add the --break-system-packages flag.
git clone https://github.com/crabvk/bar-gmail.git
cd bar-gmail
git describe --abbrev=0 --tags # Get latest tag.
git checkoug LATEST_TAG
pip install -e .
~/.local/bin/bar-gmail
First, you need to authenticate the client:
bar-gmail auth
Then just run bar-gmail or bar-gmail --format polybar periodically to get unread messages count and new message notifications.
Credentials and session are stored in ~/.cache/bar-gmail.
~/.config/waybar/config
"modules-right": {
"custom/gmail"
}
"custom/gmail": {
"exec": "bar-gmail",
"return-type": "json",
"interval": 10,
"tooltip": false,
"on-click": "xdg-open https://mail.google.com/mail/u/0/#inbox"
}
~/.config/waybar/style.css
#custom-gmail.unread {
color: white;
}
#custom-gmail.inaccurate {
color: darkorange;
}
#custom-gmail.error {
color: darkred;
}
modules-right = gmail
...
[module/gmail]
type = custom/script
exec = bar-gmail -f polybar
interval = 10
click-left = xdg-open https://mail.google.com/mail/u/0/#inbox
See bar-gmail --help for the full list of available subcommands and command arguments.
Possible values for -s, --sound is obtained with:
ls /usr/share/sounds/freedesktop/stereo/ | cut -d. -f1
for example bar-gmail --sound message-new-instant.
If you have several mails you can specify the credentials.json file with the --credentials <path> flag.
FAQs
Get notifications and unread messages count from Gmail (Waybar/Polybar module)
We found that bar-gmail demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.