| Crates.io | github-notifier |
| lib.rs | github-notifier |
| version | 1.0.0 |
| created_at | 2025-08-19 18:44:44.058397+00 |
| updated_at | 2025-08-19 18:44:44.058397+00 |
| description | A CLI tool to notify github of new commits |
| homepage | https://github.com/whutchinson98/github-notifier |
| repository | https://github.com/whutchinson98/github-notifier |
| max_upload_size | |
| id | 1802300 |
| size | 48,865 |
cargo install github-notifier
Create a config.toml file in your home directory under ~/.config/github-notifier/config.toml
github_username = "your-github-username"
github_token = "your-github-token"
If the exit code is 2, then you have notifications. If the exit code is 0, then you do not have notifications. If the exit code is 1, then there was an error.
Here is an example shell script I use as part of my waybar:
#!/bin/sh
github-notifier
exit_code=$?
if [ $exit_code -eq 2 ]; then
echo '{"text": "", "class": "notification", "tooltip": "You have GitHub notifications"}'
else
echo '{"text": "", "class": "none", "tooltip": "No notifications"}'
fi
To run with tracing, run RUST_LOG=trace github-notifier