Skip to content

Hyprland Discord Presence updates your Discord status with the active window using Hyprland's IPC, optimized with debounced updates. πŸš€

Notifications You must be signed in to change notification settings

afrianjunior/hyprland-discord-presence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Hyprland Discord Presence

Hyprland Discord Presence Screenshot

Hyprland Discord Presence is a lightweight daemon that updates your Discord Rich Presence based on the currently active window in Hyprland (a dynamic tiling Wayland compositor). It provides real-time window tracking and can be optionally run in a streaming mode.

Features

  • βœ… Automatic Window Tracking – Updates your Discord status based on active windows.
  • βœ… Efficient Event Listener – Uses Hyprland's IPC socket instead of brute-force polling.
  • βœ… Debounced Updates – Reduces unnecessary Discord API calls.
  • βœ… NixOS-Friendly – Easily deployable as a NixOS systemd service.
  • βœ… Optional Streaming Mode – Use --use-stream-window flag to enable real-time tracking.

Installation & Usage

1. Clone and Build

git clone https://github.com/your-username/hyprland-discord-presence.git
cd hyprland-discord-presence
go build -o hypr-discord-presence

2. Run Manually

./hypr-discord-presence --use-stream-window

3. Install as a Systemd Service (NixOS)

Edit /etc/nixos/configuration.nix and add:

systemd.services.hypr-discord-presence = {
  description = "Hyprland Discord Presence Daemon";
  after = [ "network.target" "graphical-session.target" ];
  wantedBy = [ "default.target" ];
  serviceConfig = {
    ExecStart = "/path/to/hypr-discord-presence --use-stream-window";
    Restart = "always";
    RestartSec = 3;
    User = "your-username";
    Environment = [
      "XDG_RUNTIME_DIR=/run/user/1000"
      "DISPLAY=:0"
      "WAYLAND_DISPLAY=wayland-1"
    ];
  };
};

Then apply changes with:

sudo nixos-rebuild switch

License

πŸ“œ MIT License

About

Hyprland Discord Presence updates your Discord status with the active window using Hyprland's IPC, optimized with debounced updates. πŸš€

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published