An open API service indexing awesome lists of open source software.

https://github.com/eth-p/discord-plugin-afkland

A BetterDiscord plugin to fix AFK detection on Wayland.
https://github.com/eth-p/discord-plugin-afkland

betterdiscord discord discord-plugin wayland

Last synced: about 1 month ago
JSON representation

A BetterDiscord plugin to fix AFK detection on Wayland.

Awesome Lists containing this project

README

          

# BetterDiscord Plugin: AFKland
A BetterDiscord plugin to fix AFK detection on Wayland.

## Why?

When Discord thinks you're using the computer, it won't send notifications
to the Discord mobile app. When running under Wayland, Discord always
thinks you're using the computer.

[This is a known issue.](https://support.discord.com/hc/en-us/community/posts/360052371093-Discord-on-Linux-Wayland-has-no-AFK-detection)

## Supported Desktop Environments

* KDE Plasma 6

If this works on any other environment or if you want to add support for
another environment, pull requests are welcome and appreciated.

## How it Works

A native helper program creates a websocket server on the local machine.
It watches for when the system screensaver is becomes active and informs
any connected websocket clients of the screensaver state.

The BetterDiscord plugin connects to the native helper program and updates
the Discord AFK status based on the screensaver state.

## Installation & Setup

TODO Nix Flake / Home Manager

### Manual

You will need:
* The `go` compiler.
* The `nodejs` runtime and `npm` package manager.
* GNU `make`.

#### Flatpak Discord

```bash
make -C plugin install-flatpak
make -C helper install
```

## Alternatives

* [WayAFK](https://github.com/Colonial-Dev/WayAFK)

Credit to [@Colonial-Dev](https://github.com/Colonial-Dev) for the original idea.