https://github.com/0xgingi/gnome-wayland-discord-rpc
Displays your active window on discord
https://github.com/0xgingi/gnome-wayland-discord-rpc
discord discord-rpc gnome gnome-desktop gnome-shell gnome-wayland javascript js wayland
Last synced: about 2 months ago
JSON representation
Displays your active window on discord
- Host: GitHub
- URL: https://github.com/0xgingi/gnome-wayland-discord-rpc
- Owner: 0xGingi
- Created: 2024-10-03T11:50:39.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-10-03T15:20:55.000Z (8 months ago)
- Last Synced: 2025-03-24T04:47:28.142Z (2 months ago)
- Topics: discord, discord-rpc, gnome, gnome-desktop, gnome-shell, gnome-wayland, javascript, js, wayland
- Language: JavaScript
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gnome Wayland Discord Rich Presence
This shows the active window in your Discord status including the application icon
## Features
- Detects the currently active window on Gnome Wayland
- Finds and uploads application icons to Imgur
- Updates Discord Rich Presence with the active application and its icon
- Caches uploaded icons to reduce API calls## Prerequisites
- Node.js / npm
- A Discord application for Rich Presence
- An Imgur API client ID
- [Window Calls Extended Gnome Extension](https://extensions.gnome.org/extension/4974/window-calls-extended/)## Installation
1. Clone this repository:
```
git clone https://github.com/0xgingi/gnome-wayland-discord-rpc.git
cd gnome-wayland-discord-rpc
```2. Install dependencies:
```
npm install
```3. Create a `config.json` file in the project root with your Discord and Imgur credentials:
```json
{
"DISCORD_CLIENT_ID": "your_discord_client_id_here", // I recommend setting the name as your Distro or something
"IMGUR_CLIENT_ID": "your_imgur_client_id_here"
}
```## Usage
```
npm run start
```