Skip to content

Script generating GitHub Notifications in format readable by xfce4-genmon-plugin

Notifications You must be signed in to change notification settings

invidian/xfce4-github-status-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

xfce4 GitHub notifications plugin

This repository offers a script, which reads your GitHub Notifications using GitHub API and presents them on Xfce panel using xfce4-genmon-plugin.

To save some API calls, script uses xprintidle to detect if you are idle and sets idle icon on the panel.

Screenshots

When you have some unread notications:

Unread notifications

And when there is no notifcations:

No notifications

Installation

Copy the script to your PATH, for example to ~/.local/bin:

mkdir -p ~/.local/bin
cp github-status ~/.local/bin/

Configuration

Status script use GitHub CLI credentials to talk to GitHub API, so follow https://cli.github.com/manual/gh_auth_login to configure it.

Alternatively, you can create the configuration file yourself:

mkdir -p ~/.config/gh/
cat <<EOF > ~/.config/gh/config.yml
hosts:
    github.com:
        oauth_token: <token>
        user: <username>
EOF

Adding to Panel

Add new xfce4-genmon-plugin to your panel and configure it to run the following command:

.local/bin/github-status

About

Script generating GitHub Notifications in format readable by xfce4-genmon-plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages