Ahmed x86 - gh-radar for Waybar 📡

A dynamic and interactive Waybar module that monitors your GitHub activity in real-time.

Python Waybar GitHub API Arch Linux
gh-radar in action
Watch gh-radar's animated ticker and notifications in action!

✨ Key Features


🛠️ Installation & Setup

1. Clone & Copy Files

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

2. Add Your Credentials (.env)

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

3. Waybar Configuration

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
}

4. Waybar Styling

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;
}
Dependencies: Ensure you have requests and python-dotenv installed via pip. The script uses mpv or paplay for sounds.

> i rice my desktop btw