A dynamic and interactive Waybar module that monitors your GitHub activity in real-time.
ETag headers to respect API rate limits and keep network usage near zero when idle.git clone https://github.com/ahmed-x86/gh-radar.git
cd gh-radar
# Copy sound to your config
cp -r sounds ~/.config/
# Setup Waybar scripts directory
mkdir -p ~/.config/waybar/scripts
cp github_radar.py ~/.config/waybar/scripts/
chmod +x ~/.config/waybar/scripts/github_radar.py
Create a .env file to authenticate with GitHub:
nano ~/.config/waybar/scripts/.env
Add the following (replace with your info):
GITHUB_USERNAME=ahmed-x86
GITHUB_PAT=your_personal_access_token_here
Add this module to your config.jsonc (e.g., in modules-right):
"custom/github-radar": {
"format": "{}",
"return-type": "json",
"exec": "python3 -u ~/.config/waybar/scripts/github_radar.py",
"on-click": "xdg-open https://github.com/ahmed-x86",
"on-click-right": "xdg-open https://github.com/notifications",
"restart-interval": 20
}
Make it look authentic by adding this to your style.css:
#custom-github-radar {
background-color: #24292e;
color: #ffffff;
border-radius: 10px;
padding: 0px 10px;
margin: 4px 5px;
font-weight: bold;
border: 1px solid #444c56;
transition: all 0.3s ease;
}
#custom-github-radar:hover {
background-color: #2ea043;
color: #ffffff;
border-color: #2ea043;
}
requests and python-dotenv installed via pip. The script uses mpv or paplay for sounds.
> i rice my desktop btw