Shows a compact badge in the DankBar with counts for open Pull Requests authored by you and Issues assigned to you, using the gh CLI. Includes a popup with a breakdown and quick links to GitHub filtered for the current user.
- Badge in the bar showing the total count (PRs + issues)
- Popup with separate counts and "open in browser" links
- Optional filter by GitHub organization
- Configurable refresh interval and what to count (PRs/issues)
mkdir -p ~/.config/DankMaterialShell/plugins/
git clone <this-repo-url> githubNotifierThen enable the plugin via DMS Settings → Plugins and add the githubNotifier widget to your DankBar.
- Open DMS Settings (Super + ,)
- Enable the
GitHub Notifierplugin - Optionally set an
Organizationto filter results to a specific org - Configure
gh binaryif not simplygh - The widget will query
ghperiodically (configurable) and update counts
Organization: optional. Filters PRs and issues to the specified GitHub organization.ghBinary: binary name/path (default:gh).refreshInterval: seconds between automatic refreshes.Count Pull Requests: toggle to include/exclude open PRs authored by you.Count Issues: toggle to include/exclude open issues assigned to you.
plugin.json— plugin manifestGitHubNotifierWidget.qml— main widget and popup implementationGitHubNotifierSettings.qml— settings UIREADME.md— this file
This plugin requests:
process— to run theghCLIsettings_read/settings_write— to read and persist plugin settings
ghCLI installed, authenticated, and available in PATH or referenced viaghBinarysetting.Font Awesome(e.g. Font Awesome 6 Brands) — required so the GitHub icon displays correctly.
The plugin executes gh commands to obtain counts:
- Check
ghbinary:gh --version - Check authentication:
gh auth status - PRs count:
gh search prs --author=@me --state=open [--owner=<org>] --json number - Issues count:
gh search issues --assignee=@me --state=open [--owner=<org>] --json number
The widget parses JSON output (supports total_count, arrays, and NDJSON).
- If counts are zero but the CLI shows results, check
ghBinarysetting and ensureghworks in a terminal:gh search prs --author=@me --state=open --json number - If
ghis not authenticated, run:gh auth login
